| 1 |
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
|
| 3 | <X3D profile='Immersive' version='3.0' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.0.xsd'> |
| 4 | <head> |
| 5 | <meta name='title' content='PhysicsBasedExplosionPrototype.x3d'/> |
| 6 | <meta name='description' content="A physics-based explosion model for 1/3 ton of TNT from the US Army's TNT Equivalency Model for modeling the attack on the USS COLE by Al-Qaida. Takes an input time as trigger parameter. Rings correspond to levels of damage on steel(unclass levels for representation purposes)."/> |
| 7 | <meta name='creator' content='James Harney'/> |
| 8 | <meta name='created' content='13 October 2001'/> |
| 9 | <meta name='modified' content='20 October 2019'/> |
| 10 | <meta name='reference' content='http://www.foia.navy.mil/usscole/index.html'/> |
| 11 | <meta name='reference' content='http//www.fas.org/man/dod-101/navy/docs/es310/warheads/Warheads.htm'/> |
| 12 | <meta name='reference' content='http//www.fas.org/man/dod-101/navy/docs/es310/dam_crit/dam_crit.htm'/> |
| 13 | <meta name='reference' content='http//www.eqe.com/publications/revf94/blast.htm'/> |
| 14 | <meta name='reference' content='http//www.siggraph.org/education/materials/HyperGraph/animation/particle.htm'/> |
| 15 | <meta name='subject' content='TNT Equivalency Based Explosion, VRML X3D'/> |
| 16 | <meta name='identifier' content='https://savage.nps.edu/Savage/Scenarios/UssColeTerroristAttack/PhysicsBasedExplosionPrototype.x3d'/> |
| 17 | <meta name='generator' content='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/> |
| 18 | <meta name='license' content='../../license.html'/> |
| 19 | </head> |
| 20 | <Scene> |
| 21 | <WorldInfo title='PhysicsBasedExplosionPrototype.x3d'/> |
| 22 | <ProtoDeclare name='TNTBasedExplosion' appinfo='Physics-based explosion model'> |
| 23 | <ProtoInterface> |
| 24 | <field name='startExplosion' type='SFTime' accessType='inputOnly'/> |
| 25 | </ProtoInterface> |
| 26 | <ProtoBody> |
| 27 | <Group> |
| 28 | <Group> |
| 29 |
<!-- ROUTE information for InnerRingTrans node:
[from TransInterp.value_changed to translation
]
-->
<Transform DEF='InnerRingTrans'> |
| 30 |
<!-- ROUTE information for InnerRing node:
[from InnerRingInterp.value_changed to set_scale
]
-->
<Transform DEF='InnerRing' scale='.01 .01 .01'> |
| 31 | <Shape> |
| 32 | <Sphere/> |
| 33 | <Appearance> |
| 34 | <Material diffuseColor='.9333 .9333 0' shininess='1'/> |
| 35 | </Appearance> |
| 36 | </Shape> |
| 37 | </Transform> |
| 38 | </Transform> |
| 39 |
<!-- ROUTE information for MiddleRingTrans node:
[from TransInterp.value_changed to translation
]
-->
<Transform DEF='MiddleRingTrans'> |
| 40 |
<!-- ROUTE information for MiddleRing node:
[from MiddleRingInterp.value_changed to set_scale
]
-->
<Transform DEF='MiddleRing' scale='.01 .01 .01'> |
| 41 | <Shape> |
| 42 | <Sphere/> |
| 43 | <Appearance> |
| 44 | <Material diffuseColor='1 .2 0' shininess='1' transparency='.5'/> |
| 45 | </Appearance> |
| 46 | </Shape> |
| 47 | </Transform> |
| 48 | </Transform> |
| 49 |
<!-- ROUTE information for OuterRingTrans node:
[from TransInterp.value_changed to translation
]
-->
<Transform DEF='OuterRingTrans'> |
| 50 |
<!-- ROUTE information for OuterRing node:
[from OuterRingInterp.value_changed to set_scale
]
-->
<Transform DEF='OuterRing' scale='.01 .01 .01'> |
| 51 | <Shape> |
| 52 | <Sphere/> |
| 53 | <Appearance> |
| 54 | <Material diffuseColor='.8 .8 .8' shininess='.2' transparency='.8'/> |
| 55 | </Appearance> |
| 56 | </Shape> |
| 57 | </Transform> |
| 58 | </Transform> |
| 59 | <Sound maxBack='50000' maxFront='50000'> |
| 60 |
<!-- ROUTE information for Explode node:
[from ExplosionClock.startTime to startTime
]
-->
<AudioClip DEF='Explode' description='Explode!' url=' "../../Scenarios/UssColeTerroristAttack/EXP03.wav" "EXP03.wav" "https://savage.nps.edu/Savage/Scenarios/UssColeTerroristAttack/EXP03.wav" '/> |
| 61 | </Sound> |
| 62 | </Group> |
| 63 |
<!-- ROUTE information for ExplosionClock node:
[from startTime to OuterClock.startTime
]
[from fraction_changed to InnerRingInterp.set_fraction
]
[from fraction_changed to MiddleRingInterp.set_fraction
]
[from startTime to Explode.startTime
]
[from fraction_changed to TransInterp.set_fraction
]
-->
<TimeSensor DEF='ExplosionClock' cycleInterval='3'> |
| 64 | <IS> |
| 65 | <connect nodeField='startTime' protoField='startExplosion'/> |
| 66 | </IS> |
| 67 | </TimeSensor> |
| 68 |
<!-- ROUTE information for OuterClock node:
[from ExplosionClock.startTime to startTime
]
[from fraction_changed to OuterRingInterp.set_fraction
]
-->
<TimeSensor DEF='OuterClock' cycleInterval='10'/> |
| 69 | <!-- The explosion rings are based on the effects of approximately 1/3 ton of TNT. --> |
| 70 |
<!-- ROUTE information for InnerRingInterp node:
[from ExplosionClock.fraction_changed to set_fraction
]
[from value_changed to InnerRing.set_scale
]
-->
<PositionInterpolator DEF='InnerRingInterp' key='0 0.1 1' keyValue='0.01 0.01 0.01 9.975 9.975 9.975 0.01 0.01 0.01'/> |
| 71 |
<!-- ROUTE information for MiddleRingInterp node:
[from ExplosionClock.fraction_changed to set_fraction
]
[from value_changed to MiddleRing.set_scale
]
-->
<PositionInterpolator DEF='MiddleRingInterp' key='0 0.1 1' keyValue='0.01 0.01 0.01 12.635 12.635 12.635 0.01 0.01 0.01'/> |
| 72 |
<!-- ROUTE information for OuterRingInterp node:
[from OuterClock.fraction_changed to set_fraction
]
[from value_changed to OuterRing.set_scale
]
-->
<PositionInterpolator DEF='OuterRingInterp' key='0 0.2 1' keyValue='0.01 0.01 0.01 13.965 13.965 13.965 0.01 0.01 0.01'/> |
| 73 |
<!-- ROUTE information for TransInterp node:
[from ExplosionClock.fraction_changed to set_fraction
]
[from value_changed to InnerRingTrans.translation
]
[from value_changed to MiddleRingTrans.translation
]
[from value_changed to OuterRingTrans.translation
]
-->
<PositionInterpolator DEF='TransInterp' key='0 1' keyValue='0 0 0 0 4 1'/> |
| 74 | </Group> |
| 75 | < ROUTE fromNode='ExplosionClock' fromField='startTime' toNode='OuterClock' toField='startTime'/> |
| 76 | < ROUTE fromNode='ExplosionClock' fromField='fraction_changed' toNode='InnerRingInterp' toField='set_fraction'/> |
| 77 | < ROUTE fromNode='ExplosionClock' fromField='fraction_changed' toNode='MiddleRingInterp' toField='set_fraction'/> |
| 78 | < ROUTE fromNode='OuterClock' fromField='fraction_changed' toNode='OuterRingInterp' toField='set_fraction'/> |
| 79 | < ROUTE fromNode='InnerRingInterp' fromField='value_changed' toNode='InnerRing' toField='set_scale'/> |
| 80 | < ROUTE fromNode='MiddleRingInterp' fromField='value_changed' toNode='MiddleRing' toField='set_scale'/> |
| 81 | < ROUTE fromNode='OuterRingInterp' fromField='value_changed' toNode='OuterRing' toField='set_scale'/> |
| 82 | < ROUTE fromNode='ExplosionClock' fromField='startTime' toNode='Explode' toField='startTime'/> |
| 83 | < ROUTE fromNode='ExplosionClock' fromField='fraction_changed' toNode='TransInterp' toField='set_fraction'/> |
| 84 | < ROUTE fromNode='TransInterp' fromField='value_changed' toNode='InnerRingTrans' toField='translation'/> |
| 85 | < ROUTE fromNode='TransInterp' fromField='value_changed' toNode='MiddleRingTrans' toField='translation'/> |
| 86 | < ROUTE fromNode='TransInterp' fromField='value_changed' toNode='OuterRingTrans' toField='translation'/> |
| 87 | </ProtoBody> |
| 88 | </ProtoDeclare> |
| 89 | <NavigationInfo speed='10' type='"FLY" "EXAMINE" "ANY"' visibilityLimit='7000'/> |
| 90 | <Background groundAngle='1.309' groundColor='0.2 0.2 0.8 .2 .2 1.0' skyAngle='1.309 1.571' skyColor='0.0 0.2 0.7 0.0 0.5 1.0 1.0 1.0 1.0'/> |
| 91 | <Viewpoint description='Watch the Explosion' position='0 0 12'/> |
| 92 | <Anchor description='Example use' parameter='"target=_blank"' url=' "PhysicsBasedExplosionExample.x3d" "https://savage.nps.edu/Savage/Scenarios/UssColeTerroristAttack/PhysicsBasedExplosionExample.x3d" "PhysicsBasedExplosionExample.wrl" "https://savage.nps.edu/Savage/Scenarios/UssColeTerroristAttack/PhysicsBasedExplosionExample.wrl" '> |
| 93 | <Shape> |
| 94 | <Appearance> |
| 95 | <Material diffuseColor='0.8 0.4 0'/> |
| 96 | </Appearance> |
| 97 | <Text string='"PhysicsBasedExplosionPrototype.x3d" "is a Prototype declaration file." "" "For an example scene using the node" "click this text and view" "PhysicsBasedExplosionExample"'> |
| 98 | <FontStyle justify='"MIDDLE" "MIDDLE"' size='0.8'/> |
| 99 | </Text> |
| 100 | </Shape> |
| 101 | </Anchor> |
| 102 | </Scene> |
| 103 | </X3D> |
Event Graph ROUTE Table entries with 12 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.
| line 92
Anchor |
description='Example use' User-interaction hint for this node. |
<!--
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)
<ProtoDeclare name='ProtoName'>
<field
name='fieldName'/> </ProtoDeclare>
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->