X3D Model Documentation: DeadReckoningComparisons.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='DeadReckoningComparisons.x3d'/>
  6            <meta name='descriptioncontent='Compare different dead-reckoning algorithms to see relative effects of velocity and acceleration on animation smoothness.'/>
  7            <meta name='creatorcontent='Brian Hittner'/>
  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='11 June 2003'/>
 10            <meta name='translatedcontent='12 June 2003'/>
 11            <meta name='modifiedcontent='20 October 2019'/>
 12            <meta name='versioncontent='1.0'/>
 13            <meta name='referencecontent='DeadReckoningComparisons/Project4.java'/>
 14            <meta name='referencecontent='vrml97.jar'/>
 15            <meta name='referencecontent='DeadReckoningComparisons/README.TXT'/>
 16            <meta name=' warning content=' CLASSPATH needs to include location of DeadReckoningComparisons/Project4.jar '/>
 17            <meta name='subjectcontent='dead reckoning'/>
 18            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/DeadReckoningComparisons.x3d'/>
 19            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 20            <meta name='generatorcontent='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/>
 21            <meta name='licensecontent='../license.html'/>
 22       </head>
<!--

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

<!-- to top Index for DEF nodes: Clock, Movement, myMessage, SpherePosition

Index for Viewpoint node: Viewpoint_1
-->
 23       <Scene>
 24            <WorldInfo title='DeadReckoningComparisons.x3d'/>
 25            <Viewpoint description='Dead Reckoning Comparisonsposition='0.0 0.0 15.0'/>
 26            <Group>
 27 
               <!-- ROUTE information for SpherePosition node:  [from Movement.position_changed to translation ] -->
               <Transform DEF='SpherePosition'>
 28                      <Group>
 29                           <Shape>
 30                                <Appearance>
 31                                     <Material diffuseColor='1.0 0.1 0.1'/>
 32                                </Appearance>
 33                                <Sphere/>
 34                           </Shape>
 35                      </Group>
 36 
                    <!-- ROUTE information for Clock node:  [from fraction_changed to Movement.set_time ] -->
                    <TimeSensor DEF='ClockcycleInterval='5.0loop='true'/>
 37                      <!-- Warning: VRML97-style scripting, not X3D Scene Authoring Interface (SAI) -->
 38 
 39                           <field name='set_timetype='SFFloataccessType='inputOnly'/>
 40                           <field name='position_changedtype='SFVec3faccessType='outputOnly'/>
 41                           <field name='text_changedtype='MFStringaccessType='outputOnly'/>
 42                      </Script>
 43                 </Transform>
 44                 <Transform translation='-4.0 0.0 0.0'>
 45                      <Shape>
 46                           <Appearance>
 47                                <Material/>
 48                           </Appearance>
 49 
                         <!-- ROUTE information for myMessage node:  [from Movement.text_changed to string ] -->
                         <Text DEF='myMessagestring='"Test String"'/>
 50                      </Shape>
 51                 </Transform>
 52            </Group>
 53            < ROUTE  fromNode='Clock' fromField='fraction_changed' toNode='Movement' toField='set_time'/>
 54            < ROUTE  fromNode='Movement' fromField='position_changed' toNode='SpherePosition' toField='translation'/>
 55            < ROUTE  fromNode='Movement' fromField='text_changed' toNode='myMessage' toField='string'/>
 56       </Scene>
 57  </X3D>
<!--

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

<!-- to top Index for DEF nodes: Clock, Movement, myMessage, SpherePosition

Index for Viewpoint node: Viewpoint_1
-->
X3D Tooltips element index: Appearance, field, Group, head, Material, meta, ROUTE, Scene, Script, Shape, Sphere, Text, TimeSensor, Transform, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types

Event Graph ROUTE Table entries with 3 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.

Clock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(1)
Movement
Script
set_time
SFFloat
then
 
 
 
Movement
Script
position_changed
SFVec3f

ROUTE
event to
(2)
SpherePosition
Transform
translation
SFVec3f
  then
 
 
 
Movement
Script
text_changed
MFString

ROUTE
event to
(2)
myMessage
Text
string
MFString

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/Basic/StudentProjects/DeadReckoningComparisonsIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/StudentProjects/DeadReckoningComparisons.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. -->