X3D Model Documentation: VisibleShapesTest.x3d

  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='titlecontent='VisibleShapesTest.x3d'/>
  6            <meta name='descriptioncontent='Test scene with BooleanSequencer animation of visible field on several X3DBoundedObject nodes, triggering a new feature in X3D4.'/>
  7            <meta name='createdcontent='18 January 2020'/>
  8            <meta name='modifiedcontent='1 June 2024'/>
  9            <meta name='creatorcontent='Don Brutzman'/>
 10            <meta name='specificationSectioncontent='X3D 4.0 Architecture, ISO/IEC 19775-1:2023, 10 Grouping component, 10.3.1 X3DBoundedObject'/>
 11            <meta name='specificationUrlcontent='https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/grouping.html#X3DBoundedObject'/>
 12            <meta name='specificationSectioncontent='X3D 4.0 Architecture, ISO/IEC 19775-1:2023, 12 Shape component, 12.3.5 X3DShapeNode'/>
 13            <meta name='specificationUrlcontent='https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/shape.html#X3DShapeNode'/>
 14            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/VisibleShapesTest.x3d'/>
 15            <meta name='generatorcontent='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/>
 16            <meta name='licensecontent='../license.html'/>
 17       </head>
<!--

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

<!-- to top Index for DEF nodes: Blue, BoxGroupingNode, BoxShape, BoxVisibleText, CylinderGroupingNode, CylinderShape, CylinderVisibleText, EntryView, Green, Pulsar1, Pulsar2, Pulsar3, Red, SequencerClock, SphereGroupingNode, SphereShape, SphereVisibleText, TextStyle

Index for Viewpoint node: EntryView
-->
 18       <Scene>
 19            <WorldInfo title='VisibleShapesTest.x3d'/>
 20            <Viewpoint DEF='EntryViewdescription='Visible Shapes Testposition='0 0 12'/>
 21 
          <!-- ROUTE information for BoxGroupingNode node:  [from Pulsar1.value_changed to visible ] -->
          <Transform DEF='BoxGroupingNodetranslation='-3 1.5 0'>
 22                 <Shape DEF='BoxShape'>
 23                      <Box/>
 24                      <Appearance>
 25 
                         <!-- Material Red is a DEF node that has 1 USE node: USE_1 -->
                         <Material DEF='ReddiffuseColor='1 0 0'/>
 26                      </Appearance>
 27                 </Shape>
 28                 <Transform translation='0 -2 0'>
 29                      <Shape DEF='BoxVisibleText'>
 30                           <Text string='"Box visible"'>
 31 
                              <!-- FontStyle TextStyle is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
                              <FontStyle DEF='TextStylefamily='"SANS"justify='"MIDDLE" "MIDDLE"style='BOLD'/>
 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='Pulsar1key='0 0.25 0.5 0.75 1keyValue='true false true true true'/>
 39                 < ROUTE  fromNode='Pulsar1' fromField='value_changed' toNode='BoxGroupingNode' toField='visible'/>
 40            </Transform>
 41            <Transform DEF='SphereGroupingNodetranslation='0 1.5 0'>
 42 
               <!-- ROUTE information for SphereShape node:  [from Pulsar2.value_changed to visible ] -->
               <Shape DEF='SphereShape'>
 43                      <Sphere/>
 44                      <Appearance>
 45 
                         <!-- Material Green is a DEF node that has 1 USE node: USE_1 -->
                         <Material DEF='GreendiffuseColor='0 1 0'/>
 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='Pulsar2key='0 0.25 0.5 0.75 1keyValue='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='CylinderGroupingNodetranslation='3 1.5 0'>
 63 
               <!-- ROUTE information for CylinderShape node:  [from Pulsar3.value_changed to visible ] -->
               <Shape DEF='CylinderShape'>
 64                      <Cylinder/>
 65                      <Appearance>
 66 
                         <!-- Material Blue is a DEF node that has 1 USE node: USE_1 -->
                         <Material DEF='BluediffuseColor='0.4 0.4 1'/>
 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='Pulsar3key='0 0.25 0.5 0.75 1keyValue='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='SequencerClockcycleInterval='8loop='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 shows event connections.
-->

<!-- to top Index for DEF nodes: Blue, BoxGroupingNode, BoxShape, BoxVisibleText, CylinderGroupingNode, CylinderShape, CylinderVisibleText, EntryView, Green, Pulsar1, Pulsar2, Pulsar3, Red, SequencerClock, SphereGroupingNode, SphereShape, SphereVisibleText, TextStyle

Index for Viewpoint node: EntryView
-->
X3D Tooltips element index: Appearance, BooleanSequencer, Box, Cylinder, FontStyle, head, Material, meta, ROUTE, Scene, Shape, Sphere, Text, TimeSensor, Transform, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types

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

ROUTE
event to
(1)
Pulsar1
BooleanSequencer
set_fraction
SFFloat
then
 
 
 
Pulsar1
BooleanSequencer
value_changed
SFBool

ROUTE
event to
(2)
BoxGroupingNode
Transform
visible
SFBool
SequencerClock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(1)
Pulsar2
BooleanSequencer
set_fraction
SFFloat
then
 
 
 
Pulsar2
BooleanSequencer
value_changed
SFBool

ROUTE
event to
(2)
SphereShape
Shape
visible
SFBool
  then
 
 
 
Pulsar2
BooleanSequencer
value_changed
SFBool

ROUTE
event to
(2)
SphereVisibleText
Shape
visible
SFBool
SequencerClock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(1)
Pulsar3
BooleanSequencer
set_fraction
SFFloat
then
 
 
 
Pulsar3
BooleanSequencer
value_changed
SFBool

ROUTE
event to
(2)
CylinderShape
Shape
visible
SFBool
  then
 
 
 
Pulsar3
BooleanSequencer
value_changed
SFBool

ROUTE
event to
(2)
CylinderVisibleText
Shape
visible
SFBool
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/X3dForAdvancedModeling/Animation/VisibleShapesTestIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/VisibleShapesTest.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. -->