X3D Model Documentation: DolphinSwitcher.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='Immersive' 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='DolphinSwitcher.x3d'/>
  6            <meta name='descriptioncontent='Switch animation among three different dolphin poses in a freeze-frame style.'/>
  7            <meta name='creatorcontent='Chris Lang'/>
  8            <meta name='createdcontent='1 August 2007'/>
  9            <meta name='modifiedcontent='1 April 2020'/>
 10            <meta name='referencecontent='DolphinMorpher.x3d'/>
 11            <meta name='referencecontent='DolphinPose01.x3d'/>
 12            <meta name='referencecontent='DolphinPose02.x3d'/>
 13            <meta name='referencecontent='DolphinPose03.x3d'/>
 14            <meta name='referencecontent='https://savage.nps.edu/Savage/Biologics/Dolphin/DolphinSwitcher.x3d'/>
 15            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter07EventAnimationInterpolation/DolphinSwitcher.x3d'/>
 16            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 17            <meta name='licensecontent='../license.html'/>
 18       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top Index for DEF nodes: CurvedDownwardPose, CurvedUpwardPose, NeutralPose, Sequencer, Switch, Time

Index for Viewpoint node: Viewpoint_1
-->
 19       <Scene>
 20            <WorldInfo title='DolphinSwitcher.x3d'/>
 21            <Background groundColor='1 1 1skyColor='1 1 1'/>
 22            <Viewpoint description='Dolphin switcher, 2m awayposition='0 0 2'/>
 23            <!-- Modify the whichChoice value in this Switch to 0, 1 or 2 to see the various versions of the model. Select whichChoice= -1 to show nothing. -->
 24 
          <!-- ROUTE information for Switch node:  [from Sequencer.value_changed to whichChoice ] -->
          <Switch DEF='SwitchwhichChoice='2'>
 25                 <!-- whichChoice values are 0, 1, 2 for these three children -->
 26                 <Group DEF='CurvedUpwardPose'>
 27                      <Inline   url=' "DolphinPose02.x3d" "https://savage.nps.edu/Savage/Biologics/Dolphin/DolphinPose02.x3d" '/>
 28                 </Group>
 29                 <Group DEF='NeutralPose'>
 30                      <Inline   url=' "DolphinPose01.x3d" "https://savage.nps.edu/Savage/Biologics/Dolphin/DolphinPose01.x3d" '/>
 31                 </Group>
 32                 <Group DEF='CurvedDownwardPose'>
 33                      <Inline   url=' "DolphinPose03.x3d" "https://savage.nps.edu/Savage/Biologics/Dolphin/DolphinPose03.x3d" '/>
 34                 </Group>
 35            </Switch>
 36 
          <!-- ROUTE information for Sequencer node:  [from Time.fraction_changed to set_fraction ] [from value_changed to Switch.whichChoice ] -->
          <IntegerSequencer DEF='Sequencerkey='0 0.25 0.5 0.75 1keyValue='0 1 2 1 0'/>
 37 
          <!-- ROUTE information for Time node:  [from fraction_changed to Sequencer.set_fraction ] -->
          <TimeSensor DEF='TimecycleInterval='4loop='true'/>
 38            < ROUTE  fromNode='Sequencer' fromField='value_changed' toNode='Switch' toField='whichChoice'/>
 39            < ROUTE  fromNode='Time' fromField='fraction_changed' toNode='Sequencer' toField='set_fraction'/>
 40       </Scene>
 41  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top Index for DEF nodes: CurvedDownwardPose, CurvedUpwardPose, NeutralPose, Sequencer, Switch, Time

Index for Viewpoint node: Viewpoint_1
-->
X3D Tooltips element index: Background, Group, head, Inline, IntegerSequencer, meta, ROUTE, Scene, Switch, TimeSensor, Viewpoint, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and field types

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

Time
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(1)
Sequencer
IntegerSequencer
set_fraction
SFFloat
then
 
 
 
Sequencer
IntegerSequencer
value_changed
SFInt32

ROUTE
event to
(2)
Switch
Switch
whichChoice
SFInt32

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/Chapter07EventAnimationInterpolation/DolphinSwitcherIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter07EventAnimationInterpolation/DolphinSwitcher.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. -->