<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
<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 ' >
<head>
<meta name='titlecontent='Proximity1.x3d'/>
<meta name='descriptioncontent='Proximity door illustrates the use of a ProximitySensor node around a door. When the traveler gets near that door, an animation is triggered that opens the door and plays a sound. When the traveler leaves the area, the door closes and another sound is played.'/>
<meta name='creatorcontent='David R. Nadeau'/>
<meta name='translatorcontent='Don Brutzman'/>
<meta name='createdcontent='1 July 1998'/>
<meta name='translatedcontent='2 February 2014'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='referencecontent='originals/prox1.wrl'/>
<meta name='referencecontent=' http://www.siggraph.org/s98 '/>
<meta name='referencecontent=' http://www.siggraph.org/s98/conference/courses/18.html '/>
<meta name='referencecontent=' http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0376.htm '/>
<meta name='referencecontent=' http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0389.htm '/>
<meta name='referencecontent=' http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/vrml97.htm '/>
<meta name='referencecontent=' https://www.web3d.org/x3d/content/examples/X3dResources.html '/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Proximity1.x3d '/>
<meta name='generatorcontent='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/>
<meta name='generatorcontent='X3D-Edit, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: CloseClock, CloseSound, Door, DoorSense, LeftClose, LeftDoor, LeftOpen, OpenClock, OpenSound, RightClose, RightDoor, RightOpen

Index for Viewpoint node: Viewpoint_1
-->
<Scene>
<WorldInfo info='"Copyright (c) 1997, David R. Nadeau"title='Proximity door'/>
<Viewpoint description='Entry viewposition='0.0 1.6 7.0'/>
<NavigationInfo avatarSize='1.0 1.6 0.75headlight='falsespeed='4.0type='"WALK" "ANY"'/>
<Inline
  url=' "DungeonRoom.x3d" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/DungeonRoom.x3d" "DungeonRoom.wrl" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/DungeonRoom.wrl" ' />

<Transform translation='0.0 0.0 -5.0'> </Transform>
<Transform translation='0.0 0.0 -4.95'> </Transform>
<Sound maxBack='60.0maxFront='60.0minBack='20.0minFront='20.0'> </Sound>
<Sound maxBack='60.0maxFront='60.0minBack='20.0minFront='20.0'> </Sound>


<!-- ROUTE information for LeftOpen node:  [from OpenClock.fraction_changed to set_fraction ] [from value_changed to LeftDoor.set_translation ] -->
<PositionInterpolator DEF='LeftOpenkey='0.0 1.0keyValue='0.0 0.0 0.0 -1.3 0.0 0.0'/>

<!-- ROUTE information for LeftClose node:  [from CloseClock.fraction_changed to set_fraction ] [from value_changed to LeftDoor.set_translation ] -->
<PositionInterpolator DEF='LeftClosekey='0.0 1.0keyValue='-1.3 0.0 0.0 0.0 0.0 0.0'/>

<!-- ROUTE information for RightOpen node:  [from OpenClock.fraction_changed to set_fraction ] [from value_changed to RightDoor.set_translation ] -->
<PositionInterpolator DEF='RightOpenkey='0.0 1.0keyValue='0.0 0.0 0.0 1.3 0.0 0.0'/>

<!-- ROUTE information for RightClose node:  [from CloseClock.fraction_changed to set_fraction ] [from value_changed to RightDoor.set_translation ] -->
<PositionInterpolator DEF='RightClosekey='0.0 1.0keyValue='1.3 0.0 0.0 0.0 0.0 0.0'/>

< ROUTE  fromNode=' DoorSense' fromField='enterTime' toNode=' OpenSound' toField='set_startTime'/>
< ROUTE  fromNode=' DoorSense' fromField='exitTime' toNode=' OpenSound' toField='set_stopTime'/>
< ROUTE  fromNode=' DoorSense' fromField='enterTime' toNode=' OpenClock' toField='set_startTime'/>
< ROUTE  fromNode=' DoorSense' fromField='exitTime' toNode=' OpenClock' toField='set_stopTime'/>
< ROUTE  fromNode=' DoorSense' fromField='exitTime' toNode=' CloseSound' toField='set_startTime'/>
< ROUTE  fromNode=' DoorSense' fromField='enterTime' toNode=' CloseSound' toField='set_stopTime'/>
< ROUTE  fromNode=' DoorSense' fromField='exitTime' toNode=' CloseClock' toField='set_startTime'/>
< ROUTE  fromNode=' DoorSense' fromField='enterTime' toNode=' CloseClock' toField='set_stopTime'/>
< ROUTE  fromNode=' OpenClock' fromField='fraction_changed' toNode=' LeftOpen' toField='set_fraction'/>
< ROUTE  fromNode=' OpenClock' fromField='fraction_changed' toNode=' RightOpen' toField='set_fraction'/>
< ROUTE  fromNode=' CloseClock' fromField='fraction_changed' toNode=' LeftClose' toField='set_fraction'/>
< ROUTE  fromNode=' CloseClock' fromField='fraction_changed' toNode=' RightClose' toField='set_fraction'/>
< ROUTE  fromNode=' LeftOpen' fromField='value_changed' toNode=' LeftDoor' toField='set_translation'/>
< ROUTE  fromNode=' LeftClose' fromField='value_changed' toNode=' LeftDoor' toField='set_translation'/>
< ROUTE  fromNode=' RightOpen' fromField='value_changed' toNode=' RightDoor' toField='set_translation'/>
< ROUTE  fromNode=' RightClose' fromField='value_changed' toNode=' RightDoor' toField='set_translation'/>
</Scene>
</X3D>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: CloseClock, CloseSound, Door, DoorSense, LeftClose, LeftDoor, LeftOpen, OpenClock, OpenSound, RightClose, RightDoor, RightOpen

Index for Viewpoint node: Viewpoint_1
-->

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

DoorSense
ProximitySensor
enterTime
SFTime

ROUTE
event to
(1)
OpenSound
AudioClip
set_startTime
SFTime
DoorSense
ProximitySensor
exitTime
SFTime

ROUTE
event to
(1)
OpenSound
AudioClip
set_stopTime
SFTime
DoorSense
ProximitySensor
enterTime
SFTime

ROUTE
event to
(1)
OpenClock
TimeSensor
set_startTime
SFTime

 
 
then
OpenClock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
LeftOpen
PositionInterpolator
set_fraction
SFFloat

 
 
then
LeftOpen
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(3)
LeftDoor
Transform
set_translation
SFVec3f
 
 
 
then
OpenClock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
RightOpen
PositionInterpolator
set_fraction
SFFloat

 
 
then
RightOpen
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(3)
RightDoor
Transform
set_translation
SFVec3f
DoorSense
ProximitySensor
exitTime
SFTime

ROUTE
event to
(1)
OpenClock
TimeSensor
set_stopTime
SFTime

 
 
then
OpenClock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
LeftOpen
PositionInterpolator
set_fraction
SFFloat

 
 
then
LeftOpen
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(3)
LeftDoor
Transform
set_translation
SFVec3f
 
 
 
then
OpenClock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
RightOpen
PositionInterpolator
set_fraction
SFFloat

 
 
then
RightOpen
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(3)
RightDoor
Transform
set_translation
SFVec3f
DoorSense
ProximitySensor
exitTime
SFTime

ROUTE
event to
(1)
CloseSound
AudioClip
set_startTime
SFTime
DoorSense
ProximitySensor
enterTime
SFTime

ROUTE
event to
(1)
CloseSound
AudioClip
set_stopTime
SFTime
DoorSense
ProximitySensor
exitTime
SFTime

ROUTE
event to
(1)
CloseClock
TimeSensor
set_startTime
SFTime

 
 
then
CloseClock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
LeftClose
PositionInterpolator
set_fraction
SFFloat

 
 
then
LeftClose
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(3)
LeftDoor
Transform
set_translation
SFVec3f
 
 
 
then
CloseClock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
RightClose
PositionInterpolator
set_fraction
SFFloat

 
 
then
RightClose
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(3)
RightDoor
Transform
set_translation
SFVec3f
DoorSense
ProximitySensor
enterTime
SFTime

ROUTE
event to
(1)
CloseClock
TimeSensor
set_stopTime
SFTime

 
 
then
CloseClock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
LeftClose
PositionInterpolator
set_fraction
SFFloat

 
 
then
LeftClose
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(3)
LeftDoor
Transform
set_translation
SFVec3f
 
 
 
then
CloseClock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(2)
RightClose
PositionInterpolator
set_fraction
SFFloat

 
 
then
RightClose
PositionInterpolator
value_changed
SFVec3f

ROUTE
event to
(3)
RightDoor
Transform
set_translation
SFVec3f



-->

<!-- Online at
https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Proximity1Index.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Proximity1.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. -->