[x3d-public] X3DParticleEmitter node inherit from X3DChildNode(rather than X3DNode)

Brutzman, Donald (Don) (CIV) brutzman at nps.edu
Tue Mar 8 11:22:52 PST 2022


MetadataSet is only allowed to contain other Metadata* nodes or comments.
Other content will fail validation (and will not load or import in the
X3DJSAIL Java and X3DPSAIL Python libraries).

 

The right way to cache non-rendered content for DEF/USE libraries is to put
them as children nodes within a Switch node with whichChoice='-1'.

 

all the best, Don

-- 

Don Brutzman  Naval Postgraduate School, Code USW/Br        brutzman at nps.edu

Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA    +1.831.656.2149

X3D graphics, virtual worlds, Navy robotics https://
faculty.nps.edu/brutzman

 

From: x3d-public <x3d-public-bounces at web3d.org> On Behalf Of Andreas Plesch
Sent: Tuesday, March 8, 2022 10:11 AM
To: X3D Graphics public mailing list <x3d-public at web3d.org>
Subject: Re: [x3d-public] X3DParticleEmitter node inherit from
X3DChildNode(rather than X3DNode)

 

Of note is that Titania and x-ite allow MetadataSet to have X3DNode nodes,
eg. any node, in the value field, not just X3DMetadataObject nodes.

 

This allows MetadataSet to be used as a NodesLibrary for DEF/USE purposes.
In fact, this kind of redirection is the default setup for scenes created in
Titania.

 

SVG also has a NodesLibrary equivalent, the <defs> element:

 

https://developer.mozilla.org/en-US/docs/Web/SVG/Element/defs
<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdeveloper
.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FSVG%2FElement%2Fdefs&data=04%7C01%7Cbrut
zman%40nps.edu%7Ca7f1e8503b27409f46ec08da012f296e%7C6d936231a51740ea9199f757
8963378e%7C0%7C0%7C637823599562085821%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLj
AwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=I%2BYZml0d
07AjdVyR0CgxDMmSD5mNZT34TxYWHbxBMhI%3D&reserved=0> 

 

-Andreas

 

Date: Mon, 7 Mar 2022 21:29:41 +0100
From: Michalis Kamburelis <michalis.kambi at gmail.com
<mailto:michalis.kambi at gmail.com> >
To: Joseph D Williams <joedwil at earthlink.net <mailto:joedwil at earthlink.net>
>
Cc: GPU Group <gpugroup at gmail.com <mailto:gpugroup at gmail.com> >,  "X3D
Public Mailing List
        (x3d-public at web3d.org <mailto:x3d-public at web3d.org> )"
<x3d-public at web3d.org <mailto:x3d-public at web3d.org> >
Subject: Re: [x3d-public] X3DParticleEmitter node inherit from
        X3DChildNode(rather than X3DNode)
Message-ID:
        <CAKzBGZNToR-7CmaUzRxBE3xx9J6j2mPgmvKAjQKpGQxjdY_0hA at mail.gmail.com
<mailto:CAKzBGZNToR-7CmaUzRxBE3xx9J6j2mPgmvKAjQKpGQxjdY_0hA at mail.gmail.com>
>
Content-Type: text/plain; charset="UTF-8"

Perhaps I should have written

"""
The nodes within NodesLibrary don't make any effect, they are not
traversed. They are only to be reUSEd (referenced) by other parts of
the graph."
"""

This makes the wording consistent with how e.g. Switch is described.
Sure you have all the nodes in memory, you just don't traverse to
inactive parts of Switch, LOD, NodesLibrary etc.

Regards,
Michalis



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20220308/4bc2cf8f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5353 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20220308/4bc2cf8f/attachment-0001.p7s>


More information about the x3d-public mailing list