#X3D V3.0 utf8 PROFILE Immersive # [X3D] version=3.0 # [X3D] noNamespaceSchemaLocation=https://www.web3d.org/specifications/x3d-3.0.xsd # X3D-to-ClassicVRML XSL translation autogenerated by X3dToClassicVrmlEncoding.xslt and X3dToVrml97.xslt # https://www.web3d.org/x3d/content/X3dToClassicVrmlEncoding.xslt # https://www.web3d.org/x3d/content/X3dToVrml97.xslt # Transformation using XSLT processor: Saxonica # head META "title" "PhysicsBasedExplosionPrototype.x3d" META "description" "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)." META "creator" "James Harney" META "created" "13 October 2001" META "modified" "20 October 2019" META "reference" "http://www.foia.navy.mil/usscole/index.html" META "reference" "http//www.fas.org/man/dod-101/navy/docs/es310/warheads/Warheads.htm" META "reference" "http//www.fas.org/man/dod-101/navy/docs/es310/dam_crit/dam_crit.htm" META "reference" "http//www.eqe.com/publications/revf94/blast.htm" META "reference" "http//www.siggraph.org/education/materials/HyperGraph/animation/particle.htm" META "subject" "TNT Equivalency Based Explosion, VRML X3D" META "identifier" "https://savage.nps.edu/Savage/Scenarios/UssColeTerroristAttack/PhysicsBasedExplosionPrototype.x3d" META "generator" "X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit" META "license" "../../license.html" # [Scene] ========== ========== ========== WorldInfo { title "PhysicsBasedExplosionPrototype.x3d" } PROTO TNTBasedExplosion [ # [appinfo] Physics-based explosion model inputOnly SFTime startExplosion ] { Group { children [ Group { children [ DEF InnerRingTrans Transform { children [ DEF InnerRing Transform { scale .01 .01 .01 children [ Shape { geometry Sphere { } appearance Appearance { material Material { diffuseColor .9333 .9333 0 shininess 1 } } } ] } ] } DEF MiddleRingTrans Transform { children [ DEF MiddleRing Transform { scale .01 .01 .01 children [ Shape { geometry Sphere { } appearance Appearance { material Material { diffuseColor 1 .2 0 shininess 1 transparency .5 } } } ] } ] } DEF OuterRingTrans Transform { children [ DEF OuterRing Transform { scale .01 .01 .01 children [ Shape { geometry Sphere { } appearance Appearance { material Material { diffuseColor .8 .8 .8 shininess .2 transparency .8 } } } ] } ] } Sound { maxBack 50000 maxFront 50000 source DEF Explode AudioClip { description "Explode!" url [ "../../Scenarios/UssColeTerroristAttack/EXP03.wav" "EXP03.wav" "https://savage.nps.edu/Savage/Scenarios/UssColeTerroristAttack/EXP03.wav" ] } } ] } DEF ExplosionClock TimeSensor { cycleInterval 3 startTime IS startExplosion } DEF OuterClock TimeSensor { cycleInterval 10 } # The explosion rings are based on the effects of approximately 1/3 ton of TNT. DEF InnerRingInterp PositionInterpolator { key [ 0 0.1 1 ] keyValue [ 0.01 0.01 0.01 9.975 9.975 9.975 0.01 0.01 0.01 ] } DEF MiddleRingInterp PositionInterpolator { key [ 0 0.1 1 ] keyValue [ 0.01 0.01 0.01 12.635 12.635 12.635 0.01 0.01 0.01 ] } DEF OuterRingInterp PositionInterpolator { key [ 0 0.2 1 ] keyValue [ 0.01 0.01 0.01 13.965 13.965 13.965 0.01 0.01 0.01 ] } DEF TransInterp PositionInterpolator { key [ 0 1 ] keyValue [ 0 0 0 0 4 1 ] } ] } ROUTE ExplosionClock.startTime TO OuterClock.startTime ROUTE ExplosionClock.fraction_changed TO InnerRingInterp.set_fraction ROUTE ExplosionClock.fraction_changed TO MiddleRingInterp.set_fraction ROUTE OuterClock.fraction_changed TO OuterRingInterp.set_fraction ROUTE InnerRingInterp.value_changed TO InnerRing.set_scale ROUTE MiddleRingInterp.value_changed TO MiddleRing.set_scale ROUTE OuterRingInterp.value_changed TO OuterRing.set_scale ROUTE ExplosionClock.startTime TO Explode.startTime ROUTE ExplosionClock.fraction_changed TO TransInterp.set_fraction ROUTE TransInterp.value_changed TO InnerRingTrans.translation ROUTE TransInterp.value_changed TO MiddleRingTrans.translation ROUTE TransInterp.value_changed TO OuterRingTrans.translation } NavigationInfo { speed 10 type [ "FLY" "EXAMINE" "ANY" ] visibilityLimit 7000 } 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 ] } Viewpoint { description "Watch the Explosion" position 0 0 12 } 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" ] children [ Shape { appearance Appearance { material Material { diffuseColor 0.8 0.4 0 } } geometry Text { string [ "PhysicsBasedExplosionPrototype.x3d" "is a Prototype declaration file." "" "For an example scene using the node" "click this text and view" "PhysicsBasedExplosionExample" ] fontStyle FontStyle { justify [ "MIDDLE" "MIDDLE" ] size 0.8 } } } ] }