[x3d-public] X3D example scenes using MetadataSet in WorldInfo

Brutzman, Donald (Don) (CIV) brutzman at nps.edu
Wed Feb 2 09:03:13 PST 2022


Hi Vince.  I belatedly found the attached scene lingering on my desktop.  Looked like the goal was to show nested MetadataSet nodes.

I've added some information to the scene, and validated them.  Also adapted matching side-by-side versions for X3D3 and X3D4 to illustrate small differences in syntax.


  *   X3D Example Archives: X3D4WA, X3D for Web Authors, Chapter 15 Metadata
  *   https://x3dgraphics.com/examples/X3dForWebAuthors/Chapter15Metadata


  *   World Info Example Metadata Set X3D 3
  *   https://x3dgraphics.com/examples/X3dForWebAuthors/Chapter15Metadata/WorldInfoExampleMetadataSetX3D3Index.html

<WorldInfo>
    <!-- WorldInfo single available child field of interest is 'metadata' and so contained MetadataSet must have containerField='metadata' which IS the default in X3D3' -->
    <MetadataSet containerField='metadata' name='birthday' reference=' http://www.americaslibrary.gov/jb/colonial/jb_colonial_washingtn_2.html '>
        <MetadataString containerField='metadata' name='calendar' reference='this node describes nature of parent node, and is not intended as a data value' value='"Julian"'/>
        <!-- MetadataSet next field of interest is 'value' and so contained Metadata nodes must have containerField='value' which IS NOT default in X3D3' -->
        <MetadataInteger containerField='value' name='day' value='11'/>
        <MetadataInteger containerField='value' name='month' value='2'/>
        <MetadataInteger containerField='value' name='year' value='1731'/>
    </MetadataSet>
</WorldInfo>


  *   World Info Example Metadata Set X3D 4
  *   https://x3dgraphics.com/examples/X3dForWebAuthors/Chapter15Metadata/WorldInfoExampleMetadataSetX3D4Index.html

<WorldInfo>
    <!-- WorldInfo single available child field of interest is 'metadata' so contained MetadataSet must have containerField='metadata' which IS NOT default in X3D4' -->
    <MetadataSet containerField='metadata' name='birthday' reference=' http://www.americaslibrary.gov/jb/colonial/jb_colonial_washingtn_2.html '>
        <MetadataString containerField='metadata' name='calendar' reference='this node describes nature of parent node, and is not intended as a data value' value='"Julian"'/>
        <!-- MetadataSet next field of interest is 'value' and so contained Metadata nodes must have containerField='value' which IS the default in X3D4' -->
        <MetadataInteger name='day' value='11' containerField='value'/>
        <MetadataInteger name='month' value='2' containerField='value'/>
        <MetadataInteger name='year' value='1731' containerField='value'/>
    </MetadataSet>
</WorldInfo>

Hopefully that is moving in the directions you want, let's keep improving.  Thanks for initiating this effort.

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20220202/43e7a223/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MetadataSetWithMetadata.x3d
Type: application/octet-stream
Size: 1396 bytes
Desc: MetadataSetWithMetadata.x3d
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20220202/43e7a223/attachment-0001.obj>


More information about the x3d-public mailing list