X3D Model Documentation: proxy.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='proxy.x3d'/>
  6            <meta name='MovingImagecontent='proxy-movie.mpg'/>
  7            <meta name='referencecontent='http://www.nist.gov/vrml.html'/>
  8            <meta name='referencecontent='http://www.itl.nist.gov/div897/ctg/vrml/vrml.html'/>
  9            <meta name='creatorcontent='http://www.itl.nist.gov/div897/ctg/vrml/members.html'/>
 10            <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. '/>
 11            <meta name='referencecontent='Original NIST Conformance Testing Group, https://www.itl.nist.gov/div897/ctg/vrml'/>
 12            <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'/>
 13            <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'/>
 14            <meta name='translatorcontent='Michael Kass NIST, Don Brutzman NPS'/>
 15            <meta name='translatedcontent='21 January 2001'/>
 16            <meta name='modifiedcontent='28 August 2023'/>
 17            <meta name='descriptioncontent='Test proxy support. A default Collision node is the parent of a Box geometry. To test proxy collision support, a Sphere geometry proxy collides with a stationary viewer avatar. The Sphere lineset should turn yellow upon viewer collision with the Sphere proxy, showing that collision detection between a moving proxy geometry, and a stationary avatar is supported. In addition, the viewer should be able to navigate toward the Sphere proxy geometry in a "walking" type of motion, and collide with the Sphere proxy. This should also cause the Sphere lineset to turn yellow, indicating that collision detection between a stationary proxy geometry and a moving (navigating) avatar is supported. In addition the viewer avatar should not be able to "enter" the proxy Sphere geometry when the viewer navigates into the proxy geometry.'/>
 18            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/ConformanceNist/GroupingNodes/Collision/proxy.x3d'/>
 19            <meta name='generatorcontent='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/>
 20            <meta name='generatorcontent='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/>
 21            <meta name='licensecontent='../../license.html'/>
 22       </head>
<!--

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

<!-- to top Index for DEF nodes: BOX1, COLLIDE1, COLORSCRIPT, POSITION_INTERP, PROX_SENSOR, SPHERE1, TIME1, TIME2, TRANS1, VIEW1, VIEW2

Index for Viewpoint nodes: VIEW1, VIEW2
-->
 23       <Scene>
 24            <WorldInfo title='proxy.x3d'/>
 25            <Viewpoint DEF='VIEW1description='Front Viewposition='0 0 15'/>
 26            <Viewpoint DEF='VIEW2description='At Originposition='0 0 0.75'/>
 27 
          <!-- ROUTE information for PROX_SENSOR node:  [from isActive to COLORSCRIPT.changeBlue ] -->
          <ProximitySensor DEF='PROX_SENSORsize='3 3 3'/>
 28 
          <!-- ROUTE information for TIME1 node:  [from TIME2.isActive to enabled ] [from cycleTime to TIME2.startTime ] -->
          <TimeSensor DEF='TIME1loop='true'/>
 29 
          <!-- ROUTE information for TIME2 node:  [from TIME1.cycleTime to startTime ] [from isActive to TIME1.enabled ] [from fraction_changed to POSITION_INTERP.set_fraction ] [self-route from isActive to enabled ] -->
          <TimeSensor DEF='TIME2cycleInterval='4'/>
 30 
          <!-- ROUTE information for POSITION_INTERP node:  [from TIME2.fraction_changed to set_fraction ] [from value_changed to TRANS1.set_translation ] -->
          <PositionInterpolator DEF='POSITION_INTERPkey='0 0.5 0.75 1keyValue='0 0 0 0 0 0 0 0 15 0 0 0'/>
 31 
          <!-- ROUTE information for COLLIDE1 node:  [from collideTime to COLORSCRIPT.changeYellow ] -->
          <Collision DEF='COLLIDE1'>
 32                 <Shape containerField='proxy'>
 33                      <Sphere/>
 34                 </Shape>
 35 
               <!-- ROUTE information for TRANS1 node:  [from POSITION_INTERP.value_changed to set_translation ] -->
               <Transform DEF='TRANS1'>
 36                      <Shape>
 37                           <Appearance>
 38                                <Material DEF='BOX1'/>
 39                           </Appearance>
 40                           <Box size='0.5 0.5 0.5'/>
 41                      </Shape>
 42                      <Shape>
 43                           <Appearance>
 44                                <Material/>
 45                           </Appearance>
 46                           <IndexedLineSet colorPerVertex='falsecolorIndex='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0coordIndex='0 1 2 -1 2 1 3 -1 2 3 4 -1 4 3 5 -1 4 5 6 -1 6 5 7 -1 6 7 8 -1 8 7 9 -1 8 9 10 -1 1 11 3 -1 3 11 12 -1 3 12 5 -1 5 12 13 -1 5 13 7 -1 7 13 14 -1 7 14 9 -1 11 15 12 -1 12 15 16 -1 12 16 13 -1 13 16 17 -1 13 17 14 -1 15 18 16 -1 16 18 19 -1 16 19 17 -1 19 18 20 -1 10 9 21 -1 21 9 22 -1 21 22 23 -1 23 22 24 -1 23 24 25 -1 25 24 26 -1 25 26 27 -1 27 26 28 -1 27 28 29 -1 9 14 22 -1 22 14 30 -1 22 30 24 -1 24 30 31 -1 24 31 26 -1 26 31 32 -1 26 32 28 -1 14 17 30 -1 30 17 33 -1 30 33 31 -1 31 33 34 -1 31 34 32 -1 17 19 33 -1 33 19 35 -1 33 35 34 -1 35 19 20 -1 10 36 8 -1 8 36 37 -1 8 37 6 -1 6 37 38 -1 6 38 4 -1 4 38 39 -1 4 39 2 -1 2 39 40 -1 2 40 0 -1 36 41 37 -1 37 41 42 -1 37 42 38 -1 38 42 43 -1 38 43 39 -1 39 43 44 -1 39 44 40 -1 41 45 42 -1 42 45 46 -1 42 46 43 -1 43 46 47 -1 43 47 44 -1 45 48 46 -1 46 48 49 -1 46 49 47 -1 49 48 50 -1 29 51 27 -1 27 51 52 -1 27 52 25 -1 25 52 53 -1 25 53 23 -1 23 53 54 -1 23 54 21 -1 21 54 36 -1 21 36 10 -1 51 55 52 -1 52 55 56 -1 52 56 53 -1 53 56 57 -1 53 57 54 -1 54 57 41 -1 54 41 36 -1 55 58 56 -1 56 58 59 -1 56 59 57 -1 57 59 45 -1 57 45 41 -1 58 60 59 -1 59 60 48 -1 59 48 45 -1 48 60 50 -1 61 62 63 -1 63 62 64 -1 63 64 65 -1 65 64 66 -1 65 66 67 -1 67 66 68 -1 67 68 69 -1 69 68 1 -1 69 1 0 -1 62 70 64 -1 64 70 71 -1 64 71 66 -1 66 71 72 -1 66 72 68 -1 68 72 11 -1 68 11 1 -1 70 73 71 -1 71 73 74 -1 71 74 72 -1 72 74 15 -1 72 15 11 -1 73 75 74 -1 74 75 18 -1 74 18 15 -1 18 75 20 -1 29 28 76 -1 76 28 77 -1 76 77 78 -1 78 77 79 -1 78 79 80 -1 80 79 81 -1 80 81 82 -1 82 81 62 -1 82 62 61 -1 28 32 77 -1 77 32 83 -1 77 83 79 -1 79 83 84 -1 79 84 81 -1 81 84 70 -1 81 70 62 -1 32 34 83 -1 83 34 85 -1 83 85 84 -1 84 85 73 -1 84 73 70 -1 34 35 85 -1 85 35 75 -1 85 75 73 -1 75 35 20 -1 0 40 69 -1 69 40 86 -1 69 86 67 -1 67 86 87 -1 67 87 65 -1 65 87 88 -1 65 88 63 -1 63 88 89 -1 63 89 61 -1 40 44 86 -1 86 44 90 -1 86 90 87 -1 87 90 91 -1 87 91 88 -1 88 91 92 -1 88 92 89 -1 44 47 90 -1 90 47 93 -1 90 93 91 -1 91 93 94 -1 91 94 92 -1 47 49 93 -1 93 49 95 -1 93 95 94 -1 95 49 50 -1 61 89 82 -1 82 89 96 -1 82 96 80 -1 80 96 97 -1 80 97 78 -1 78 97 98 -1 78 98 76 -1 76 98 51 -1 76 51 29 -1 89 92 96 -1 96 92 99 -1 96 99 97 -1 97 99 100 -1 97 100 98 -1 98 100 55 -1 98 55 51 -1 92 94 99 -1 99 94 101 -1 99 101 100 -1 100 101 58 -1 100 58 55 -1 94 95 101 -1 101 95 60 -1 101 60 58 -1 60 95 50 -1'>
 47                                <Coordinate point='1 0 0 0.970142 0.242536 0 0.970142 0 0.242536 0.904534 0.301511 0.301511 0.83205 0 0.5547 0.666667 0.333333 0.666667 0.5547 0 0.83205 0.301511 0.301511 0.904534 0.242536 0 0.970142 0 0.242536 0.970142 0 0 1 0.83205 0.5547 0 0.666667 0.666667 0.333333 0.333333 0.666667 0.666667 0 0.5547 0.83205 0.5547 0.83205 0 0.301511 0.904534 0.301511 0 0.83205 0.5547 0.242536 0.970142 0 0 0.970142 0.242536 0 1 0 -0.242536 0 0.970142 -0.301511 0.301511 0.904534 -0.5547 0 0.83205 -0.666667 0.333333 0.666667 -0.83205 0 0.5547 -0.904534 0.301511 0.301511 -0.970142 0 0.242536 -0.970142 0.242536 0 -1 0 0 -0.333333 0.666667 0.666667 -0.666667 0.666667 0.333333 -0.83205 0.5547 0 -0.301511 0.904534 0.301511 -0.5547 0.83205 0 -0.242536 0.970142 0 0 -0.242536 0.970142 0.301511 -0.301511 0.904534 0.666667 -0.333333 0.666667 0.904534 -0.301511 0.301511 0.970142 -0.242536 0 0 -0.5547 0.83205 0.333333 -0.666667 0.666667 0.666667 -0.666667 0.333333 0.83205 -0.5547 0 0 -0.83205 0.5547 0.301511 -0.904534 0.301511 0.5547 -0.83205 0 0 -0.970142 0.242536 0.242536 -0.970142 0 0 -1 0 -0.970142 -0.242536 0 -0.904534 -0.301511 0.301511 -0.666667 -0.333333 0.666667 -0.301511 -0.301511 0.904534 -0.83205 -0.5547 0 -0.666667 -0.666667 0.333333 -0.333333 -0.666667 0.666667 -0.5547 -0.83205 0 -0.301511 -0.904534 0.301511 -0.242536 -0.970142 0 0 0 -1 0 0.242536 -0.970142 0.242536 0 -0.970142 0.301511 0.301511 -0.904534 0.5547 0 -0.83205 0.666667 0.333333 -0.666667 0.83205 0 -0.5547 0.904534 0.301511 -0.301511 0.970142 0 -0.242536 0 0.5547 -0.83205 0.333333 0.666667 -0.666667 0.666667 0.666667 -0.333333 0 0.83205 -0.5547 0.301511 0.904534 -0.301511 0 0.970142 -0.242536 -0.970142 0 -0.242536 -0.904534 0.301511 -0.301511 -0.83205 0 -0.5547 -0.666667 0.333333 -0.666667 -0.5547 0 -0.83205 -0.301511 0.301511 -0.904534 -0.242536 0 -0.970142 -0.666667 0.666667 -0.333333 -0.333333 0.666667 -0.666667 -0.301511 0.904534 -0.301511 0.904534 -0.301511 -0.301511 0.666667 -0.333333 -0.666667 0.301511 -0.301511 -0.904534 0 -0.242536 -0.970142 0.666667 -0.666667 -0.333333 0.333333 -0.666667 -0.666667 0 -0.5547 -0.83205 0.301511 -0.904534 -0.301511 0 -0.83205 -0.5547 0 -0.970142 -0.242536 -0.301511 -0.301511 -0.904534 -0.666667 -0.333333 -0.666667 -0.904534 -0.301511 -0.301511 -0.333333 -0.666667 -0.666667 -0.666667 -0.666667 -0.333333 -0.301511 -0.904534 -0.301511'/>
 48 
                              <!-- Color SPHERE1 is a DEF node that has 1 USE node: USE_1 -->
                              <Color DEF='SPHERE1color='0 0 1'/>
 49                           </IndexedLineSet>
 50                      </Shape>
 51                 </Transform>
 52            </Collision>
 53 
          <!-- ROUTE information for COLORSCRIPT node:  [from COLLIDE1.collideTime to changeYellow ] [from PROX_SENSOR.isActive to changeBlue ] -->
          <Script DEF='COLORSCRIPTdirectOutput='true'   url=' "proxy.js" "https://www.web3d.org/x3d/content/examples/ConformanceNist/GroupingNodes/Collision/proxy.js" '>
 54                 <field name='sphere1type='SFNodeaccessType='initializeOnly'>
 55                      <Color USE='SPHERE1'/>
 56                 </field>
 57                 <field name='changeYellowtype='SFTimeaccessType='inputOnly'/>
 58                 <field name='changeBluetype='SFBoolaccessType='inputOnly'/>
 59                 <field name='bluetype='MFColorvalue='0 0 1accessType='initializeOnly'/>
 60                 <field name='yellowtype='MFColorvalue='1 1 0accessType='initializeOnly'/>
 61            </Script>
 62            < ROUTE  fromNode='COLLIDE1' fromField='collideTime' toNode='COLORSCRIPT' toField='changeYellow'/>
 63            < ROUTE  fromNode='PROX_SENSOR' fromField='isActive' toNode='COLORSCRIPT' toField='changeBlue'/>
 64            < ROUTE  fromNode='TIME1' fromField='cycleTime' toNode='TIME2' toField='startTime'/>
 65            < ROUTE  fromNode='TIME2' fromField='isActive' toNode='TIME1' toField='enabled'/>
 66            < ROUTE  fromNode='TIME2' fromField='isActive' toNode='TIME2' toField='enabled'/>
 67            < ROUTE  fromNode='TIME2' fromField='fraction_changed' toNode='POSITION_INTERP' toField='set_fraction'/>
 68            < ROUTE  fromNode='POSITION_INTERP' fromField='value_changed' toNode='TRANS1' toField='set_translation'/>
 69       </Scene>
 70  </X3D>
<!--

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

<!-- to top Index for DEF nodes: BOX1, COLLIDE1, COLORSCRIPT, POSITION_INTERP, PROX_SENSOR, SPHERE1, TIME1, TIME2, TRANS1, VIEW1, VIEW2

Index for Viewpoint nodes: VIEW1, VIEW2
-->
X3D Tooltips element index: Appearance, Box, Collision, Color, Coordinate, field, head, IndexedLineSet, Material, meta, PositionInterpolator, ProximitySensor, ROUTE, Scene, Script, Shape, Sphere, TimeSensor, Transform, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types

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

PROX_SENSOR
ProximitySensor
isActive
SFBool

ROUTE
event to
(1)
COLORSCRIPT
Script
changeBlue
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/ConformanceNist/GroupingNodes/Collision/proxyIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/ConformanceNist/GroupingNodes/Collision/proxy.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. -->