X3D Model Documentation: RoboBill.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='RoboBill.x3d'/>
  6            <meta name='descriptioncontent="RoboBill is a Robot Billboard that illustrates the use of Group, Transform, and Billboard groups - navigate around, here's looking at you! The left robot's head rotates in the horizontal plane, the right robot's head rotates in any direction."/>
  7            <meta name='creatorcontent='David R. Nadeau'/>
  8            <meta name='translatorcontent='Don Brutzman'/>
  9            <meta name='createdcontent='1 July 1998'/>
 10            <meta name='translatedcontent='2 February 2014'/>
 11            <meta name='modifiedcontent='20 October 2019'/>
 12            <meta name='referencecontent='originals/robobill.wrl'/>
 13            <meta name='referencecontent='http://www.siggraph.org/s98'/>
 14            <meta name='referencecontent='http://www.siggraph.org/s98/conference/courses/18.html'/>
 15            <meta name='referencecontent='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0093.htm'/>
 16            <meta name='referencecontent='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/vrml97.htm'/>
 17            <meta name='referencecontent='https://www.web3d.org/x3d/content/examples/X3dResources.html'/>
 18            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/RoboBill.x3d'/>
 19            <meta name='generatorcontent='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/>
 20            <meta name='generatorcontent='X3D-Edit, https://savage.nps.edu/X3D-Edit'/>
 21            <meta name='licensecontent='../license.html'/>
 22       </head>
<!--

<!-- -->

<!-- to top Index for DEF nodes: Entry, RoboBody, RoboHead, Slab

Index for Viewpoint node: Entry
-->
 23       <Scene>
 24            <!-- Two robots are built with their heads in Billboard groups, but their torsos left out of it. As the viewer walks about the robot, the heads always turn to face the viewer. The left robot's head is constrained to rotate about the Y axis, while the right robot's head can rotate freely. -->
 25            <!-- To make it clear what is, and is not moving to track the viewer, the torso of the robot remains fixed, as does a background of blue slabs. -->
 26            <!-- Things to experiment with: -->
 27            <!-- Place the entire robot in the Billboard group so that the whole robot tracks the viewer, not just the robot's head. -->
 28            <!-- Add textures to the environment. -->
 29            <!-- Add light sources, such as one placed in the lower ball of the robot. Make that ball emissive as well so that it looks like the ball is the source of light. Remember to put the light source inside the robot's transform group so that as the robot moves, the light source moves with it. -->
 30            <!-- Add behavior to the robot. Make it move on its own! -->
 31            <!-- -->
 32            <WorldInfo info='"Copyright (c) 1998, David R. Nadeau"title='Robot Billboard'/>
 33            <Viewpoint DEF='Entrydescription='Entry viewposition='0.0 3.0 12.0'/>
 34            <NavigationInfo/>
 35            <Background/>
 36            <Transform scale='2.0 2.0 2.0translation='-2.0 1.0 0.0'>
 37 
               <!-- Inline RoboBody is a DEF node that has 1 USE node: USE_1 -->
               <Inline DEF='RoboBody'   url=' "robobody.x3d" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/robobody.x3d" "robobody.wrl" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/robobody.wrl" '/>
 38                 <Transform translation='0.0 1.4 0.0'>
 39                      <Billboard>
 40 
                         <!-- Inline RoboHead is a DEF node that has 1 USE node: USE_1 -->
                         <Inline DEF='RoboHead'   url=' "robohead.x3d" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/robohead.x3d" "robohead.wrl" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/robohead.wrl" '/>
 41                      </Billboard>
 42                 </Transform>
 43            </Transform>
 44            <Transform scale='2.0 2.0 2.0translation='2.0 1.0 0.0'>
 45                 <Inline USE='RoboBody'/>
 46                 <Transform translation='0.0 1.4 0.0'>
 47                      <Billboard axisOfRotation='0.0 0.0 0.0'>
 48                           <Inline USE='RoboHead'/>
 49                      </Billboard>
 50                 </Transform>
 51            </Transform>
 52            <Transform translation='0.0 2.0 -6.0'>
 53 
               <!-- Shape Slab is a DEF node that has 4 USE nodes: USE_1, USE_2, USE_3, USE_4 -->
               <Shape DEF='Slab'>
 54                      <Appearance>
 55                           <Material diffuseColor='0.0 0.1 0.5emissiveColor='0.0 0.3 0.5'/>
 56                      </Appearance>
 57                      <Box size='2.0 4.0 0.3'/>
 58                 </Shape>
 59            </Transform>
 60            <Transform translation='-6.0 2.0 0.0'>
 61                 <Shape USE='Slab'/>
 62            </Transform>
 63            <Transform translation='6.0 2.0 0.0'>
 64                 <Shape USE='Slab'/>
 65            </Transform>
 66            <Transform translation='-4.3 2.0 -4.3'>
 67                 <Shape USE='Slab'/>
 68            </Transform>
 69            <Transform translation='4.3 2.0 -4.3'>
 70                 <Shape USE='Slab'/>
 71            </Transform>
 72       </Scene>
 73  </X3D>
<!--

<!-- -->

<!-- to top Index for DEF nodes: Entry, RoboBody, RoboHead, Slab

Index for Viewpoint node: Entry
-->
X3D Tooltips element index: Appearance, Background, Billboard, Box, head, Inline, Material, meta, NavigationInfo, Scene, Shape, Transform, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/RoboBillIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/RoboBill.x3d -->

<!-- Color legend: X3D terminology <X3dNode DEF='idName' field='value'/> matches XML terminology <XmlElement DEF='idName' attribute='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. -->