X3D Model Documentation: MetadataNodeExamplesX3D3.x3d go to online X3D Example Archives model page

  1  <?xml version="1.0" encoding="UTF-8"?>
  2  <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
  3  <X3D profile='Immersive' version='3.3 xmlns:xsd='https://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.3.xsd'>
  4       <head>
  5            <meta name='titlecontent=' MetadataNodeExamplesX3D3.x3d '/>
  6            <meta name='descriptioncontent='Simple examples of meta statements, comments, WorldInfo node and typed metadata nodes.'/>
  7            <meta name='creatorcontent='Don Brutzman'/>
  8            <meta name='createdcontent='30 September 2011'/>
  9            <meta name='modifiedcontent='15 July 2026'/>
 10            <meta name='referencecontent='Original name MetadataNodeExamples.x3d, renamed since handling of metadata containerField defaults changed in X3D4.'/>
 11            <meta name='referencecontent=' MetadataNodeExamplesX3D4.x3d '/>
 12            <meta name='specificationSectioncontent='X3D 4.0 Architecture, ISO/IEC 19775-1:2023, 4 Concepts, 4.3.2 Root nodes'/>
 13            <meta name='specificationUrlcontent='https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/concepts.html#Rootnodes'/>
 14            <meta name='infocontent='Information in head and meta elements is retained after a scene is parsed and loaded, and can be referenced via the Scene Access Interface (SAI) or Document Object Model (DOM)'/>
 15            <meta name='infocontent='Authoring note: MetadataBoolean requires X3D version 3.3, as used in this example scene'/>
 16            <meta name='referencecontent='The following referenced chapter is published online but was not included in the printed book.'/>
 17            <meta name='referencecontent=' Chapter15MetadataInformation.html '/>
 18            <meta name='referencecontent=' https://x3dgraphics.com/chapters/Chapter15MetadataInformation.html '/>
 19            <meta name='referencecontent='https://X3dGraphics.com'/>
 20            <meta name='referencecontent=' https://www.web3d.org/x3d/content/examples/X3dResources.html '/>
 21            <meta name='rightscontent='Copyright 2006, Daly Realism and Don Brutzman'/>
 22            <meta name='subjectcontent='X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com'/>
 23            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter15Metadata/MetadataNodeExamplesX3D3.x3d '/>
 24            <meta name='generatorcontent='X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit'/>
 25            <meta name='licensecontent='../license.html'/>
 26       </head>
<!--

Event Graph ROUTE Table shows event connections.

--> <!-- to top DEF nodes index: MyMetadataBooleanNode, MyMetadataDoubleNode, MyMetadataFloatNode, MyMetadataIntegerNode, MyMetadataSetNode, MyMetadataStringNode, MyWorldInfo, NestedMetadataSetNode

Index for Viewpoint node: Viewpoint_1

-->
 27       <Scene>
 28            <!-- May 2017: X3D4 Architecture Specification clarification allows Metadata nodes at top level of Scene graph. -->
 29            <MetadataString name='TestRootMetadataNodevalue='"Check whether scene root Metadata* node is satisfactory." "Note that all SFString values must be quoted."'/>
 30            <!-- Comments can appear between nodes (XML elements) but are not retained after a scene is parsed, loaded and playing -->
 31            <WorldInfo DEF='MyWorldInfoinfo='"Metadata strings" "can go here" "as string array values"title='MetadataNodeExamplesX3D3.x3d Example Scene'>
 32                 <!-- Structured information can go in Metadata nodes. Note that any X3D node can contain a single Metadata node with containerField='metadata' -->
 33                 <MetadataSet DEF='MyMetadataSetNodename='Metadata_namereference='SomeReferenceStandard 1.2.3c'>
 34                      <MetadataSet DEF='NestedMetadataSetNodename='TestNestedMetadataSetNodes'>
 35                           <!-- MetadataSet can also contain multiple Metadata nodes with explicit containerField='value' including USE nodes -->
 36                           <MetadataString USE='MyMetadataStringNodecontainerField='value'/>
 37                           <MetadataInteger USE='MyMetadataIntegerNodecontainerField='value'/>
 38                           <MetadataFloat USE='MyMetadataFloatNodecontainerField='value'/>
 39                           <MetadataFloat containerField='valuename='coefficientsvalue='3.141592653 2.7128 1 0'/>
 40                      </MetadataSet>
 41                      <MetadataBoolean DEF='MyMetadataBooleanNodecontainerField='valuename='Coin Flipreference='MetadataBoolean supported in X3D v3.3 and latervalue='true false true false'/>
 42                      <MetadataDouble DEF='MyMetadataDoubleNodecontainerField='valuename='Metadata_namereference='SomeReferenceStandard 1.2.3cvalue='3.141592658 2.71812181'/>
 43 
                    <!-- MetadataFloat MyMetadataFloatNode is a DEF node that has 1 USE node: USE_1 -->
                    <MetadataFloat DEF='MyMetadataFloatNodecontainerField='valuename='Metadata_namereference='SomeReferenceStandard 1.2.3cvalue='9.8 6.023e+23'/>
 44 
                    <!-- MetadataInteger MyMetadataIntegerNode is a DEF node that has 1 USE node: USE_1 -->
                    <MetadataInteger DEF='MyMetadataIntegerNodecontainerField='valuename='Metadata_namereference='SomeReferenceStandard 1.2.3cvalue='6 28 496'/>
 45 
                    <!-- MetadataString MyMetadataStringNode is a DEF node that has 1 USE node: USE_1 -->
                    <MetadataString DEF='MyMetadataStringNodecontainerField='valuename='Metadata_namereference='SomeReferenceStandard 1.2.3cvalue='"Part 27" "P27" "p27"'/>
 46                 </MetadataSet>
 47            </WorldInfo>
 48            <Background skyColor='0 0.439216 0.760784'/>
 49            <Viewpoint description='View scene source to see metadata examplesposition='0 0 9'/>
 50            <Anchor description='Load scene index pageparameter='"target=_blank"'   url=' "MetadataNodeExamplesIndex.html" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter15Metadata/MetadataNodeExamplesIndex.html"'>
 51                 <Shape>
 52                      <Text string='"View scene source" "to see" "metadata examples"'>
 53                           <FontStyle justify='"MIDDLE" "MIDDLE"'/>
 54                      </Text>
 55                      <Appearance>
 56                           <Material diffuseColor='1 0.992157 0.039216'/>
 57                      </Appearance>
 58                 </Shape>
 59            </Anchor>
 60       </Scene>
 61  </X3D>
<!--

Event Graph ROUTE Table shows event connections.

--> <!-- to top DEF nodes index: MyMetadataBooleanNode, MyMetadataDoubleNode, MyMetadataFloatNode, MyMetadataIntegerNode, MyMetadataSetNode, MyMetadataStringNode, MyWorldInfo, NestedMetadataSetNode

Index for Viewpoint node: Viewpoint_1

-->

X3D Tooltips element index: to top Anchor, Appearance, Background, FontStyle, head, Material, meta, MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataSet, MetadataString, Scene, Shape, Text, Viewpoint, WorldInfo, X3D,
plus documentation for accessType definitions, type definitions, XML data types, and field types

🔖   Event Graph ROUTE Table with 0 ROUTE connections1 Anchor hover hint, showing X3D event-model relationships for this scene.

Each row with a ROUTE statement shows an event cascade that may occur during a single timestamp interval between frame renderings, performed as part of the X3D execution model.

line 50
Anchor
description='Load scene index page' 
No direct ROUTE connection found for events to/from this node. 

Additional guidance on X3D animation can be found in the 10-Step Animation Design Process and Event Tracing hint sheets.
Have fun with X3D! 😀

-->
go to online X3D Example Archives model page <!-- Online at
https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter15Metadata/MetadataNodeExamplesX3D3Index.html -->
<!-- SourceForge version control Version control at    
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter15Metadata/MetadataNodeExamplesX3D3.x3d -->

<!-- Color-coding legend: X3D terminology <X3dNode DEF='idNamefield='value'/> matches XML terminology <XmlElement DEF='idNameattribute='value'/>
(Light-blue background: event-based behavior node or statement) (Grey background inside box: inserted documentation) (Magenta background: X3D Extensibility)
-->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->