[x3d-public] X3DParticleEmitter node inherit fromX3DChildNode(ratherthan X3DNode)

Joseph D Williams joedwil at earthlink.net
Fri Mar 18 13:52:49 PDT 2022


➢  <use x="5" y="5" href="#myCircle" fill="url('#myGradient')" />

OK, but why the use uses href and url names when the objective is the same, just to reference the defs id values? 
Can you change the values in the defs? 

Thanks,
Joe

<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
  <!-- Some graphical objects to use -->
  <defs>
    <circle id="myCircle" cx="0" cy="0" r="5" />

    <linearGradient id="myGradient" gradientTransform="rotate(90)">
      <stop offset="20%" stop-color="gold" />
      <stop offset="90%" stop-color="red" />
    </linearGradient>
  </defs>

  <!-- using my graphical objects -->
  <use x="5" y="5" href="#myCircle" fill="url('#myGradient')" />
</svg>

From: Andreas Plesch
Sent: Friday, March 11, 2022 7:32 AM
To: Brutzman, Donald (Don) (CIV)
Cc: Joseph D Williams; X3D Graphics public mailing list; Jakub Flotyński
Subject: Re: [x3d-public] X3DParticleEmitter node inherit fromX3DChildNode(ratherthan X3DNode)

On Thu, Mar 10, 2022 at 9:41 PM Brutzman, Donald (Don) (CIV) <brutzman at nps.edu> wrote:
Sorry I thought we were talking about Metadata examples, not DEF/USE id/idref identifier/copy-by-reference kinds of reuse.

glTF and collada have "extras" for unstructured metadata. glTF now also has structured metadata:

https://www.khronos.org/blog/pervasive-asset-metadata-in-3dcommerce

based on the XMP standard.

https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_xmp_json_ld

has the details.

To avoid further confusion, let me emphasize this is completely unrelated to library node functionality.

Hope this helps, Andreas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20220318/20bad2d0/attachment.html>


More information about the x3d-public mailing list