X3D Model Documentation: HelloWorld.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=' HelloWorld.x3d '/>
  6            <meta name='descriptioncontent='Simple X3D scene example: Hello World!'/>
  7            <meta name='createdcontent='30 October 2000'/>
  8            <meta name='modifiedcontent='18 November 2019'/>
  9            <meta name='creatorcontent='Don Brutzman'/>
 10            <meta name='Imagecontent='HelloWorld.tall.png'/>
 11            <meta name='referencecontent='http://en.wikipedia.org/wiki/Hello_world'/>
 12            <meta name='referencecontent='https://en.wikipedia.org/wiki/Hello#.22Hello.2C_World.22_computer_program'/>
 13            <meta name='referencecontent='"https://en.wikipedia.org/wiki/Hello,_World!_program"'/>
 14            <meta name='referencecontent='http://en.wikibooks.org/w/index.php?title=Computer_Programming/Hello_world'/>
 15            <meta name='referencecontent='http://www.HelloWorldExample.net'/>
 16            <meta name='referencecontent='http://www.web3D.org'/>
 17            <meta name='referencecontent='https://www.web3d.org/realtime-3d/news/internationalization-x3d'/>
 18            <meta name='referencecontent=' https://www.web3d.org/x3d/content/examples/HelloWorld.x3d '/>
 19            <meta name='referencecontent='https://X3dGraphics.com/examples/X3dForAdvancedModeling/HelloWorldScenes'/>
 20            <meta name='identifiercontent=' https://X3dGraphics.com/examples/X3dForWebAuthors/Chapter01TechnicalOverview/HelloWorld.x3d '/>
 21            <meta name='licensecontent=' https://www.web3d.org/x3d/content/examples/license.html '/>
 22            <meta name='generatorcontent='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/>
 23            <!-- Alternate encodings: VRML97, X3D ClassicVRML Encoding, X3D Compressed Binary Encoding (CBE), X3DOM, JSON -->
 24            <meta name='referencecontent='HelloWorld.wrl'/>
 25            <meta name='referencecontent='HelloWorld.x3dv'/>
 26            <meta name='referencecontent='HelloWorld.x3db'/>
 27            <meta name='referencecontent='HelloWorld.xhtml'/>
 28            <meta name='referencecontent=' HelloWorld.json '/>
 29       </head>
<!--

<!-- -->
<!-- to top DEF nodes index: ImageCloudlessEarth, MaterialLightBlue, TestWhitespaceCommas, TextMessage, ViewUpClose
-->
 30       <Scene>
 31            <!-- Example scene to illustrate X3D nodes and fields (XML elements and attributes) -->
 32            <WorldInfo title='Hello World!'/>
 33            <Background skyColor='0.2 0.2 0.6'/>
 34            <Group>
 35                 <Viewpoint DEF='ViewUpClosecenterOfRotation='0 -1 0description='Hello world!position='0 -1 7'/>
 36                 <!-- conversion test case with illegal syntax: 0, 1, 0, 3 i.e. insert commas in order to test removal when converted to ttl -->
 37                 <Transform DEF='TestWhitespaceCommasrotation='0 1 0 3'>
 38                      <Shape>
 39                           <Sphere/>
 40                           <Appearance>
 41 
                              <!-- Material MaterialLightBlue is a DEF node that has 1 USE node: USE_1 -->
                              <Material DEF='MaterialLightBluediffuseColor='0.1 0.5 1'/>
 42                                <ImageTexture DEF='ImageCloudlessEarth'   url=' "earth-topo.png " "earth-topo.jpg " "earth-topo-small.gif " "https://www.web3d.org/x3d/content/examples/Basic/earth-topo.png " "https://www.web3d.org/x3d/content/examples/Basic/earth-topo.jpg " "https://www.web3d.org/x3d/content/examples/Basic/earth-topo-small.gif " '/>
 43                           </Appearance>
 44                      </Shape>
 45                 </Transform>
 46                 <Transform translation='0 -2 0'>
 47                      <Shape>
 48                           <Text DEF='TextMessagestring='"Hello" "world!"'>
 49                                <FontStyle justify='"MIDDLE" "MIDDLE"'/>
 50                           </Text>
 51                           <Appearance>
 52                                <Material USE='MaterialLightBlue'/>
 53                           </Appearance>
 54                      </Shape>
 55                 </Transform>
 56            </Group>
 57       </Scene>
 58  </X3D>
<!--

<!-- -->
<!-- to top DEF nodes index: ImageCloudlessEarth, MaterialLightBlue, TestWhitespaceCommas, TextMessage, ViewUpClose
-->
X3D Tooltips element index: Appearance, Background, FontStyle, Group, head, ImageTexture, Material, meta, Scene, Shape, Sphere, Text, Transform, Viewpoint, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and field types

-->

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