| 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='title' content=' ProximitySensorOverlap.x3d '/> |
| 6 | <meta name='description' content='Example multiply-instanced ProximitySensor with overlapping regions'/> |
| 7 | <meta name='creator' content='Leonard Daly and Don Brutzman'/> |
| 8 | <meta name='created' content='15 July 2006'/> |
| 9 | <meta name='modified' content='20 October 2019'/> |
| 10 | <meta name='reference' content=' ProximitySensorMultiple.x3d '/> |
| 11 | <meta name='reference' content=' ProximitySensorNoOverlap.x3d '/> |
| 12 | <meta name='reference' content=' ProximitySensorSingle.x3d '/> |
| 13 | <meta name='reference' content='https://X3dGraphics.com'/> |
| 14 | <meta name='reference' content=' https://www.web3d.org/x3d/content/examples/X3dResources.html '/> |
| 15 | <meta name='rights' content='Copyright Don Brutzman and Leonard Daly 2007'/> |
| 16 | <meta name='subject' content='X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com'/> |
| 17 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter12EnvironmentSensorSound/ProximitySensorOverlap.x3d '/> |
| 18 | <meta name='generator' content='X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
| 19 | <meta name='license' content='../license.html'/> |
| 20 | </head> |
| 21 | <Scene> |
| 22 | <WorldInfo title='ProximitySensorOverlap.x3d'/> |
| 23 | <Viewpoint description='Book Viewpoint' orientation='0 1 0 -0.06' position='0.05 0 8.71'/> |
| 24 | <Background skyColor='1 1 1'/> |
| 25 | <Collision enabled='false'> |
| 26 | <Transform DEF='SensorGroup'> |
| 27 |
<!-- ProximitySensor
HereIAm1 is a DEF node that has 3 USE nodes: USE_1, USE_2, USE_3
<!-- ROUTE information for HereIAm1 node: [from position_changed to LocationReport.position ] [from orientation_changed to LocationReport.orientation ] --> <ProximitySensor DEF='HereIAm1' size='2 2 2'/> |
| 28 |
<!-- Transform
SensorSize is a DEF node that has 3 USE nodes: USE_1, USE_2, USE_3 -->
<Transform DEF='SensorSize'> |
| 29 | <Shape DEF='BoxOutline'> |
| 30 | <Appearance> |
| 31 | <Material emissiveColor='0.8 0.8 0.8'/> |
| 32 | </Appearance> |
| 33 | <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'> |
| 34 | <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'/> |
| 35 | </IndexedLineSet> |
| 36 | </Shape> |
| 37 | <Shape DEF='BoxSurface'> |
| 38 | <Appearance> |
| 39 | <Material diffuseColor='1 .5 0' transparency='.8'/> |
| 40 | </Appearance> |
| 41 | <Box/> |
| 42 | </Shape> |
| 43 | </Transform> |
| 44 | </Transform> |
| 45 | </Collision> |
| 46 | <Collision enabled='false'> |
| 47 | <Transform rotation='.707 .707 0 1' translation='3 1 2'> |
| 48 | <ProximitySensor USE='HereIAm1'/> |
| 49 | <Transform USE='SensorSize'/> |
| 50 | </Transform> |
| 51 | </Collision> |
| 52 | <Collision enabled='false'> |
| 53 | <Transform translation='-1 .5 -.5'> |
| 54 | <ProximitySensor USE='HereIAm1'/> |
| 55 | <Transform USE='SensorSize'/> |
| 56 | </Transform> |
| 57 | </Collision> |
| 58 | <Collision enabled='false'> |
| 59 | <Transform translation='-2 -1 .5'> |
| 60 | <ProximitySensor USE='HereIAm1'/> |
| 61 | <Transform USE='SensorSize'/> |
| 62 | </Transform> |
| 63 | </Collision> |
| 64 |
<!-- ROUTE information for LocationReport node:
[from HereIAm1.position_changed to position
]
[from HereIAm1.orientation_changed to orientation
]
-->
<Script DEF='LocationReport' url=' "ProximitySensorSingleScriptLocationReport.js" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter12EnvironmentSensorSound/ProximitySensorSingleScriptLocationReport.js" '> |
| 65 | <field name='position' type='SFVec3f' accessType='inputOnly'/> |
| 66 | <field name='orientation' type='SFRotation' accessType='inputOnly'/> |
| 67 | </Script> |
| 68 | < ROUTE fromNode='HereIAm1' fromField='position_changed' toNode='LocationReport' toField='position'/> |
| 69 | < ROUTE fromNode='HereIAm1' fromField='orientation_changed' toNode='LocationReport' toField='orientation'/> |
| 70 | </Scene> |
| 71 | </X3D> |
Event Graph ROUTE Table entries with 2 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 |
LocationReport
Script position SFVec3f |
|
|
HereIAm1
ProximitySensor orientation_changed SFRotation |
LocationReport
Script orientation SFRotation |
<!--
Color-coding 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.
-->