X3D Model Documentation: ProximitySensorMultiple.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2  <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
  3  <X3D profile='Immersive' version='3.3 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.3.xsd'>
  4       <head>
  5            <meta name='titlecontent='ProximitySensorMultiple.x3d'/>
  6            <meta name='descriptioncontent='Example multiple ProximitySensor non-overlapping regions'/>
  7            <meta name='creatorcontent='Leonard Daly and Don Brutzman'/>
  8            <meta name='createdcontent='15 July 2006'/>
  9            <meta name='modifiedcontent='20 October 2019'/>
 10            <meta name='referencecontent='ProximitySensorNoOverlap.x3d'/>
 11            <meta name='referencecontent='ProximitySensorOverlap.x3d'/>
 12            <meta name='referencecontent='ProximitySensorSingle.x3d'/>
 13            <meta name='referencecontent='https://X3dGraphics.com'/>
 14            <meta name='referencecontent='https://www.web3d.org/x3d/content/examples/X3dResources.html'/>
 15            <meta name='rightscontent='Copyright Don Brutzman and Leonard Daly 2007'/>
 16            <meta name='subjectcontent='X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com'/>
 17            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter12EnvironmentSensorSound/ProximitySensorMultiple.x3d'/>
 18            <meta name='generatorcontent='X3D-Edit 3.3, 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: BoxOutline, BoxSurface, HereIAm1, HereIAm2, HereIAm3, HereIAm4, LocationReport, SensorSize

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5

Index for ExternProtoDeclare definition: WhereAmI
-->
 21       <Scene>
 22            <WorldInfo title='ProximitySensorMultiple.x3d'/>
 23            <ExternProtoDeclare name='WhereAmI'   url=' "../Chapter14Prototypes/WhereAmIPrototype.x3d#WhereAmI" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/WhereAmIPrototype.x3d#WhereAmI" "../Chapter14Prototypes/WhereAmIPrototype.wrl#WhereAmI" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/WhereAmI.wrl#WhereAmI" '/>
 24            <ProtoInstance name='WhereAmI'/>
 25            <Viewpoint description='Book Viewpointorientation='0 1 0 -0.06position='0.05 0 8.71'/>
 26            <NavigationInfo avatarSize='0.05 1.6 0.75type='"WALK" "ANY"'/>
 27            <Background skyColor='1 1 1'/>
 28            <Collision enabled='false'>
 29                 <Transform>
 30                      <Viewpoint description='Inside proximity box 1orientation='0 1 0 -0.78position='0 0 0.5'/>
 31 
                    <!-- ROUTE information for HereIAm1 node:  [from position_changed to LocationReport.position ] [from orientation_changed to LocationReport.orientation ] -->
                    <ProximitySensor DEF='HereIAm1size='2 2 2'/>
 32 
                    <!-- Transform SensorSize is a DEF node that has 3 USE nodes: USE_1, USE_2, USE_3 -->
                    <Transform DEF='SensorSize'>
 33                           <Shape DEF='BoxOutline'>
 34                                <Appearance>
 35                                     <Material emissiveColor='0.8 0.8 0.8'/>
 36                                </Appearance>
 37                                <IndexedLineSet coordIndex='0 1 2 3 0 -1 4 5 6 7 4 -1 0 4 -1 1 5 -1 2 6 -1 3 7 -1'>
 38                                     <Coordinate point='1 1 1 1 1 -1 1 -1 -1 1 -1 1 -1 1 1 -1 1 -1 -1 -1 -1 -1 -1 1'/>
 39                                </IndexedLineSet>
 40                           </Shape>
 41                           <Shape DEF='BoxSurface'>
 42                                <Appearance>
 43                                     <Material diffuseColor='1 .5 0transparency='.8'/>
 44                                </Appearance>
 45                                <Box/>
 46                           </Shape>
 47                      </Transform>
 48                 </Transform>
 49            </Collision>
 50            <Collision enabled='false'>
 51                 <Transform rotation='.707 .707 0 1translation='3 1 2'>
 52                      <Viewpoint description='Inside proximity box 2orientation='0 1 0 -0.78position='0 0 0.5'/>
 53 
                    <!-- ROUTE information for HereIAm2 node:  [from position_changed to LocationReport.position ] [from orientation_changed to LocationReport.orientation ] -->
                    <ProximitySensor DEF='HereIAm2size='2 2 2'/>
 54                      <Transform USE='SensorSize'/>
 55                 </Transform>
 56            </Collision>
 57            <Collision enabled='false'>
 58                 <Transform translation='-1 .5 -.5'>
 59                      <Viewpoint description='Inside proximity box 3orientation='0 1 0 -0.78position='0 0 0.5'/>
 60 
                    <!-- ROUTE information for HereIAm3 node:  [from position_changed to LocationReport.position ] [from orientation_changed to LocationReport.orientation ] -->
                    <ProximitySensor DEF='HereIAm3size='2 2 2'/>
 61                      <Transform USE='SensorSize'/>
 62                 </Transform>
 63            </Collision>
 64            <Collision enabled='false'>
 65                 <Transform translation='-2 -1 .5'>
 66                      <Viewpoint description='Inside proximity box 4orientation='0 1 0 -0.78position='0 0 0.5'/>
 67 
                    <!-- ROUTE information for HereIAm4 node:  [from position_changed to LocationReport.position ] [from orientation_changed to LocationReport.orientation ] -->
                    <ProximitySensor DEF='HereIAm4size='2 2 2'/>
 68                      <Transform USE='SensorSize'/>
 69                 </Transform>
 70            </Collision>
 71 
 72                 <field name='positiontype='SFVec3faccessType='inputOnly'/>
 73                 <field name='orientationtype='SFRotationaccessType='inputOnly'/>
 74            </Script>
 75            < ROUTE  fromNode='HereIAm1' fromField='position_changed' toNode='LocationReport' toField='position'/>
 76            < ROUTE  fromNode='HereIAm2' fromField='position_changed' toNode='LocationReport' toField='position'/>
 77            < ROUTE  fromNode='HereIAm3' fromField='position_changed' toNode='LocationReport' toField='position'/>
 78            < ROUTE  fromNode='HereIAm4' fromField='position_changed' toNode='LocationReport' toField='position'/>
 79            < ROUTE  fromNode='HereIAm1' fromField='orientation_changed' toNode='LocationReport' toField='orientation'/>
 80            < ROUTE  fromNode='HereIAm2' fromField='orientation_changed' toNode='LocationReport' toField='orientation'/>
 81            < ROUTE  fromNode='HereIAm3' fromField='orientation_changed' toNode='LocationReport' toField='orientation'/>
 82            < ROUTE  fromNode='HereIAm4' fromField='orientation_changed' toNode='LocationReport' toField='orientation'/>
 83       </Scene>
 84  </X3D>
<!--

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

<!-- to top Index for DEF nodes: BoxOutline, BoxSurface, HereIAm1, HereIAm2, HereIAm3, HereIAm4, LocationReport, SensorSize

Index for Viewpoint nodes: Viewpoint_1, Viewpoint_2, Viewpoint_3, Viewpoint_4, Viewpoint_5

Index for ExternProtoDeclare definition: WhereAmI
-->
X3D Tooltips element index: Appearance, Background, Box, Collision, Coordinate, ExternProtoDeclare, field, head, IndexedLineSet, Material, meta, NavigationInfo, ProtoInstance, ProximitySensor, ROUTE, Scene, Script, Shape, Transform, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types

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

HereIAm1
ProximitySensor
position_changed
SFVec3f

ROUTE
event to
(1)
LocationReport
Script
position
SFVec3f
HereIAm1
ProximitySensor
orientation_changed
SFRotation

ROUTE
event to
(1)
LocationReport
Script
orientation
SFRotation

HereIAm2
ProximitySensor
position_changed
SFVec3f

ROUTE
event to
(1)
LocationReport
Script
position
SFVec3f
HereIAm2
ProximitySensor
orientation_changed
SFRotation

ROUTE
event to
(1)
LocationReport
Script
orientation
SFRotation

HereIAm3
ProximitySensor
position_changed
SFVec3f

ROUTE
event to
(1)
LocationReport
Script
position
SFVec3f
HereIAm3
ProximitySensor
orientation_changed
SFRotation

ROUTE
event to
(1)
LocationReport
Script
orientation
SFRotation

HereIAm4
ProximitySensor
position_changed
SFVec3f

ROUTE
event to
(1)
LocationReport
Script
position
SFVec3f
HereIAm4
ProximitySensor
orientation_changed
SFRotation

ROUTE
event to
(1)
LocationReport
Script
orientation
SFRotation


ProtoInstance
WhereAmI
No ROUTE connection found for output events 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. 
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/X3dForWebAuthors/Chapter12EnvironmentSensorSound/ProximitySensorMultipleIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter12EnvironmentSensorSound/ProximitySensorMultiple.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)
    <ProtoInstance name='ProtoName'> <field name='fieldName'/> </ProtoInstance> -->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->