1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.2//EN" "https://www.web3d.org/specifications/x3d-3.2.dtd">
|
3 | <X3D profile='Immersive' version='3.2' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.2.xsd'> |
4 | <head> |
5 | <component level='1' name='DIS'/> |
6 | <meta name='title' content=' PiracyDisHelloWorld.x3d '/> |
7 | <meta name='description' content='Counter-piracy patrol using DIS networking protocol, with animation provided by separate Java classes for patrolling helicopter and pirate skiff. Directions: "ant run.PiracyScenario" invokes Java programs which send animation PDUs.'/> |
8 | <meta name='creator' content='Chad R Hutchins'/> |
9 | <meta name='created' content='25 March 2012'/> |
10 | <meta name='modified' content='20 October 2019'/> |
11 | <meta name='reference' content=' build.xml '/> |
12 | <meta name='reference' content=' javadoc/index.html '/> |
13 | <meta name='reference' content=' http://www.3dtexture.net/img-blue-water-ocean-texture-250.htm '/> |
14 |
<meta name='Image' content='BlueWaterOceanTexture.jpg'![]() |
15 | <meta name='subject' content='Piracy Distributed Interactive Simulation'/> |
16 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Savage/Scenarios/PiracyIncidents/PiracyDisHelloWorld.x3d '/> |
17 | <meta name='generator' content='X3D-Edit, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
18 | <meta name='license' content='../../license.html'/> |
19 | </head> |
20 | <Scene> |
21 | <!-- Viewpoints --> |
22 | <WorldInfo title='PiracyDisHelloWorld.x3d'/> |
23 | <Viewpoint description='Starting Point' orientation='1 0 0 -0.1636' position='0 10 40'/> |
24 | <Viewpoint description='Looking from -80 meters out' fieldOfView='1.3963' orientation='-0.0017 0.9983 0.0584 3.0829' position='0 10 -80'/> |
25 | <Viewpoint description='UAV View' fieldOfView='1.57079' orientation='0 0.7415 0.671 -3.1416' position='0 75 0'/> |
26 | <!-- Ocean --> |
27 |
<!-- ROUTE information for OceanTransform node:
[from OceanMover.value_changed to set_translation
]
-->
<Transform DEF='OceanTransform' translation='0 0.5 0'> |
28 | <Shape> |
29 | <Box size='600 1 500'/> |
30 | <Appearance> |
31 | <Material diffuseColor='0.380392 0.607843 1'/> |
32 |
<ImageTexture
url=' "BlueWaterOceanTexture.jpg![]() |
33 | </Appearance> |
34 | </Shape> |
35 | </Transform> |
36 | <!-- Ocean interpolator, time sensor, and route --> |
37 |
<!-- ROUTE information for OceanMover node:
[from OceanTimer.fraction_changed to set_fraction
]
[from value_changed to OceanTransform.set_translation
]
-->
<PositionInterpolator DEF='OceanMover' key='0 0.2 0.4 0.6 0.8 0.9 1' keyValue='0 -0.9 0 0 -0.8 0 0 -1 0 0 -0.9 0 0 -0.8 0 0 -1 0 0 -0.9 0'/> |
38 |
<!-- ROUTE information for OceanTimer node:
[from fraction_changed to OceanMover.set_fraction
]
-->
<TimeSensor DEF='OceanTimer' cycleInterval='7' loop='true'/> |
39 | < ROUTE fromNode='OceanMover' fromField='value_changed' toNode='OceanTransform' toField='set_translation'/> |
40 | < ROUTE fromNode='OceanTimer' fromField='fraction_changed' toNode='OceanMover' toField='set_fraction'/> |
41 | <!-- Entities --> |
42 | <EspduTransform address='239.1.2.3' entityID='1' marking='PirateSkiff' networkMode='networkReader' port='62040' translation='0 1 0' containerField='children'> |
43 | <Inline DEF='PirateSkiff' url=' "../../ShipsCivilian/Piracy/PirateMotherSkiff.x3d" "https://www.web3d.org/x3d/content/examples/Savage/ShipsCivilian/Piracy/PirateMotherSkiff.x3d" '/> |
44 | </EspduTransform> |
45 | <EspduTransform address='239.1.2.3' entityID='2' marking='Helicopter' networkMode='networkReader' port='62040' translation='0 10 0' containerField='children'> |
46 | <Inline DEF='Helicopter' url=' "../../AircraftHelicopters/SH60SeahawkUnitedStates/SH60Seahawk.x3d" "https://www.web3d.org/x3d/content/examples/Savage/AircraftHelicopters/SH60SeahawkUnitedStates/SH60Seahawk.x3d" '/> |
47 | </EspduTransform> |
48 | </Scene> |
49 | </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.
OceanTimer
TimeSensor fraction_changed SFFloat |
OceanMover
PositionInterpolator set_fraction SFFloat |
then
|
OceanMover
PositionInterpolator value_changed SFVec3f |
OceanTransform
Transform set_translation SFVec3f |
<!--
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.
-->