| 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='title' content=' DolphinSwitcher.x3d '/> |
| 6 | <meta name='description' content='Switch animation among 3 different dolphin poses'/> |
| 7 | <meta name='creator' content='Chris Lang'/> |
| 8 | <meta name='created' content='1 August 2007'/> |
| 9 | <meta name='modified' content='20 October 2019'/> |
| 10 | <meta name='reference' content=' DolphinMorpher.x3d '/> |
| 11 | <meta name='reference' content=' DolphinPose01.x3d '/> |
| 12 | <meta name='reference' content=' DolphinPose02.x3d '/> |
| 13 | <meta name='reference' content=' DolphinPose03.x3d '/> |
| 14 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Savage/Biologics/Dolphin/DolphinSwitcher.x3d '/> |
| 15 | <meta name='reference' content=' https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter07EventAnimationInterpolation/DolphinSwitcher.x3d '/> |
| 16 | <meta name='generator' content='X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
| 17 | <meta name='license' content='../license.html'/> |
| 18 | </head> |
| 19 | <Scene> |
| 20 | <WorldInfo title='DolphinSwitcher.x3d'/> |
| 21 | <Background groundColor='1 1 1' skyColor='1 1 1'/> |
| 22 | <Viewpoint description='Dolphin switcher, 2m away' position='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='Switch' whichChoice='2'> |
| 25 | <!-- whichChoice values are 0, 1, 2 for these three children --> |
| 26 | <Group DEF='CurvedUpwardPose'> |
| 27 | <Inline url=' "DolphinPose02.x3d" "https://www.web3d.org/x3d/content/examples/Savage/Biologics/Dolphin/DolphinPose02.x3d" '/> |
| 28 | </Group> |
| 29 | <Group DEF='NeutralPose'> |
| 30 | <Inline url=' "DolphinPose01.x3d" "https://www.web3d.org/x3d/content/examples/Savage/Biologics/Dolphin/DolphinPose01.x3d" '/> |
| 31 | </Group> |
| 32 | <Group DEF='CurvedDownwardPose'> |
| 33 | <Inline url=' "DolphinPose03.x3d" "https://www.web3d.org/x3d/content/examples/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='Sequencer' key='0 0.25 0.5 0.75 1' keyValue='0 1 2 1 0'/> |
| 37 |
<!-- ROUTE information for Time node:
[from fraction_changed to Sequencer.set_fraction
]
-->
<TimeSensor DEF='Time' cycleInterval='4' loop='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 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 |
Sequencer
IntegerSequencer set_fraction SFFloat |
then
|
Sequencer
IntegerSequencer value_changed SFInt32 |
Switch
Switch whichChoice SFInt32 |
<!--
Color-coding 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.
-->