<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "http://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D profile='Immersive' version='3.0'
xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance'
xsd:noNamespaceSchemaLocation
='
http://www.web3d.org/specifications/x3d-3.0.xsd
'>
<head>
</head>
<!--
Index for DEF nodes
:
CloseClock,
CloseSound,
Door,
DoorSense,
DungeonRoom,
LeftClose,
LeftDoor,
LeftOpen,
OpenClock,
OpenSound,
RightClose,
RightDoor,
RightOpen
Index for Viewpoint images
:
Viewpoint_1,
Viewpoint_2
-->
<Scene>
<Viewpoint description='Now doors open, because they are visible' fieldOfView='1.05' position='0 2 10'/>
<Viewpoint description='Now doors close, because they are not visible' fieldOfView='1.05' orientation='0 1 0 -0.85' position='0 2 5'/>
<NavigationInfo avatarSize='0.5 1.6 0.5' headlight='false' speed='2' type='"WALK" "EXAMINE" "ANY"'/>
<Group>
</Group>
<!-- open door -->
<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'/>
<!-- close door -->
<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'/>
<!-- door timers -->
<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'/>
<!-- door translations -->
<ROUTE fromNode='LeftOpen' fromField='value_changed' toNode='LeftDoor' toField='set_translation'/>
<ROUTE fromNode='RightOpen' fromField='value_changed' toNode='RightDoor' toField='set_translation'/>
<ROUTE fromNode='LeftClose' fromField='value_changed' toNode='LeftDoor' toField='set_translation'/>
<ROUTE fromNode='RightClose' fromField='value_changed' toNode='RightDoor' toField='set_translation'/>
</Scene>
</X3D>
<!--
Index for DEF nodes
:
CloseClock,
CloseSound,
Door,
DoorSense,
DungeonRoom,
LeftClose,
LeftDoor,
LeftOpen,
OpenClock,
OpenSound,
RightClose,
RightDoor,
RightOpen
Index for Viewpoint images
:
Viewpoint_1,
Viewpoint_2
-->
<!--
Color key:
<X3dNode
DEF='idName' field='value'/>
matches
<XmlElement
DEF='idName' attribute='value'/>
-->
<!--
Additional help information about X3D scenes:
X3D Resources,
X3D Scene Authoring Hints
and
X3D Tooltips
-->