X3D Model Documentation: CompassRoseExample.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2 
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
  3  <X3D profile='Immersive' version='3.0 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.0.xsd'>
  4       <head>
  5            <meta name='titlecontent=' CompassRoseExample.x3d '/>
  6            <meta name='descriptioncontent='Example use of CompassRose prototype, a heads-up display (HUD) showing heading for current viewpoint direction.'/>
  7            <meta name='creatorcontent='Christian Greuel, Director of Art & Production, Planet 9 Studios, Inc.'/>
  8            <meta name='translatorcontent=' Xeena VRML importer, X3D-Edit 3.1, https://www.web3d.org/x3d/content/README.X3D-Edit.html '/>
  9            <meta name='createdcontent='1 August 2006'/>
 10            <meta name='translatedcontent='14 October 2006'/>
 11            <meta name='modifiedcontent='28 November 2019'/>
 12            <meta name='Imagecontent='Textures/CompassHeadings.png'/>
 13            <meta name='referencecontent='originals/CompassRoseExample.wrl'/>
 14            <meta name='subjectcontent='compass rose heads-up display HUD'/>
 15            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Savage/Tools/HeadsUpDisplays/CompassRoseExample.x3d '/>
 16            <meta name='generatorcontent=' X3D-Edit, https://www.web3d.org/x3d/content/README.X3D-Edit.html '/>
 17            <meta name='generatorcontent=' Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html '/>
 18       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: GridBlue, GridRed, Ground, GroundCamera, HeadingE, HeadingN, HeadingS, HeadingW

Index for Viewpoint node: GroundCamera

Index for ExternProtoDeclare definition: CompassRose
-->
 19       <Scene>
 20            <WorldInfo info='"Christian Greuel, Director of Art & Production"title='Compass Rose Example'/>
 21            <ExternProtoDeclare name='CompassRose'   url=' "CompassRosePrototype.x3d" "https://www.web3d.org/x3d/content/examples/Savage/Tools/HeadsUpDisplays/CompassRosePrototype.x3d" "CompassRosePrototype.wrl" "https://www.web3d.org/x3d/content/examples/Savage/Tools/HeadsUpDisplays/CompassRosePrototype.wrl" '>
 22                 <field name='sizetype='SFVec3faccessType='initializeOnly'/>
 23                 <field name='locationOffsettype='SFVec3faccessType='initializeOnly'/>
 24            </ExternProtoDeclare>
 25            <NavigationInfo type='"WALK" "ANY"'/>
 26            <Viewpoint DEF='GroundCameradescription='Ground CamerafieldOfView='0.6024orientation='1.0 0.0 0.0 0.0position='0.0 1.75 0.0'/>
 27            <PointLight location='0.0 10.0 0.0radius='20.0'/>
 28            <ProtoInstance name='CompassRose'>
 29                 <fieldValue name='sizevalue='1.0 1.0 1.0'/>
 30                 <fieldValue name='locationOffsetvalue='-0.075 -0.045 0.0'/>
 31            </ProtoInstance>
 32            <Transform DEF='Groundtranslation='0.0 4.5E-5 0.0'>
 33                 <Transform DEF='GridBlue'>
 34                      <Shape>
 35                           <Appearance>
 36                                <Material diffuseColor='0.6039 0.7255 0.898'/>
 37                           </Appearance>
 38                           <IndexedFaceSet coordIndex='5 0 6 -1 1 6 0 -1 7 2 8 -1 3 8 2 -1 10 4 11 -1 5 11 4 -1 12 6 13 -1 7 13 6 -1 14 8 15 -1 9 15 8 -1 17 11 18 -1 12 18 11 -1 19 13 20 -1 14 20 13 -1 22 16 23 -1 17 23 16 -1 24 18 25 -1 19 25 18 -1 26 20 27 -1 21 27 20 -1 28 23 29 -1 24 29 23 -1 30 25 31 -1 26 31 25 -1'>
 39                                <Coordinate point='-3.0 0.0 5.0 -1.0 0.0 5.0 1.0 0.0 5.0 3.0 0.0 5.0 -5.0 0.0 3.0 -3.0 0.0 3.0 -1.0 0.0 3.0 1.0 0.0 3.0 3.0 0.0 3.0 5.0 0.0 3.0 -5.0 0.0 1.0 -3.0 0.0 1.0 -1.0 0.0 1.0 1.0 0.0 1.0 3.0 0.0 1.0 5.0 0.0 1.0 -5.0 0.0 -1.0 -3.0 0.0 -1.0 -1.0 0.0 -1.0 1.0 0.0 -1.0 3.0 0.0 -1.0 5.0 0.0 -1.0 -5.0 0.0 -3.0 -3.0 0.0 -3.0 -1.0 0.0 -3.0 1.0 0.0 -3.0 3.0 0.0 -3.0 5.0 0.0 -3.0 -3.0 0.0 -5.0 -1.0 0.0 -5.0 1.0 0.0 -5.0 3.0 0.0 -5.0'/>
 40                           </IndexedFaceSet>
 41                      </Shape>
 42                 </Transform>
 43                 <Transform DEF='GridRed'>
 44                      <Shape>
 45                           <Appearance>
 46                                <Material diffuseColor='0.8902 0.5961 0.5961'/>
 47                           </Appearance>
 48                           <IndexedFaceSet coordIndex='6 0 7 -1 1 7 0 -1 8 2 9 -1 3 9 2 -1 10 4 11 -1 5 11 4 -1 13 7 14 -1 8 14 7 -1 15 9 16 -1 10 16 9 -1 18 12 19 -1 13 19 12 -1 20 14 21 -1 15 21 14 -1 22 16 23 -1 17 23 16 -1 25 19 26 -1 20 26 19 -1 27 21 28 -1 22 28 21 -1 30 24 31 -1 25 31 24 -1 32 26 33 -1 27 33 26 -1 34 28 35 -1 29 35 28 -1'>
 49                                <Coordinate point='-5.0 0.0 5.0 -3.0 0.0 5.0 -1.0 0.0 5.0 1.0 0.0 5.0 3.0 0.0 5.0 5.0 0.0 5.0 -5.0 0.0 3.0 -3.0 0.0 3.0 -1.0 0.0 3.0 1.0 0.0 3.0 3.0 0.0 3.0 5.0 0.0 3.0 -5.0 0.0 1.0 -3.0 0.0 1.0 -1.0 0.0 1.0 1.0 0.0 1.0 3.0 0.0 1.0 5.0 0.0 1.0 -5.0 0.0 -1.0 -3.0 0.0 -1.0 -1.0 0.0 -1.0 1.0 0.0 -1.0 3.0 0.0 -1.0 5.0 0.0 -1.0 -5.0 0.0 -3.0 -3.0 0.0 -3.0 -1.0 0.0 -3.0 1.0 0.0 -3.0 3.0 0.0 -3.0 5.0 0.0 -3.0 -5.0 0.0 -5.0 -3.0 0.0 -5.0 -1.0 0.0 -5.0 1.0 0.0 -5.0 3.0 0.0 -5.0 5.0 0.0 -5.0'/>
 50                           </IndexedFaceSet>
 51                      </Shape>
 52                 </Transform>
 53                 <Collision enabled='false'>
 54                      <Transform DEF='HeadingErotation='0.5774 -0.5774 0.5774 -4.189translation='6.0 1.0 0.0'>
 55                           <Shape>
 56                                <Appearance>
 57                                     <Material ambientIntensity='1.0diffuseColor='0.588 0.588 0.588shininess='0.145'/>
 58                                     <ImageTexture   url=' "Textures/HeadingE.png " "https://www.web3d.org/x3d/content/examples/Savage/Tools/HeadsUpDisplays/Textures/HeadingE.png " '/>
 59                                </Appearance>
 60                                <IndexedFaceSet coordIndex='2 0 3 -1 1 3 0 -1texCoordIndex='6 4 7 -1 5 7 4 -1'>
 61                                     <Coordinate point='-0.5 0.0 0.5 0.5 0.0 0.5 -0.5 0.0 -0.5 0.5 0.0 -0.5'/>
 62                                     <TextureCoordinate point='0.0 0.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 1.0 1.0 1.0'/>
 63                                </IndexedFaceSet>
 64                           </Shape>
 65                      </Transform>
 66                      <Transform DEF='HeadingNrotation='-1.0 0.0 0.0 -1.571translation='0.0 1.0 -6.0'>
 67                           <Shape>
 68                                <Appearance>
 69                                     <Material ambientIntensity='1.0diffuseColor='0.588 0.588 0.588shininess='0.145'/>
 70                                     <ImageTexture   url=' "Textures/HeadingN.png " "https://www.web3d.org/x3d/content/examples/Savage/Tools/HeadsUpDisplays/Textures/HeadingN.png " '/>
 71                                </Appearance>
 72                                <IndexedFaceSet coordIndex='2 0 3 -1 1 3 0 -1texCoordIndex='6 4 7 -1 5 7 4 -1'>
 73                                     <Coordinate point='-0.5 0.0 0.5 0.5 0.0 0.5 -0.5 0.0 -0.5 0.5 0.0 -0.5'/>
 74                                     <TextureCoordinate point='0.0 0.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 1.0 1.0 1.0'/>
 75                                </IndexedFaceSet>
 76                           </Shape>
 77                      </Transform>
 78                      <Transform DEF='HeadingSrotation='0.0 -0.7071 0.7071 -3.142translation='0.0 1.0 6.0'>
 79                           <Shape>
 80                                <Appearance>
 81                                     <Material ambientIntensity='1.0diffuseColor='0.588 0.588 0.588shininess='0.145'/>
 82                                     <ImageTexture   url=' "Textures/HeadingS.png " "https://www.web3d.org/x3d/content/examples/Savage/Tools/HeadsUpDisplays/Textures/HeadingS.png " '/>
 83                                </Appearance>
 84                                <IndexedFaceSet coordIndex='2 0 3 -1 1 3 0 -1texCoordIndex='6 4 7 -1 5 7 4 -1'>
 85                                     <Coordinate point='-0.5 0.0 0.5 0.5 0.0 0.5 -0.5 0.0 -0.5 0.5 0.0 -0.5'/>
 86                                     <TextureCoordinate point='0.0 0.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 1.0 1.0 1.0'/>
 87                                </IndexedFaceSet>
 88                           </Shape>
 89                      </Transform>
 90                      <Transform DEF='HeadingWrotation='-0.5774 -0.5774 0.5774 -2.094translation='-6.0 1.0 0.0'>
 91                           <Shape>
 92                                <Appearance>
 93                                     <Material ambientIntensity='1.0diffuseColor='0.588 0.588 0.588shininess='0.145'/>
 94                                     <ImageTexture   url=' "Textures/HeadingW.png " "https://www.web3d.org/x3d/content/examples/Savage/Tools/HeadsUpDisplays/Textures/HeadingW.png " '/>
 95                                </Appearance>
 96                                <IndexedFaceSet coordIndex='2 0 3 -1 1 3 0 -1texCoordIndex='6 4 7 -1 5 7 4 -1'>
 97                                     <Coordinate point='-0.5 0.0 0.5 0.5 0.0 0.5 -0.5 0.0 -0.5 0.5 0.0 -0.5'/>
 98                                     <TextureCoordinate point='0.0 0.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 1.0 1.0 1.0'/>
 99                                </IndexedFaceSet>
100                           </Shape>
101                      </Transform>
102                 </Collision>
103            </Transform>
104       </Scene>
105  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: GridBlue, GridRed, Ground, GroundCamera, HeadingE, HeadingN, HeadingS, HeadingW

Index for Viewpoint node: GroundCamera

Index for ExternProtoDeclare definition: CompassRose
-->
X3D Tooltips element index: Appearance, Collision, Coordinate, ExternProtoDeclare, field, fieldValue, head, ImageTexture, IndexedFaceSet, Material, meta, NavigationInfo, PointLight, ProtoInstance, Scene, Shape, TextureCoordinate, Transform, Viewpoint, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and field types

Event Graph ROUTE Table with 0 ROUTE connections total, showing X3D event-model relationships for this scene.

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

line 28
ProtoInstance
CompassRose
No direct ROUTE connection found for events to/from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declarations with
direct access to other nodes, and thus has potential to produce run-time animation. 

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

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/Savage/Tools/HeadsUpDisplays/CompassRoseExampleIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Savage/Tools/HeadsUpDisplays/CompassRoseExample.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)
    <ProtoInstance name='ProtoName'> <field name='fieldName'/> </ProtoInstance> -->

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