| 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='title' content=' ViewpointSequencerExample.x3d '/> |
| 6 | <meta name='description' content='Animate through a set of Viewpoints and repeat'/> |
| 7 | <meta name='creator' content='Don Brutzman'/> |
| 8 | <meta name='created' content='11 December 2002'/> |
| 9 | <meta name='modified' content='28 November 2019'/> |
| 10 | <meta name='subject' content='Viewpoint Tour'/> |
| 11 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Savage/Tools/Animation/ViewpointSequencerExample.x3d '/> |
| 12 | <meta name='generator' content='X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
| 13 | <meta name='license' content='../../license.html'/> |
| 14 | </head> |
| 15 | <Scene> |
| 16 | <WorldInfo title='ViewpointSequencerExample.x3d'/> |
| 17 | <ExternProtoDeclare name='ViewpointSequencer' appinfo='Sequentially binds each Viewpoint in a set of Viewpoint USE nodes, creating an automatic tour for a scene' url=' "../../../Savage/Tools/Animation/ViewpointSequencerPrototype.x3d#ViewpointSequencer" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Animation/ViewpointSequencerPrototype.x3d#ViewpointSequencer" "../../../Savage/Tools/Animation/ViewpointSequencerPrototype.wrl#ViewpointSequencer" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Animation/ViewpointSequencerPrototype.wrl#ViewpointSequencer" '> |
| 18 |
<field name='viewpoints' type='MFNode' accessType='initializeOnly'
appinfo='Viewpoint USE nodes that are sequentially bound'/> |
| 19 |
<field name='interval' type='SFTime' accessType='inputOutput'
appinfo='number of seconds between viewpoint shifts'/> |
| 20 |
<field name='enabled' type='SFBool' accessType='inputOutput'
appinfo='whether ViewpointSequencer is enabled or not'/> |
| 21 |
<field name='set_enabled' type='SFBool' accessType='inputOnly'
appinfo='whether ViewpointSequencer is enabled or not'/> |
| 22 |
<field name='previous' type='SFBool' accessType='inputOnly'
appinfo='bind previous Viewpoint in list'/> |
| 23 |
<field name='next' type='SFBool' accessType='inputOnly'
appinfo='bind next Viewpoint in list'/> |
| 24 |
<field name='toggleMessage' type='MFString' accessType='inputOutput'
appinfo='Select message to toggle ViewpointSequencer'/> |
| 25 |
<field name='toggleMessageFontSize' type='SFFloat' accessType='initializeOnly'
appinfo='Font size for toggleMessage text'/> |
| 26 |
<field name='toggleMessageColor' type='SFColor' accessType='inputOutput'
appinfo='Color for toggleMessage text'/> |
| 27 |
<field name='traceEnabled' type='SFBool' accessType='inputOutput'
appinfo='enable console output'/> |
| 28 | </ExternProtoDeclare> |
| 29 | <!-- ===============Example============== --> |
| 30 | <Group DEF='Viewpoints'> |
| 31 |
<!-- Viewpoint
View0 is a DEF node that has 1 USE node: USE_1 --> <Viewpoint DEF='View0' description='View zero (+Y axis)' orientation='1 0 0 -1.57' position='0 10 0'/> |
| 32 |
<!-- Viewpoint
View1 is a DEF node that has 1 USE node: USE_1 --> <Viewpoint DEF='View1' description='View one (+Z axis)'/> |
| 33 |
<!-- Viewpoint
View2 is a DEF node that has 1 USE node: USE_1 --> <Viewpoint DEF='View2' description='View two (+X axis)' orientation='0 1 0 1.57' position='10 0 0'/> |
| 34 |
<!-- Viewpoint
View3 is a DEF node that has 1 USE node: USE_1 --> <Viewpoint DEF='View3' description='View three (-Z axis)' orientation='0 1 0 3.14' position='0 0 -10'/> |
| 35 |
<!-- Viewpoint
View4 is a DEF node that has 1 USE node: USE_1 --> <Viewpoint DEF='View4' description='View four (-X axis)' orientation='0 1 0 -1.57' position='-10 0 0'/> |
| 36 | </Group> |
| 37 | <Transform translation='0 -2 0'> |
| 38 | <ProtoInstance name='ViewpointSequencer'> |
| 39 | <fieldValue name='viewpoints'> |
| 40 | <Viewpoint USE='View0'/> |
| 41 | <Viewpoint USE='View1'/> |
| 42 | <Viewpoint USE='View2'/> |
| 43 | <Viewpoint USE='View3'/> |
| 44 | <Viewpoint USE='View4'/> |
| 45 | </fieldValue> |
| 46 | <fieldValue name='interval' value='2'/> |
| 47 | <!-- initially enabled is off, scene provides selectable text to activate --> |
| 48 | <fieldValue name='enabled' value='false'/> |
| 49 | <fieldValue name='traceEnabled' value='true'/> |
| 50 | </ProtoInstance> |
| 51 | </Transform> |
| 52 | <Shape> |
| 53 | <Box DEF='BackdropBox' size='0.2 0.4 0.6'/> |
| 54 | <Appearance> |
| 55 | <Material diffuseColor='1 0.4 0.2'/> |
| 56 | </Appearance> |
| 57 | </Shape> |
| 58 | <Inline DEF='CoordinateAxes' url=' "../../../X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d" "../../Tools/Authoring/CoordinateAxes.x3d" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/CoordinateAxes.x3d" "../../../X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.wrl" "../../Tools/Authoring/CoordinateAxes.wrl" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.wrl" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/CoordinateAxes.wrl" '/> |
| 59 | </Scene> |
| 60 | </X3D> |
Event Graph ROUTE Table with 0 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.
| line 38
ProtoInstance ViewpointSequencer |
No direct ROUTE connection found for events to/from this node. This ProtoInstance contains SFNode/MFNode fieldValue declarations with direct access to other nodes, and thus has potential to produce run-time animation. |
<!--
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)
<ProtoInstance name='ProtoName'>
<field
name='fieldName'/> </ProtoInstance>
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->