X3D Model Documentation: RearWindow.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2  <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.1//EN" "https://www.web3d.org/specifications/x3d-3.1.dtd">
  3  <X3D profile='Immersive' version='3.1 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.1.xsd'>
  4       <head>
  5            <meta name='titlecontent='RearWindow.x3d'/>
  6            <meta name='descriptioncontent='Rear window from the balck midsize truck'/>
  7            <meta name='creatorcontent='Donald Coomes'/>
  8            <meta name='createdcontent='25 August 2006'/>
  9            <meta name='modifiedcontent='20 October 2019'/>
 10            <meta name='generatorcontent='X3D-Edit, Wings3d, and Flux Studio'/>
 11            <meta name='identifiercontent='https://savage.nps.edu/Savage/GroundVehicles/Truck/RearWindow.x3d'/>
 12            <meta name='licensecontent='../../license.html'/>
 13       </head>
<!--

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

<!-- to top Index for DEF nodes: ClearGlass, RearWindow, RearWindowClock, RearWindowPI, RearWindowSensor, WindowRear
-->
 14       <Scene>
 15            <WorldInfo title='RearWindow.x3d'/>
 16            <Group DEF='WindowRear'>
 17 
               <!-- ROUTE information for RearWindow node:  [from RearWindowPI.value_changed to set_translation ] -->
               <Transform DEF='RearWindow'>
 18                      <Shape>
 19                           <Appearance>
 20                                <Material DEF='ClearGlassdiffuseColor='0 0 .25transparency='.5'/>
 21                           </Appearance>
 22                           <IndexedFaceSet creaseAngle='0.524colorIndex='0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1 0 0 0 -1coordIndex='0 5 16 -1 0 16 19 -1 0 19 18 -1 0 18 3 -1 1 2 11 -1 1 11 10 -1 1 10 9 -1 1 9 4 -1 2 7 8 -1 2 8 11 -1 3 18 17 -1 3 17 6 -1 4 7 15 -1 4 15 14 -1 4 9 8 -1 4 8 7 -1 4 14 13 -1 4 13 5 -1 5 6 17 -1 5 17 16 -1 5 13 12 -1 5 12 6 -1 6 12 15 -1 6 15 7 -1 8 9 10 -1 8 10 11 -1 12 13 14 -1 12 14 15 -1 16 17 18 -1 16 18 19 -1'>
 23                                <Coordinate point='-1.9369 1.57058 -2.11829 1.91838 1.5812 -2.11852 1.83455 1.58097 -2.08952 -1.85159 1.57081 -2.08979 1.76023 1.69121 -2.11851 -1.75893 1.68151 -2.1183 -1.73 1.68159 -2.08964 1.73278 1.69113 -2.08967 1.7344 .99762 -2.08967 1.76185 .99769 -2.11851 1.92 .88768 -2.11852 1.83617 .88745 -2.08952 -1.72838 .98808 -2.08964 -1.75731 .988 -2.1183 1.76185 .99769 -2.11851 1.7344 .99762 -2.08967 -1.75731 .988 -2.1183 -1.72838 .98808 -2.08964 -1.84997 .8773 -2.08979 -1.93528 .87706 -2.11829'/>
 24                           </IndexedFaceSet>
 25                      </Shape>
 26                 </Transform>
 27 
               <!-- ROUTE information for RearWindowClock node:  [from RearWindowSensor.touchTime to startTime ] [from fraction_changed to RearWindowPI.set_fraction ] -->
               <TimeSensor DEF='RearWindowClockcycleInterval='8.000'/>
 28 
               <!-- ROUTE information for RearWindowSensor node:  [from touchTime to RearWindowClock.startTime ] -->
               <TouchSensor DEF='RearWindowSensordescription='Touch to roll down rear window'/>
 29            </Group>
 30 
          <!-- ROUTE information for RearWindowPI node:  [from RearWindowClock.fraction_changed to set_fraction ] [from value_changed to RearWindow.set_translation ] -->
          <PositionInterpolator DEF='RearWindowPIkey='0 .25 .49997 .75 1keyValue='0 0 0 0 -.4 0 0 -.65 0 0 -.4 0 0 0 0'/>
 31            < ROUTE  fromNode='RearWindowClock' fromField='fraction_changed' toNode='RearWindowPI' toField='set_fraction'/>
 32            < ROUTE  fromNode='RearWindowPI' fromField='value_changed' toNode='RearWindow' toField='set_translation'/>
 33            < ROUTE  fromNode='RearWindowSensor' fromField='touchTime' toNode='RearWindowClock' toField='startTime'/>
 34       </Scene>
 35  </X3D>
<!--

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

<!-- to top Index for DEF nodes: ClearGlass, RearWindow, RearWindowClock, RearWindowPI, RearWindowSensor, WindowRear
-->
X3D Tooltips element index: Appearance, Coordinate, Group, head, IndexedFaceSet, Material, meta, PositionInterpolator, ROUTE, Scene, Shape, TimeSensor, TouchSensor, Transform, 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.

RearWindowSensor
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
RearWindowClock
TimeSensor
startTime
SFTime
then
 
 
 
RearWindowClock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
RearWindowPI
PositionInterpolator
set_fraction
SFFloat
then
 
 
 
RearWindowPI
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(3)
RearWindow
Transform
set_translation
SFVec3f

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://savage.nps.edu/Savage/GroundVehicles/Truck/RearWindowIndex.html -->
<!-- Version control at
https://gitlab.nps.edu/Savage/Savage/GroundVehicles/Truck/RearWindow.x3d -->

<!-- Color 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. -->