X3D Model Documentation: PhysicsBasedExplosionExample.x3d

  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='PhysicsBasedExplosionExample.x3d'/>
  6            <meta name='description' content='Click on the text to trigger an exemplar of the physics-based explosion model prototype.'/>
  7            <meta name='creator' content='James Harney'/>
  8            <meta name='created' content='28 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/PhysicsBasedExplosionExample.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>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top Index for DEF nodes: MyTouch, TNT

Index for Viewpoint node: Viewpoint_1

Index for ExternProtoDeclare definition: TNTBasedExplosion
-->
 20       <Scene>
 21            <WorldInfo title='PhysicsBasedExplosionExample.x3d'/>
 22            <ExternProtoDeclare name='TNTBasedExplosion' appinfo='Physics-based explosion model'   url=' "PhysicsBasedExplosionPrototype.x3d#TNTBasedExplosion" "https://savage.nps.edu/Savage/Scenarios/UssColeTerroristAttack/PhysicsBasedExplosionPrototype.x3d#TNTBasedExplosion" "PhysicsBasedExplosionPrototype.wrl#TNTBasedExplosion" "https://savage.nps.edu/Savage/Scenarios/UssColeTerroristAttack/PhysicsBasedExplosionPrototype.wrl#TNTBasedExplosion" '>
 23                 <field name='startExplosion' type='SFTime' accessType='inputOnly'/>
 24            </ExternProtoDeclare>
 25            <NavigationInfo speed='10' type='"EXAMINE" "FLY" "ANY"' visibilityLimit='7000'/>
 26            <Background groundAngle='1.309' groundColor='0.2 0.2 0.8 0.2 0.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'/>
 27            <Viewpoint description='Watch the Explosion' position='0 0 20'/>
 28 
          <!-- ROUTE information for TNT node:  [from MyTouch.touchTime to startExplosion ] -->
          <ProtoInstance name='TNTBasedExplosion' DEF='TNT'/>
 29            <Transform>
 30                 <Billboard>
 31                      <Shape>
 32                           <Text string='"Click text to" "trigger explosion"'>
 33                                <FontStyle justify='"MIDDLE" "MIDDLE"'/>
 34                           </Text>
 35                           <Appearance>
 36                                <Material diffuseColor='1 0 0'/>
 37                           </Appearance>
 38                      </Shape>
 39                 </Billboard>
 40            </Transform>
 41 
          <!-- ROUTE information for MyTouch node:  [from touchTime to TNT.startExplosion ] -->
          <TouchSensor DEF='MyTouch' description='touch to activate'/>
 42            < ROUTE  fromNode='MyTouch' fromField='touchTime' toNode='TNT' toField='startExplosion'/>
 43       </Scene>
 44  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top Index for DEF nodes: MyTouch, TNT

Index for Viewpoint node: Viewpoint_1

Index for ExternProtoDeclare definition: TNTBasedExplosion
-->
X3D Tooltips element index: Appearance, Background, Billboard, ExternProtoDeclare, field, FontStyle, head, Material, meta, NavigationInfo, ProtoInstance, ROUTE, Scene, Shape, Text, TouchSensor, Transform, Viewpoint, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and field types

Event Graph ROUTE Table with 1 ROUTE connection 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.

MyTouch
TouchSensor
touchTime
SFTime
→
ROUTE
event to
(1)
TNT
ProtoInstance
startExplosion
SFTime

      TNT
ProtoInstance
TNTBasedExplosion
No ROUTE connection found for output events from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declarations with
direct access to other nodes, and thus has potential to produce run-time animation. 

Additional guidance on X3D animation can be found in the 10-Step Animation Design Process and Event Tracing hint sheets. Have fun with X3D! 😀

-->
<!-- Online at
https://savage.nps.edu/Savage/Scenarios/UssColeTerroristAttack/PhysicsBasedExplosionExampleIndex.html -->
<!-- Version control at
https://gitlab.nps.edu/Savage/Savage/Scenarios/UssColeTerroristAttack/PhysicsBasedExplosionExample.x3d -->

<!-- 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)
    <ProtoInstance name='ProtoName'> <field name='fieldName'/> </ProtoInstance> -->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->