X3D Model Documentation: test_center.x3d

  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='titlecontent='test_center.x3d'/>
  6            <meta name='referencecontent='http://www.nist.gov/vrml.html'/>
  7            <meta name='referencecontent='http://www.itl.nist.gov/div897/ctg/vrml/vrml.html'/>
  8            <meta name='creatorcontent='http://www.itl.nist.gov/div897/ctg/vrml/members.html'/>
  9            <meta name='disclaimercontent='This file was provided by the National Institute of Standards and Technology, and is part of the X3D Conformance Test Suite, available at http://www.nist.gov/vrml.html The information contained within this file is provided for use in establishing conformance to the ISO VRML97 Specification. Conformance to this test does not imply recommendation or endorsement by the National Institute of Standards and Technology (NIST). This software can be redistributed and/or modified freely provided that any derivative works bear some notice that they are derived from it, and any modified versions bear some notice that they have been modified. '/>
 10            <meta name='referencecontent='Interactive Conformance Testing for VRML, Mary Brady and Lynn Rosenthal, NIST, created 8 September 2010 and updated 25 August 2016, https://www.nist.gov/itl/ssd/information-systems-group/interactive-conformance-testing-vrml'/>
 11            <meta name='infocontent='Correct definition and compliance of this conformance scene is maintained by the X3D Working Group, https://www.web3d.org/working-groups/x3d'/>
 12            <meta name='translatorcontent='Michael Kass NIST, Don Brutzman NPS'/>
 13            <meta name='translatedcontent='21 January 2001'/>
 14            <meta name='modifiedcontent='28 August 2023'/>
 15            <meta name='descriptioncontent='Test browser to set different values for the "center" field. The test defines two LOD node with the level field via the Inline node). The first LOD defines the leftmost figure and it sets the center to location 0 0 0. The second LOD defines the rightmost figure and it defines the center at location 0 0 40. The left most LOD in the level field. The rightmost LOD should only display the figures various options at the bottom of the figures. The test should generate a figure resembling a temple with white columns, a fly of stairs up front generated when the highest level of detail is selected), however the LOD to the right will display this figure for the TWO highest level of details'/>
 16            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/ConformanceNist/SpecialGroups/LOD/test_center.x3d'/>
 17            <meta name='generatorcontent='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/>
 18            <meta name='generatorcontent='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/>
 19            <meta name='licensecontent='../../license.html'/>
 20       </head>
<!--

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

<!-- to top Index for DEF nodes: big-trans1, first-position, fourth-position, ref1, ref2, ref3, ref4, second-position, text1, text2, text3, text4, the-appearance, the-style, the-touch1, the-touch2, the-touch3, the-touch4, the-view, third-position, time1, time2, time3, time4

Index for Viewpoint node: the-view
-->
 21       <Scene>
 22            <WorldInfo title='test_center.x3d'/>
 23            <NavigationInfo type='"EXAMINE" "WALK" "FLY" "ANY"'/>
 24            <Group>
 25 
               <!-- ROUTE information for the-view node:  [from first-position.value_changed to position ] [from second-position.value_changed to position ] [from third-position.value_changed to position ] [from fourth-position.value_changed to position ] -->
               <Viewpoint DEF='the-viewdescription='avatar position of userposition='0 0 64'/>
 26            </Group>
 27 
          <!-- ROUTE information for big-trans1 node:  [from text1.value_changed to translation ] [from text2.value_changed to translation ] [from text3.value_changed to translation ] [from text4.value_changed to translation ] -->
          <Transform DEF='big-trans1translation='0 0 54'>
 28                 <Transform scale='0.02 0.02 0.02translation='-5.4 -2 0'>
 29                      <Shape>
 30                           <Appearance>
 31                                <Material ambientIntensity='1diffuseColor='0 1 0emissiveColor='0 1 0'/>
 32                           </Appearance>
 33                           <Text string='"CLICK DESIRED LEVEL OF DETAIL BELOW"'>
 34 
                              <!-- FontStyle the-style is a DEF node that has 4 USE nodes: USE_1, USE_2, USE_3, USE_4 -->
                              <FontStyle DEF='the-stylesize='29style='BOLD'/>
 35                           </Text>
 36                      </Shape>
 37                 </Transform>
 38                 <Transform scale='0.02 0.02 0.02translation='-4.8 -2.7 0'>
 39                      <Shape>
 40 
                         <!-- Appearance the-appearance is a DEF node that has 3 USE nodes: USE_1, USE_2, USE_3 -->
                         <Appearance DEF='the-appearance'>
 41                                <Material ambientIntensity='1diffuseColor='0 0 1emissiveColor='0 0 1'/>
 42                           </Appearance>
 43                           <Text string='"LOWEST (0 0 64)"'>
 44                                <FontStyle USE='the-style'/>
 45                           </Text>
 46                      </Shape>
 47 
                    <!-- ROUTE information for the-touch1 node:  [from touchTime to time1.startTime ] -->
                    <TouchSensor DEF='the-touch1description='touch to activate 1'/>
 48                 </Transform>
 49                 <Transform scale='0.02 0.02 0.02translation='-4.8 -3.4 0'>
 50                      <Shape>
 51                           <Appearance USE='the-appearance'/>
 52                           <Text string='"MEDIUM LOW (0 0 48)"'>
 53                                <FontStyle USE='the-style'/>
 54                           </Text>
 55                      </Shape>
 56 
                    <!-- ROUTE information for the-touch2 node:  [from touchTime to time2.startTime ] -->
                    <TouchSensor DEF='the-touch2description='touch to activate 2'/>
 57                 </Transform>
 58                 <Transform scale='0.02 0.02 0.02translation='1 -2.7 0'>
 59                      <Shape>
 60                           <Appearance USE='the-appearance'/>
 61                           <Text string='"MEDIUM (0 0 32)"'>
 62                                <FontStyle USE='the-style'/>
 63                           </Text>
 64                      </Shape>
 65 
                    <!-- ROUTE information for the-touch3 node:  [from touchTime to time3.startTime ] -->
                    <TouchSensor DEF='the-touch3description='touch to activate 3'/>
 66                 </Transform>
 67                 <Transform scale='0.02 0.02 0.02translation='1 -3.4 0'>
 68                      <Shape>
 69                           <Appearance USE='the-appearance'/>
 70                           <Text string='"HIGHEST (0 0 16)"'>
 71                                <FontStyle USE='the-style'/>
 72                           </Text>
 73                      </Shape>
 74 
                    <!-- ROUTE information for the-touch4 node:  [from touchTime to time4.startTime ] -->
                    <TouchSensor DEF='the-touch4description='touch to activate 4'/>
 75                 </Transform>
 76            </Transform>
 77 
          <!-- ROUTE information for time1 node:  [from the-touch1.touchTime to startTime ] [from fraction_changed to first-position.set_fraction ] [from fraction_changed to text1.set_fraction ] -->
          <TimeSensor DEF='time1cycleInterval='2'/>
 78 
          <!-- ROUTE information for time2 node:  [from the-touch2.touchTime to startTime ] [from fraction_changed to second-position.set_fraction ] [from fraction_changed to text2.set_fraction ] -->
          <TimeSensor DEF='time2cycleInterval='2'/>
 79 
          <!-- ROUTE information for time3 node:  [from the-touch3.touchTime to startTime ] [from fraction_changed to third-position.set_fraction ] [from fraction_changed to text3.set_fraction ] -->
          <TimeSensor DEF='time3cycleInterval='2'/>
 80 
          <!-- ROUTE information for time4 node:  [from the-touch4.touchTime to startTime ] [from fraction_changed to fourth-position.set_fraction ] [from fraction_changed to text4.set_fraction ] -->
          <TimeSensor DEF='time4cycleInterval='2'/>
 81 
          <!-- ROUTE information for first-position node:  [from time1.fraction_changed to set_fraction ] [from value_changed to the-view.position ] -->
          <PositionInterpolator DEF='first-positionkey='0 1keyValue='0 0 64 0 0 64'/>
 82 
          <!-- ROUTE information for second-position node:  [from time2.fraction_changed to set_fraction ] [from value_changed to the-view.position ] -->
          <PositionInterpolator DEF='second-positionkey='0 1keyValue='0 0 48 0 0 48'/>
 83 
          <!-- ROUTE information for third-position node:  [from time3.fraction_changed to set_fraction ] [from value_changed to the-view.position ] -->
          <PositionInterpolator DEF='third-positionkey='0 1keyValue='0 0 32 0 0 32'/>
 84 
          <!-- ROUTE information for fourth-position node:  [from time4.fraction_changed to set_fraction ] [from value_changed to the-view.position ] -->
          <PositionInterpolator DEF='fourth-positionkey='0 1keyValue='0 0 27 0 0 27'/>
 85 
          <!-- ROUTE information for text1 node:  [from time1.fraction_changed to set_fraction ] [from value_changed to big-trans1.translation ] -->
          <PositionInterpolator DEF='text1key='0 1keyValue='0 0 54 0 0 54'/>
 86 
          <!-- ROUTE information for text2 node:  [from time2.fraction_changed to set_fraction ] [from value_changed to big-trans1.translation ] -->
          <PositionInterpolator DEF='text2key='0 1keyValue='0 0 38 0 0 38'/>
 87 
          <!-- ROUTE information for text3 node:  [from time3.fraction_changed to set_fraction ] [from value_changed to big-trans1.translation ] -->
          <PositionInterpolator DEF='text3key='0 1keyValue='0 0 22 0 0 22'/>
 88 
          <!-- ROUTE information for text4 node:  [from time4.fraction_changed to set_fraction ] [from value_changed to big-trans1.translation ] -->
          <PositionInterpolator DEF='text4key='0 1keyValue='0 0 17 0 0 17'/>
 89            <Transform rotation='1 0 0 0.15translation='-7 2 0'>
 90                 <LOD range='28 33 49'>
 91 
                    <!-- Inline ref1 is a DEF node that has 1 USE node: USE_1 -->
                    <Inline DEF='ref1'   url=' "ref1.x3d" "https://www.web3d.org/x3d/content/examples/ConformanceNist/SpecialGroups/LOD/ref1.x3d" "ref1.wrl" "https://www.web3d.org/x3d/content/examples/ConformanceNist/SpecialGroups/LOD/ref1.wrl" '/>
 92 
                    <!-- Inline ref2 is a DEF node that has 1 USE node: USE_1 -->
                    <Inline DEF='ref2'   url=' "ref2.x3d" "https://www.web3d.org/x3d/content/examples/ConformanceNist/SpecialGroups/LOD/ref2.x3d" "ref2.wrl" "https://www.web3d.org/x3d/content/examples/ConformanceNist/SpecialGroups/LOD/ref2.wrl" '/>
 93 
                    <!-- Inline ref3 is a DEF node that has 1 USE node: USE_1 -->
                    <Inline DEF='ref3'   url=' "ref3.x3d" "https://www.web3d.org/x3d/content/examples/ConformanceNist/SpecialGroups/LOD/ref3.x3d" "ref3.wrl" "https://www.web3d.org/x3d/content/examples/ConformanceNist/SpecialGroups/LOD/ref3.wrl" '/>
 94 
                    <!-- Inline ref4 is a DEF node that has 1 USE node: USE_1 -->
                    <Inline DEF='ref4'   url=' "ref4.x3d" "https://www.web3d.org/x3d/content/examples/ConformanceNist/SpecialGroups/LOD/ref4.x3d" "ref4.wrl" "https://www.web3d.org/x3d/content/examples/ConformanceNist/SpecialGroups/LOD/ref4.wrl" '/>
 95                 </LOD>
 96            </Transform>
 97            <Transform rotation='1 0 0 0.15translation='7 2 0'>
 98                 <LOD center='0 0 17range='28 33 49'>
 99                      <Inline USE='ref1'/>
100                      <Inline USE='ref2'/>
101                      <Inline USE='ref3'/>
102                      <Inline USE='ref4'/>
103                 </LOD>
104            </Transform>
105            < ROUTE  fromNode='the-touch1' fromField='touchTime' toNode='time1' toField='startTime'/>
106            < ROUTE  fromNode='the-touch2' fromField='touchTime' toNode='time2' toField='startTime'/>
107            < ROUTE  fromNode='the-touch3' fromField='touchTime' toNode='time3' toField='startTime'/>
108            < ROUTE  fromNode='the-touch4' fromField='touchTime' toNode='time4' toField='startTime'/>
109            < ROUTE  fromNode='time1' fromField='fraction_changed' toNode='first-position' toField='set_fraction'/>
110            < ROUTE  fromNode='time2' fromField='fraction_changed' toNode='second-position' toField='set_fraction'/>
111            < ROUTE  fromNode='time3' fromField='fraction_changed' toNode='third-position' toField='set_fraction'/>
112            < ROUTE  fromNode='time4' fromField='fraction_changed' toNode='fourth-position' toField='set_fraction'/>
113            < ROUTE  fromNode='first-position' fromField='value_changed' toNode='the-view' toField='position'/>
114            < ROUTE  fromNode='second-position' fromField='value_changed' toNode='the-view' toField='position'/>
115            < ROUTE  fromNode='third-position' fromField='value_changed' toNode='the-view' toField='position'/>
116            < ROUTE  fromNode='fourth-position' fromField='value_changed' toNode='the-view' toField='position'/>
117            < ROUTE  fromNode='time1' fromField='fraction_changed' toNode='text1' toField='set_fraction'/>
118            < ROUTE  fromNode='time2' fromField='fraction_changed' toNode='text2' toField='set_fraction'/>
119            < ROUTE  fromNode='time3' fromField='fraction_changed' toNode='text3' toField='set_fraction'/>
120            < ROUTE  fromNode='time4' fromField='fraction_changed' toNode='text4' toField='set_fraction'/>
121            < ROUTE  fromNode='text1' fromField='value_changed' toNode='big-trans1' toField='translation'/>
122            < ROUTE  fromNode='text2' fromField='value_changed' toNode='big-trans1' toField='translation'/>
123            < ROUTE  fromNode='text3' fromField='value_changed' toNode='big-trans1' toField='translation'/>
124            < ROUTE  fromNode='text4' fromField='value_changed' toNode='big-trans1' toField='translation'/>
125       </Scene>
126  </X3D>
<!--

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

<!-- to top Index for DEF nodes: big-trans1, first-position, fourth-position, ref1, ref2, ref3, ref4, second-position, text1, text2, text3, text4, the-appearance, the-style, the-touch1, the-touch2, the-touch3, the-touch4, the-view, third-position, time1, time2, time3, time4

Index for Viewpoint node: the-view
-->
X3D Tooltips element index: Appearance, FontStyle, Group, head, Inline, LOD, Material, meta, NavigationInfo, PositionInterpolator, ROUTE, Scene, Shape, Text, TimeSensor, TouchSensor, Transform, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types

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

the-touch1
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
time1
TimeSensor
startTime
SFTime
then
 
 
 
time1
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
first-position
PositionInterpolator
set_fraction
SFFloat
then
 
 
 
first-position
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(3)
the-view
Viewpoint
position
SFVec3f
  then
 
 
 
time1
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
text1
PositionInterpolator
set_fraction
SFFloat
then
 
 
 
text1
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(3)
big-trans1
Transform
translation
SFVec3f

the-touch2
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
time2
TimeSensor
startTime
SFTime
then
 
 
 
time2
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
second-position
PositionInterpolator
set_fraction
SFFloat
then
 
 
 
second-position
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(3)
the-view
Viewpoint
position
SFVec3f
  then
 
 
 
time2
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
text2
PositionInterpolator
set_fraction
SFFloat
then
 
 
 
text2
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(3)
big-trans1
Transform
translation
SFVec3f

the-touch3
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
time3
TimeSensor
startTime
SFTime
then
 
 
 
time3
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
third-position
PositionInterpolator
set_fraction
SFFloat
then
 
 
 
third-position
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(3)
the-view
Viewpoint
position
SFVec3f
  then
 
 
 
time3
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
text3
PositionInterpolator
set_fraction
SFFloat
then
 
 
 
text3
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(3)
big-trans1
Transform
translation
SFVec3f

the-touch4
TouchSensor
touchTime
SFTime

ROUTE
event to
(1)
time4
TimeSensor
startTime
SFTime
then
 
 
 
time4
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
fourth-position
PositionInterpolator
set_fraction
SFFloat
then
 
 
 
fourth-position
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(3)
the-view
Viewpoint
position
SFVec3f
  then
 
 
 
time4
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
text4
PositionInterpolator
set_fraction
SFFloat
then
 
 
 
text4
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(3)
big-trans1
Transform
translation
SFVec3f

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/ConformanceNist/SpecialGroups/LOD/test_centerIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/ConformanceNist/SpecialGroups/LOD/test_center.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. -->