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='title' content='DeadReckoningComparisons.x3d'/> |
6 | <meta name='description' content='Compare different dead-reckoning algorithms to see relative effects of velocity and acceleration on animation smoothness.'/> |
7 | <meta name='creator' content='Brian Hittner'/> |
8 | <meta name='translator' content='Xeena VRML importer, X3D-Edit 3.1, https://www.web3d.org/x3d/content/README.X3D-Edit.html'/> |
9 | <meta name='created' content='11 June 2003'/> |
10 | <meta name='translated' content='12 June 2003'/> |
11 | <meta name='modified' content='20 October 2019'/> |
12 | <meta name='version' content='1.0'/> |
13 | <meta name='reference' content='DeadReckoningComparisons/Project4.java'/> |
14 | <meta name='reference' content='vrml97.jar'/> |
15 | <meta name='reference' content='DeadReckoningComparisons/README.TXT'/> |
16 | <meta name=' warning ' content=' CLASSPATH needs to include location of DeadReckoningComparisons/Project4.jar '/> |
17 | <meta name='subject' content='dead reckoning'/> |
18 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/DeadReckoningComparisons.x3d'/> |
19 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
20 | <meta name='generator' content='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/> |
21 | <meta name='license' content='../license.html'/> |
22 | </head> |
23 | <Scene> |
24 | <WorldInfo title='DeadReckoningComparisons.x3d'/> |
25 | <Viewpoint description='Dead Reckoning Comparisons' position='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='Clock' cycleInterval='5.0' loop='true'/> |
37 | <!-- Warning: VRML97-style scripting, not X3D Scene Authoring Interface (SAI) --> |
38 |
<!-- ROUTE information for Movement node:
[from Clock.fraction_changed to set_time
]
[from position_changed to SpherePosition.translation
]
[from text_changed to myMessage.string
]
-->
<Script DEF='Movement' url=' "DeadReckoningComparisons/Project4.class" "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/DeadReckoningComparisons/Project4.class" '> |
39 | <field name='set_time' type='SFFloat' accessType='inputOnly'/> |
40 | <field name='position_changed' type='SFVec3f' accessType='outputOnly'/> |
41 | <field name='text_changed' type='MFString' accessType='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='myMessage' string='"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 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 |
Movement
Script set_time SFFloat |
then
|
Movement
Script position_changed SFVec3f |
SpherePosition
Transform translation SFVec3f |
||
then
|
Movement
Script text_changed MFString |
myMessage
Text string MFString |
<!--
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)
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->