X3D Model Documentation: WorldInfoExample.x3d

  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='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.3.xsd'>
  4       <head>
  5            <meta name='titlecontent='WorldInfoExample.x3d'/>
  6            <meta name='descriptioncontent='Simple examples of meta statements, comments, a WorldInfo node and a MetadataString node.'/>
  7            <meta name='creatorcontent='Don Brutzman'/>
  8            <meta name='createdcontent='3 March 2018'/>
  9            <meta name='modifiedcontent='7 December 2024'/>
 10            <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)'/>
 11            <meta name='referencecontent='The following referenced chapter is published online but was not included in the printed book.'/>
 12            <meta name='referencecontent='Chapter15MetadataInformation.html'/>
 13            <meta name='referencecontent='https://x3dgraphics.com/chapters/Chapter15MetadataInformation.html'/>
 14            <meta name='referencecontent='https://X3dGraphics.com'/>
 15            <meta name='referencecontent='https://www.web3d.org/x3d/content/examples/X3dResources.html'/>
 16            <meta name='referencecontent='https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#Metadata'/>
 17            <meta name='rightscontent='Copyright 2018, Daly Realism and Don Brutzman'/>
 18            <meta name='subjectcontent='X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com'/>
 19            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter15Metadata/WorldInfoExample.x3d'/>
 20            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 21            <meta name='licensecontent='../license.html'/>
 22       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF nodes: MyMetadataStringNode, MyWorldInfo

Index for Viewpoint node: Viewpoint_1
-->
 23       <Scene>
 24            <!-- Comments can appear between nodes (XML elements) but are not retained after a scene is parsed, loaded and playing -->
 25            <WorldInfo DEF='MyWorldInfoinfo='"Metadata strings" "can go here" "as string array values"title='WorldInfo.x3d Example Scene'>
 26                 <!-- WorldInfo can contain Metadata nodes in X3D but not in VRML97. -->
 27                 <!-- WorldInfo single available child field of interest is 'metadata' and so contained MetadataString must have containerField='metadata' which IS the default in X3D3' -->
 28                 <MetadataString DEF='MyMetadataStringNodename='TestNodereference='X3Dvalue='"Hello" "WorldInfo"'/>
 29            </WorldInfo>
 30            <Background skyColor='0 0.439216 0.760784'/>
 31            <Viewpoint description='View scene source to see metadata examplesposition='0 0 9'/>
 32            <Anchor description='Load scene index pageparameter='"target=_blank"'   url=' "WorldInfoExampleIndex.html" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter15Metadata/WorldInfoExampleIndex.html" '>
 33                 <Shape>
 34                      <Text string='"View scene source" "to see" "WorldInfoExample"'>
 35                           <FontStyle justify='"MIDDLE" "MIDDLE"'/>
 36                      </Text>
 37                      <Appearance>
 38                           <Material diffuseColor='1 0.992157 0.039216'/>
 39                      </Appearance>
 40                 </Shape>
 41            </Anchor>
 42       </Scene>
 43  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF nodes: MyMetadataStringNode, MyWorldInfo

Index for Viewpoint node: Viewpoint_1
-->
X3D Tooltips element index: Anchor, Appearance, Background, FontStyle, head, Material, meta, MetadataString, Scene, Shape, Text, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter15Metadata/WorldInfoExampleIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter15Metadata/WorldInfoExample.x3d -->

<!-- Color 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. -->