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='Proximity1.x3d'/> |
6 | <meta name='description' content='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.'/> |
7 | <meta name='creator' content='David R. Nadeau'/> |
8 | <meta name='translator' content='Don Brutzman'/> |
9 | <meta name='created' content='1 July 1998'/> |
10 | <meta name='translated' content='2 February 2014'/> |
11 | <meta name='modified' content='20 October 2019'/> |
12 | <meta name='reference' content='originals/prox1.wrl'/> |
13 | <meta name='reference' content='http://www.siggraph.org/s98'/> |
14 | <meta name='reference' content='http://www.siggraph.org/s98/conference/courses/18.html'/> |
15 | <meta name='reference' content='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0376.htm'/> |
16 | <meta name='reference' content='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0389.htm'/> |
17 | <meta name='reference' content='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/vrml97.htm'/> |
18 | <meta name='reference' content='https://www.web3d.org/x3d/content/examples/X3dResources.html'/> |
19 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Proximity1.x3d'/> |
20 | <meta name='generator' content='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/> |
21 | <meta name='generator' content='X3D-Edit, https://savage.nps.edu/X3D-Edit'/> |
22 | <meta name='license' content='../license.html'/> |
23 | </head> |
24 | <Scene> |
25 | <WorldInfo info='"Copyright (c) 1997, David R. Nadeau"' title='Proximity door'/> |
26 | <Viewpoint description='Entry view' position='0.0 1.6 7.0'/> |
27 | <NavigationInfo avatarSize='1.0 1.6 0.75' headlight='false' speed='4.0' type='"WALK" "ANY"'/> |
28 | <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" '/> |
29 | <Transform translation='0.0 0.0 -5.0'> |
30 | <Inline url=' "DungeonWall2.x3d" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/DungeonWall2.x3d" "DungeonWall2.wrl" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/DungeonWall2.wrl" '/> |
31 | </Transform> |
32 | <Transform translation='0.0 0.0 -4.95'> |
33 |
<!-- ROUTE information for LeftDoor node:
[from LeftOpen.value_changed to set_translation
]
[from LeftClose.value_changed to set_translation
]
-->
<Transform DEF='LeftDoor'> |
34 | <Transform translation='-0.75 0.0 0.0'> |
35 |
<!-- Inline
Door is a DEF node that has 1 USE node: USE_1 --> <Inline DEF='Door' url=' "DungeonDoor.x3d" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/DungeonDoor.x3d" "DungeonDoor.wrl" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/DungeonDoor.wrl" '/> |
36 | </Transform> |
37 | </Transform> |
38 |
<!-- ROUTE information for RightDoor node:
[from RightOpen.value_changed to set_translation
]
[from RightClose.value_changed to set_translation
]
-->
<Transform DEF='RightDoor'> |
39 | <Transform translation='0.75 0.0 0.0'> |
40 | <Inline USE='Door'/> |
41 | </Transform> |
42 | </Transform> |
43 |
<!-- ROUTE information for DoorSense node:
[from enterTime to OpenSound.set_startTime
]
[from exitTime to OpenSound.set_stopTime
]
[from enterTime to OpenClock.set_startTime
]
[from exitTime to OpenClock.set_stopTime
]
[from exitTime to CloseSound.set_startTime
]
[from enterTime to CloseSound.set_stopTime
]
[from exitTime to CloseClock.set_startTime
]
[from enterTime to CloseClock.set_stopTime
]
-->
<ProximitySensor DEF='DoorSense' center='0.0 1.75 0.0' size='6.0 3.5 8.0'/> |
44 | </Transform> |
45 | <Sound maxBack='60.0' maxFront='60.0' minBack='20.0' minFront='20.0'> |
46 |
<!-- ROUTE information for OpenSound node:
[from DoorSense.enterTime to set_startTime
]
[from DoorSense.exitTime to set_stopTime
]
-->
<AudioClip DEF='OpenSound' url=' "clunk2.wav" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/clunk2.wav" '/> |
47 | </Sound> |
48 | <Sound maxBack='60.0' maxFront='60.0' minBack='20.0' minFront='20.0'> |
49 |
<!-- ROUTE information for CloseSound node:
[from DoorSense.exitTime to set_startTime
]
[from DoorSense.enterTime to set_stopTime
]
-->
<AudioClip DEF='CloseSound' url=' "clunk1.wav" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/clunk1.wav" '/> |
50 | </Sound> |
51 |
<!-- ROUTE information for OpenClock node:
[from DoorSense.enterTime to set_startTime
]
[from DoorSense.exitTime to set_stopTime
]
[from fraction_changed to LeftOpen.set_fraction
]
[from fraction_changed to RightOpen.set_fraction
]
-->
<TimeSensor DEF='OpenClock' cycleInterval='0.5' stopTime='1.0'/> |
52 |
<!-- ROUTE information for CloseClock node:
[from DoorSense.exitTime to set_startTime
]
[from DoorSense.enterTime to set_stopTime
]
[from fraction_changed to LeftClose.set_fraction
]
[from fraction_changed to RightClose.set_fraction
]
-->
<TimeSensor DEF='CloseClock' cycleInterval='0.5' stopTime='1.0'/> |
53 |
<!-- ROUTE information for LeftOpen node:
[from OpenClock.fraction_changed to set_fraction
]
[from value_changed to LeftDoor.set_translation
]
-->
<PositionInterpolator DEF='LeftOpen' key='0.0 1.0' keyValue='0.0 0.0 0.0 -1.3 0.0 0.0'/> |
54 |
<!-- ROUTE information for LeftClose node:
[from CloseClock.fraction_changed to set_fraction
]
[from value_changed to LeftDoor.set_translation
]
-->
<PositionInterpolator DEF='LeftClose' key='0.0 1.0' keyValue='-1.3 0.0 0.0 0.0 0.0 0.0'/> |
55 |
<!-- ROUTE information for RightOpen node:
[from OpenClock.fraction_changed to set_fraction
]
[from value_changed to RightDoor.set_translation
]
-->
<PositionInterpolator DEF='RightOpen' key='0.0 1.0' keyValue='0.0 0.0 0.0 1.3 0.0 0.0'/> |
56 |
<!-- ROUTE information for RightClose node:
[from CloseClock.fraction_changed to set_fraction
]
[from value_changed to RightDoor.set_translation
]
-->
<PositionInterpolator DEF='RightClose' key='0.0 1.0' keyValue='1.3 0.0 0.0 0.0 0.0 0.0'/> |
57 | < ROUTE fromNode='DoorSense' fromField='enterTime' toNode='OpenSound' toField='set_startTime'/> |
58 | < ROUTE fromNode='DoorSense' fromField='exitTime' toNode='OpenSound' toField='set_stopTime'/> |
59 | < ROUTE fromNode='DoorSense' fromField='enterTime' toNode='OpenClock' toField='set_startTime'/> |
60 | < ROUTE fromNode='DoorSense' fromField='exitTime' toNode='OpenClock' toField='set_stopTime'/> |
61 | < ROUTE fromNode='DoorSense' fromField='exitTime' toNode='CloseSound' toField='set_startTime'/> |
62 | < ROUTE fromNode='DoorSense' fromField='enterTime' toNode='CloseSound' toField='set_stopTime'/> |
63 | < ROUTE fromNode='DoorSense' fromField='exitTime' toNode='CloseClock' toField='set_startTime'/> |
64 | < ROUTE fromNode='DoorSense' fromField='enterTime' toNode='CloseClock' toField='set_stopTime'/> |
65 | < ROUTE fromNode='OpenClock' fromField='fraction_changed' toNode='LeftOpen' toField='set_fraction'/> |
66 | < ROUTE fromNode='OpenClock' fromField='fraction_changed' toNode='RightOpen' toField='set_fraction'/> |
67 | < ROUTE fromNode='CloseClock' fromField='fraction_changed' toNode='LeftClose' toField='set_fraction'/> |
68 | < ROUTE fromNode='CloseClock' fromField='fraction_changed' toNode='RightClose' toField='set_fraction'/> |
69 | < ROUTE fromNode='LeftOpen' fromField='value_changed' toNode='LeftDoor' toField='set_translation'/> |
70 | < ROUTE fromNode='LeftClose' fromField='value_changed' toNode='LeftDoor' toField='set_translation'/> |
71 | < ROUTE fromNode='RightOpen' fromField='value_changed' toNode='RightDoor' toField='set_translation'/> |
72 | < ROUTE fromNode='RightClose' fromField='value_changed' toNode='RightDoor' toField='set_translation'/> |
73 | </Scene> |
74 | </X3D> |
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.
<!--
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)
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->