X3D Model Documentation: StripedSurfPerchPlaque.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2  <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
  3  <X3D profile='Interactive' version='3.3 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.3.xsd'>
  4       <head>
  5            <meta name='titlecontent='StripedSurfPerchPlaque.x3d'/>
  6            <meta name='creatorcontent='Michael Collins'/>
  7            <meta name='createdcontent='18 February 2001'/>
  8            <meta name='modifiedcontent='20 October 2019'/>
  9            <meta name=' warning content=' under development '/>
 10            <meta name='descriptioncontent='One fish plaque with lithograph on one side and actual picture on the back. Click on plaque to go to picture or click on buttons to change picture.'/>
 11            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/StripedSurfPerchPlaque.x3d'/>
 12            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 13            <meta name='Imagecontent='StripedSurfPerchPatch.jpg'/>
 14            <meta name='Imagecontent='RainbowSurfPerch002.jpg'/>
 15            <meta name='licensecontent='../license.html'/>
 16       </head>
<!--

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

<!-- to top Index for DEF nodes: BASE_TRANSFORM, BaseTouchSensor, BLUEROCKFISH_TRANSFORM, BLUEROCKFISHCLOCK, BlueRockfishPathInterpolator, BlueRockfishTouchSensor, BUTTON_TRANSFORM, BUTTON_TRANSFORM2, FrontTouchSensor, FRONTTOUCHSENSORCLOCK, PictureTouchSensor, PlaqueToPictureInterpolator, stripedsurfperch

Index for Viewpoint node: stripedsurfperch
-->
 17       <Scene>
 18            <WorldInfo title='StripedSurfPerchPlaque.x3d'/>
 19            <Viewpoint DEF='stripedsurfperchdescription='Striped Surf Perchposition='0 0 4'/>
 20            <!-- Fish Plaques -->
 21            <Group>
 22 
               <!-- ROUTE information for BlueRockfishTouchSensor node:  [from touchTime to BLUEROCKFISHCLOCK.set_startTime ] -->
               <TouchSensor DEF='BlueRockfishTouchSensordescription='touch to rotate'/>
 23 
               <!-- ROUTE information for BLUEROCKFISHCLOCK node:  [from BlueRockfishTouchSensor.touchTime to set_startTime ] [from PictureTouchSensor.touchTime to set_startTime ] [from fraction_changed to BlueRockfishPathInterpolator.set_fraction ] -->
               <TimeSensor DEF='BLUEROCKFISHCLOCKcycleInterval='2'/>
 24 
               <!-- ROUTE information for BlueRockfishPathInterpolator node:  [from BLUEROCKFISHCLOCK.fraction_changed to set_fraction ] [from value_changed to BLUEROCKFISH_TRANSFORM.set_rotation ] -->
               <OrientationInterpolator DEF='BlueRockfishPathInterpolatorkey='0.0 0.50 1.0keyValue='0.0 1.0 0.0 0.0 0.0 1.0 0.0 1.57 0.0 1.0 0.0 3.14'/>
 25 
               <!-- ROUTE information for BLUEROCKFISH_TRANSFORM node:  [from BlueRockfishPathInterpolator.value_changed to set_rotation ] [from PlaqueToPictureInterpolator.value_changed to set_rotation ] -->
               <Transform DEF='BLUEROCKFISH_TRANSFORM'>
 26                      <Shape>
 27                           <Box size='4 2 .1'/>
 28                           <Appearance>
 29                                <ImageTexture   url=' "StripedSurfPerchPatch.jpg " "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/StripedSurfPerchPatch.jpg " '/>
 30                           </Appearance>
 31                      </Shape>
 32                      <Transform translation='0 0 -.1'>
 33                           <Shape>
 34                                <Box size='4 2 .2'/>
 35                                <Appearance>
 36                                     <ImageTexture   url=' "RainbowSurfPerch002.jpg " "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/RainbowSurfPerch002.jpg " '/>
 37                                </Appearance>
 38                           </Shape>
 39                      </Transform>
 40                 </Transform>
 41                 <Group>
 42                      <Transform DEF='BUTTON_TRANSFORMtranslation='1 2 0'>
 43                           <Shape>
 44                                <Sphere radius='.5'/>
 45                                <Appearance>
 46                                     <Material diffuseColor='0 1 0'/>
 47                                </Appearance>
 48                           </Shape>
 49                      </Transform>
 50 
                    <!-- ROUTE information for FrontTouchSensor node:  [from touchTime to FRONTTOUCHSENSORCLOCK.set_startTime ] -->
                    <TouchSensor DEF='FrontTouchSensordescription='front TouchSensor'/>
 51 
                    <!-- ROUTE information for FRONTTOUCHSENSORCLOCK node:  [from FrontTouchSensor.touchTime to set_startTime ] [from fraction_changed to PlaqueToPictureInterpolator.set_fraction ] -->
                    <TimeSensor DEF='FRONTTOUCHSENSORCLOCKcycleInterval='2'/>
 52 
                    <!-- ROUTE information for PlaqueToPictureInterpolator node:  [from FRONTTOUCHSENSORCLOCK.fraction_changed to set_fraction ] [from value_changed to BLUEROCKFISH_TRANSFORM.set_rotation ] -->
                    <OrientationInterpolator DEF='PlaqueToPictureInterpolatorkey='0.0 0.50 1.0keyValue='0.0 1.0 0.0 3.14 0.0 1.0 0.0 1.57 0.0 1.0 0.0 0.00'/>
 53                 </Group>
 54                 <Group>
 55                      <Transform DEF='BUTTON_TRANSFORM2translation='-1 2 0'>
 56                           <Shape>
 57                                <Sphere radius='.5'/>
 58                                <Appearance>
 59                                     <Material diffuseColor='1 0 0'/>
 60                                </Appearance>
 61                           </Shape>
 62                      </Transform>
 63 
                    <!-- ROUTE information for PictureTouchSensor node:  [from touchTime to BLUEROCKFISHCLOCK.set_startTime ] -->
                    <TouchSensor DEF='PictureTouchSensordescription='picture TouchSensor'/>
 64                 </Group>
 65                 <Group>
 66                      <Transform DEF='BASE_TRANSFORMtranslation='0 0 -.3'>
 67                           <Shape>
 68                                <Box size='8 6 .3'/>
 69                                <Appearance>
 70                                     <Material diffuseColor='.3 .3 .6'/>
 71                                </Appearance>
 72                           </Shape>
 73                      </Transform>
 74                      <TouchSensor DEF='BaseTouchSensordescription='touch to rotate'/>
 75                      <Group>
 76                           <Transform translation='0 -2.6 0'>
 77                                <Shape>
 78                                     <Box size='8 1 1'/>
 79                                     <Appearance>
 80                                          <Material diffuseColor='0.8 0.8 0.2'/>
 81                                     </Appearance>
 82                                </Shape>
 83                           </Transform>
 84                      </Group>
 85                      <Group>
 86                           <Transform translation='0 2.6 0'>
 87                                <Shape>
 88                                     <Box size='8 1 1'/>
 89                                     <Appearance>
 90                                          <Material diffuseColor='0.8 0.8 0.2'/>
 91                                     </Appearance>
 92                                </Shape>
 93                           </Transform>
 94                      </Group>
 95                      <Group>
 96                           <Transform rotation='0 0 1 1.58translation='3.6 0 0'>
 97                                <Shape>
 98                                     <Box size='6.2 1 1'/>
 99                                     <Appearance>
100                                          <Material diffuseColor='0.8 0.8 0.2'/>
101                                     </Appearance>
102                                </Shape>
103                           </Transform>
104                      </Group>
105                      <Group>
106                           <Transform rotation='0 0 1 1.58translation='-3.6 0 0'>
107                                <Shape>
108                                     <Box size='6.2 1 1'/>
109                                     <Appearance>
110                                          <Material diffuseColor='0.8 0.8 0.2'/>
111                                     </Appearance>
112                                </Shape>
113                           </Transform>
114                      </Group>
115                 </Group>
116            </Group>
117            < ROUTE  fromNode='BlueRockfishTouchSensor' fromField='touchTime' toNode='BLUEROCKFISHCLOCK' toField='set_startTime'/>
118            < ROUTE  fromNode='BLUEROCKFISHCLOCK' fromField='fraction_changed' toNode='BlueRockfishPathInterpolator' toField='set_fraction'/>
119            < ROUTE  fromNode='BlueRockfishPathInterpolator' fromField='value_changed' toNode='BLUEROCKFISH_TRANSFORM' toField='set_rotation'/>
120            < ROUTE  fromNode='FrontTouchSensor' fromField='touchTime' toNode='FRONTTOUCHSENSORCLOCK' toField='set_startTime'/>
121            < ROUTE  fromNode='FRONTTOUCHSENSORCLOCK' fromField='fraction_changed' toNode='PlaqueToPictureInterpolator' toField='set_fraction'/>
122            < ROUTE  fromNode='PlaqueToPictureInterpolator' fromField='value_changed' toNode='BLUEROCKFISH_TRANSFORM' toField='set_rotation'/>
123            <!-- Picture touch sensor only has to tie into the BLUEROCKFISHCLOCK so that it will turn picture. -->
124            < ROUTE  fromNode='PictureTouchSensor' fromField='touchTime' toNode='BLUEROCKFISHCLOCK' toField='set_startTime'/>
125       </Scene>
126  </X3D>
<!--

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

<!-- to top Index for DEF nodes: BASE_TRANSFORM, BaseTouchSensor, BLUEROCKFISH_TRANSFORM, BLUEROCKFISHCLOCK, BlueRockfishPathInterpolator, BlueRockfishTouchSensor, BUTTON_TRANSFORM, BUTTON_TRANSFORM2, FrontTouchSensor, FRONTTOUCHSENSORCLOCK, PictureTouchSensor, PlaqueToPictureInterpolator, stripedsurfperch

Index for Viewpoint node: stripedsurfperch
-->
X3D Tooltips element index: Appearance, Box, Group, head, ImageTexture, Material, meta, OrientationInterpolator, ROUTE, Scene, Shape, Sphere, TimeSensor, TouchSensor, Transform, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types

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

BaseTouchSensor
TouchSensor
description='touch to rotate' 
User-interaction hint for this node.(TouchSensor description is providing a tooltip)  

BlueRockfishTouchSensor
TouchSensor
touchTime
SFTime

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

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

ROUTE
event to
(3)
BLUEROCKFISH_TRANSFORM
Transform
set_rotation
SFRotation

FrontTouchSensor
TouchSensor
touchTime
SFTime

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

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

ROUTE
event to
(3)
BLUEROCKFISH_TRANSFORM
Transform
set_rotation
SFRotation

PictureTouchSensor
TouchSensor
touchTime
SFTime

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

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

ROUTE
event to
(3)
BLUEROCKFISH_TRANSFORM
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://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/StripedSurfPerchPlaqueIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/StripedSurfPerchPlaque.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. -->