X3D Model Documentation: SeeSaw.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='SeeSaw.x3d'/>
  6            <meta name='descriptioncontent='SeeSaw swings when mouse is over it.'/>
  7            <meta name='creatorcontent='Kok Keng Ng'/>
  8            <meta name='createdcontent='22 August 2002'/>
  9            <meta name='modifiedcontent='20 October 2019'/>
 10            <meta name='identifiercontent='https://savage.nps.edu/Savage/Buildings/PlayGround/SeeSaw.x3d'/>
 11            <meta name='generatorcontent='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/>
 12            <meta name='licensecontent='../../license.html'/>
 13       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top Index for DEF nodes: PANELApp, PIVOT, Plank, ROD, SEESAW, SEESAWBody, SEESAWInt, SEESAWSensor, SEESAWTimer, SEESAWTx, SIDEPanel, WOODTexture

Index for Viewpoint node: Viewpoint_1
-->
 14       <Scene>
 15            <WorldInfo title='SeeSaw.x3d'/>
 16 
          <!-- ROUTE information for SEESAWTx node:  [from SEESAWInt.value_changed to set_rotation ] -->
          <Transform DEF='SEESAWTxrotation='0 0 1 -0.22'>
 17                 <Group DEF='SEESAW'>
 18                      <Transform>
 19                           <Shape DEF='Plank'>
 20                                <Box size='4 0.05 0.3'/>
 21                                <Appearance>
 22                                     <Material diffuseColor='0.9 0.3 0.1'/>
 23                                     <ImageTexture DEF='WOODTexture'   url=' "wood.jpg " "https://savage.nps.edu/Savage/Buildings/PlayGround/wood.jpg " '/>
 24                                </Appearance>
 25                           </Shape>
 26                      </Transform>
 27                      <Transform translation='1.6 0.1 -0.1'>
 28 
                         <!-- Shape ROD is a DEF node that has 5 USE nodes: USE_1, USE_2, USE_3, USE_4, USE_5 -->
                         <Shape DEF='ROD'>
 29                                <Cylinder height='0.15radius='0.03'/>
 30                                <Appearance>
 31                                     <Material diffuseColor='0.7 0.7 0.7'/>
 32                                </Appearance>
 33                           </Shape>
 34                      </Transform>
 35                      <Transform translation='-1.6 0.1 0.1'>
 36                           <Shape USE='ROD'/>
 37                      </Transform>
 38                      <Transform translation='-1.6 0.1 -0.1'>
 39                           <Shape USE='ROD'/>
 40                      </Transform>
 41                      <Transform translation='1.6 0.1 0.1'>
 42                           <Shape USE='ROD'/>
 43                      </Transform>
 44                      <Transform rotation='1 0 0 1.575scale='1.2 2.5 1translation='1.6 0.18 0'>
 45                           <Shape USE='ROD'/>
 46                      </Transform>
 47                      <Transform rotation='1 0 0 1.575scale='1.2 2.5 1translation='-1.6 0.18 0'>
 48                           <Shape USE='ROD'/>
 49                      </Transform>
 50 
                    <!-- ROUTE information for SEESAWSensor node:  [from touchTime to SEESAWTimer.set_startTime ] -->
                    <TouchSensor DEF='SEESAWSensor'/>
 51 
                    <!-- ROUTE information for SEESAWTimer node:  [from SEESAWSensor.touchTime to set_startTime ] [from fraction_changed to SEESAWInt.set_fraction ] -->
                    <TimeSensor DEF='SEESAWTimercycleInterval='10'/>
 52 
                    <!-- ROUTE information for SEESAWInt node:  [from SEESAWTimer.fraction_changed to set_fraction ] [from value_changed to SEESAWTx.set_rotation ] -->
                    <OrientationInterpolator DEF='SEESAWIntkey='0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0keyValue='0 0 1 -0.22 0 0 1 0.22 0 0 1 -0.22 0 0 1 0.22 0 0 1 -0.22 0 0 1 0.22 0 0 1 -0.22 0 0 1 0.22 0 0 1 -0.22 0 0 1 0.22 0 0 1 -0.22'/>
 53                 </Group>
 54            </Transform>
 55            <Transform>
 56                 <Group DEF='SEESAWBody'>
 57                      <Transform translation='0 0 0.2'>
 58 
                         <!-- Group SIDEPanel is a DEF node that has 1 USE node: USE_1 -->
                         <Group DEF='SIDEPanel'>
 59                                <Transform rotation='1 0 0 1.575'>
 60                                     <Shape>
 61                                          <Cylinder height='0.05radius='0.2'/>
 62 
                                        <!-- Appearance PANELApp is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
                                        <Appearance DEF='PANELApp'>
 63                                               <Material diffuseColor='0.1 0.1 0.9'/>
 64                                          </Appearance>
 65                                     </Shape>
 66                                </Transform>
 67                                <Transform translation='0 -0.2 0'>
 68                                     <Shape>
 69                                          <Box size='0.4 0.6 0.05'/>
 70                                          <Appearance USE='PANELApp'/>
 71                                     </Shape>
 72                                </Transform>
 73                                <Transform translation='1.6 0 0.1'>
 74                                     <Shape/>
 75                                </Transform>
 76                           </Group>
 77                      </Transform>
 78                      <Transform translation='0 0 -0.2'>
 79                           <Group USE='SIDEPanel'/>
 80                      </Transform>
 81                      <Transform DEF='PIVOTrotation='1 0 0 1.575'>
 82                           <Shape>
 83                                <Cylinder height='0.5radius='0.024'/>
 84                                <Appearance USE='PANELApp'/>
 85                           </Shape>
 86                      </Transform>
 87                 </Group>
 88                 < ROUTE  fromNode='SEESAWSensor' fromField='touchTime' toNode='SEESAWTimer' toField='set_startTime'/>
 89                 < ROUTE  fromNode='SEESAWTimer' fromField='fraction_changed' toNode='SEESAWInt' toField='set_fraction'/>
 90                 < ROUTE  fromNode='SEESAWInt' fromField='value_changed' toNode='SEESAWTx' toField='set_rotation'/>
 91            </Transform>
 92            <Viewpoint description='SeeSaworientation='1 0 0 -0.87575position='0 3 3'/>
 93       </Scene>
 94  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top Index for DEF nodes: PANELApp, PIVOT, Plank, ROD, SEESAW, SEESAWBody, SEESAWInt, SEESAWSensor, SEESAWTimer, SEESAWTx, SIDEPanel, WOODTexture

Index for Viewpoint node: Viewpoint_1
-->
X3D Tooltips element index: Appearance, Box, Cylinder, Group, head, ImageTexture, Material, meta, OrientationInterpolator, ROUTE, Scene, Shape, TimeSensor, TouchSensor, Transform, Viewpoint, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and 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.

SEESAWSensor
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
SEESAWTimer
TimeSensor
set_startTime
SFTime
then
 
 
 
SEESAWTimer
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
SEESAWInt
OrientationInterpolator
set_fraction
SFFloat
then
 
 
 
SEESAWInt
OrientationInterpolator
value_changed
SFRotation

ROUTE
event to
(3)
SEESAWTx
Transform
set_rotation
SFRotation


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/Buildings/PlayGround/SeeSawIndex.html -->
<!-- Version control at
https://gitlab.nps.edu/Savage/Savage/Buildings/PlayGround/SeeSaw.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)
-->

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