1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 4.0//EN" "https://www.web3d.org/specifications/x3d-4.0.dtd">
|
3 | <X3D profile='Immersive' version='4.0' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-4.0.xsd'> |
4 | <head> |
5 | <meta name='title' content='VisibleShapesTest.x3d'/> |
6 | <meta name='description' content='Test scene with BooleanSequencer animation of visible field on several X3DBoundedObject nodes, triggering a new feature in X3D4.'/> |
7 | <meta name='created' content='18 January 2020'/> |
8 | <meta name='modified' content='1 June 2024'/> |
9 | <meta name='creator' content='Don Brutzman'/> |
10 | <meta name='specificationSection' content='X3D 4.0 Architecture, ISO/IEC 19775-1:2023, 10 Grouping component, 10.3.1 X3DBoundedObject'/> |
11 | <meta name='specificationUrl' content='https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/grouping.html#X3DBoundedObject'/> |
12 | <meta name='specificationSection' content='X3D 4.0 Architecture, ISO/IEC 19775-1:2023, 12 Shape component, 12.3.5 X3DShapeNode'/> |
13 | <meta name='specificationUrl' content='https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/shape.html#X3DShapeNode'/> |
14 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/VisibleShapesTest.x3d'/> |
15 | <meta name='generator' content='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/> |
16 | <meta name='license' content='../license.html'/> |
17 | </head> |
18 | <Scene> |
19 | <WorldInfo title='VisibleShapesTest.x3d'/> |
20 | <Viewpoint DEF='EntryView' description='Visible Shapes Test' position='0 0 12'/> |
21 |
<!-- ROUTE information for BoxGroupingNode node:
[from Pulsar1.value_changed to visible
]
-->
<Transform DEF='BoxGroupingNode' translation='-3 1.5 0'> |
22 | <Shape DEF='BoxShape'> |
23 | <Box/> |
24 | <Appearance> |
25 | |
26 | </Appearance> |
27 | </Shape> |
28 | <Transform translation='0 -2 0'> |
29 | <Shape DEF='BoxVisibleText'> |
30 | <Text string='"Box visible"'> |
31 | |
32 | </Text> |
33 | <Appearance> |
34 | <Material USE='Red'/> |
35 | </Appearance> |
36 | </Shape> |
37 | </Transform> |
38 |
<!-- ROUTE information for Pulsar1 node:
[from SequencerClock.fraction_changed to set_fraction
]
[from value_changed to BoxGroupingNode.visible
]
-->
<BooleanSequencer DEF='Pulsar1' key='0 0.25 0.5 0.75 1' keyValue='true false true true true'/> |
39 | < ROUTE fromNode='Pulsar1' fromField='value_changed' toNode='BoxGroupingNode' toField='visible'/> |
40 | </Transform> |
41 | <Transform DEF='SphereGroupingNode' translation='0 1.5 0'> |
42 |
<!-- ROUTE information for SphereShape node:
[from Pulsar2.value_changed to visible
]
-->
<Shape DEF='SphereShape'> |
43 | <Sphere/> |
44 | <Appearance> |
45 | |
46 | </Appearance> |
47 | </Shape> |
48 | <Transform translation='0 -3 0'> |
49 |
<!-- ROUTE information for SphereVisibleText node:
[from Pulsar2.value_changed to visible
]
-->
<Shape DEF='SphereVisibleText'> |
50 | <Text string='"Sphere visible"'> |
51 | <FontStyle USE='TextStyle'/> |
52 | </Text> |
53 | <Appearance> |
54 | <Material USE='Green'/> |
55 | </Appearance> |
56 | </Shape> |
57 | </Transform> |
58 |
<!-- ROUTE information for Pulsar2 node:
[from SequencerClock.fraction_changed to set_fraction
]
[from value_changed to SphereShape.visible
]
[from value_changed to SphereVisibleText.visible
]
-->
<BooleanSequencer DEF='Pulsar2' key='0 0.25 0.5 0.75 1' keyValue='true true false true true'/> |
59 | < ROUTE fromNode='Pulsar2' fromField='value_changed' toNode='SphereShape' toField='visible'/> |
60 | < ROUTE fromNode='Pulsar2' fromField='value_changed' toNode='SphereVisibleText' toField='visible'/> |
61 | </Transform> |
62 | <Transform DEF='CylinderGroupingNode' translation='3 1.5 0'> |
63 |
<!-- ROUTE information for CylinderShape node:
[from Pulsar3.value_changed to visible
]
-->
<Shape DEF='CylinderShape'> |
64 | <Cylinder/> |
65 | <Appearance> |
66 | |
67 | </Appearance> |
68 | </Shape> |
69 | <Transform translation='0 -4 0'> |
70 |
<!-- ROUTE information for CylinderVisibleText node:
[from Pulsar3.value_changed to visible
]
-->
<Shape DEF='CylinderVisibleText'> |
71 | <Text string='"Cylinder visible"'> |
72 | <FontStyle USE='TextStyle'/> |
73 | </Text> |
74 | <Appearance> |
75 | <Material USE='Blue'/> |
76 | </Appearance> |
77 | </Shape> |
78 | </Transform> |
79 |
<!-- ROUTE information for Pulsar3 node:
[from SequencerClock.fraction_changed to set_fraction
]
[from value_changed to CylinderShape.visible
]
[from value_changed to CylinderVisibleText.visible
]
-->
<BooleanSequencer DEF='Pulsar3' key='0 0.25 0.5 0.75 1' keyValue='true true true false true'/> |
80 | < ROUTE fromNode='Pulsar3' fromField='value_changed' toNode='CylinderShape' toField='visible'/> |
81 | < ROUTE fromNode='Pulsar3' fromField='value_changed' toNode='CylinderVisibleText' toField='visible'/> |
82 | </Transform> |
83 |
<!-- ROUTE information for SequencerClock node:
[from fraction_changed to Pulsar1.set_fraction
]
[from fraction_changed to Pulsar2.set_fraction
]
[from fraction_changed to Pulsar3.set_fraction
]
-->
<TimeSensor DEF='SequencerClock' cycleInterval='8' loop='true'/> |
84 | < ROUTE fromNode='SequencerClock' fromField='fraction_changed' toNode='Pulsar1' toField='set_fraction'/> |
85 | < ROUTE fromNode='SequencerClock' fromField='fraction_changed' toNode='Pulsar2' toField='set_fraction'/> |
86 | < ROUTE fromNode='SequencerClock' fromField='fraction_changed' toNode='Pulsar3' toField='set_fraction'/> |
87 | </Scene> |
88 | </X3D> |
Event Graph ROUTE Table with 8 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.
SequencerClock
TimeSensor fraction_changed SFFloat |
Pulsar1
BooleanSequencer set_fraction SFFloat |
then
|
Pulsar1
BooleanSequencer value_changed SFBool |
BoxGroupingNode
Transform visible SFBool |
||
SequencerClock
TimeSensor fraction_changed SFFloat |
Pulsar2
BooleanSequencer set_fraction SFFloat |
then
|
Pulsar2
BooleanSequencer value_changed SFBool |
SphereShape
Shape visible SFBool |
||
then
|
Pulsar2
BooleanSequencer value_changed SFBool |
SphereVisibleText
Shape visible SFBool |
||||
SequencerClock
TimeSensor fraction_changed SFFloat |
Pulsar3
BooleanSequencer set_fraction SFFloat |
then
|
Pulsar3
BooleanSequencer value_changed SFBool |
CylinderShape
Shape visible SFBool |
||
then
|
Pulsar3
BooleanSequencer value_changed SFBool |
CylinderVisibleText
Shape visible SFBool |
<!--
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)
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->