X3D Model Documentation: HelloWorldX3D4.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2  <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 4.0//EN" "https://www.web3d.org/specifications/x3d-4.0.dtd">
  3  <X3D profile='Immersive' version='4.0 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-4.0.xsd'>
  4       <head>
  5            <meta name='titlecontent=' HelloWorldX3D4.x3d '/>
  6            <meta name='descriptioncontent='Test X3D version 4 with simple X3D model example: Hello World!'/>
  7            <meta name='createdcontent='10 June 2021'/>
  8            <meta name='modifiedcontent='30 August 2025'/>
  9            <meta name='creatorcontent='Don Brutzman'/>
 10            <meta name='Imagecontent='https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloWorld.tall.png'/>
 11            <meta name='Soundcontent=' https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloWorldX3D4.m4a ' />
 12            <meta name='Soundcontent=' https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloWorldX3D4.wav ' />
 13            <meta name='referencecontent='https://en.wikipedia.org/wiki/Hello_world'/>
 14            <meta name='referencecontent='https://en.wikipedia.org/wiki/Hello#.22Hello.2C_World.22_computer_program'/>
 15            <meta name='referencecontent='"https://en.wikipedia.org/wiki/Hello,_World!_program"'/>
 16            <meta name='referencecontent='https://en.wikibooks.org/w/index.php?title=Computer_Programming/Hello_world'/>
 17            <meta name='referencecontent='https://www.HelloWorldExample.net'/>
 18            <meta name='referencecontent='https://www.web3d.org'/>
 19            <meta name='referencecontent='https://www.web3d.org/realtime-3d/news/internationalization-x3d'/>
 20            <meta name='referencecontent=' https://www.web3d.org/x3d/content/examples/HelloWorld.x3d '/>
 21            <meta name='referencecontent=' https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloWorld.x3d '/>
 22            <meta name='referencecontent=' https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/htmlGuidelines.html '/>
 23            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloWorldX3D4.x3d '/>
 24            <meta name='licensecontent=' https://www.web3d.org/x3d/content/examples/license.html '/>
 25            <meta name='generatorcontent='X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit'/>
 26            <meta name='referencecontent='HelloWorld.wrl'/>
 27            <meta name='referencecontent='HelloWorldX3D4.wrl'/>
 28            <meta name='referencecontent='HelloWorldX3D4.x3dv'/>
 29            <meta name='referencecontent='HelloWorldX3D4.x3db'/>
 30            <meta name='referencecontent='HelloWorldX3D4.xhtml'/>
 31            <meta name='referencecontent=' HelloWorldX3D4.json '/>
 32            <meta name='referencecontent=' HelloWorldX3D4.java '/>
 33            <meta name='referencecontent=' HelloWorldX3D4.py '/>
 34            <meta name='referencecontent=' HelloWorldX3D4.ttl '/>
 35       </head>
<!--

<!-- -->
<!-- to top DEF nodes index: ImageCloudlessEarth, MaterialOffWhite, TextMessage, ViewUpClose, WorldInfoPrimary, WorldInfoSecondary

Index for Viewpoint node: ViewUpClose
-->
 36       <Scene>
 37            <!-- Example scene to illustrate X3D nodes and fields (XML elements and attributes) -->
 38            <WorldInfo DEF='WorldInfoPrimaryinfo='"Example scene to illustrate a simple X3D4 model"title='Hello World X3D4!'/>
 39            <WorldInfo DEF='WorldInfoSecondaryclass='TestClassid='TestIDstyle='TestStyletitle='test HTML CSS fields'/>
 40            <NavigationInfo/>
 41            <Group>
 42                 <Viewpoint DEF='ViewUpClosecenterOfRotation='0 -1 0description='Hello world!position='0 -1 7'/>
 43                 <Transform rotation='0 1 0 3'>
 44                      <Shape>
 45                           <Sphere/>
 46                           <Appearance>
 47                                <!-- https://htmlcolorcodes.com/colors/off-white -->
 48 
                              <!-- Material MaterialOffWhite is a DEF node that has 1 USE node: USE_1 -->
                              <Material DEF='MaterialOffWhitediffuseColor='0.980392 0.976471 0.964706'/>
 49                                <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 " '/>
 50                           </Appearance>
 51                      </Shape>
 52                 </Transform>
 53                 <Transform translation='0 -2 0'>
 54                      <Shape>
 55                           <Text DEF='TextMessagestring='"Hello" "X3D 4!"'>
 56                                <FontStyle justify='"MIDDLE" "MIDDLE"'/>
 57                           </Text>
 58                           <Appearance>
 59                                <Material USE='MaterialOffWhite'/>
 60                           </Appearance>
 61                      </Shape>
 62                 </Transform>
 63            </Group>
 64       </Scene>
 65  </X3D>
<!--

<!-- -->
<!-- to top DEF nodes index: ImageCloudlessEarth, MaterialOffWhite, TextMessage, ViewUpClose, WorldInfoPrimary, WorldInfoSecondary

Index for Viewpoint node: ViewUpClose
-->
X3D Tooltips element index: Appearance, FontStyle, Group, head, ImageTexture, Material, meta, NavigationInfo, Scene, Shape, Sphere, Text, Transform, Viewpoint, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and field types

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloWorldX3D4Index.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloWorldX3D4.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. -->