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='titlecontent=' PhysicsBasedExplosionExample.x3d '/>
  6            <meta name='descriptioncontent='Click on the text to trigger an exemplar of the physics-based explosion model prototype.'/>
  7            <meta name='creatorcontent='James Harney'/>
  8            <meta name='createdcontent='28 October 2001'/>
  9            <meta name='modifiedcontent='20 October 2019'/>
 10            <meta name='referencecontent=' http://www.foia.navy.mil/usscole/index.html '/>
 11            <meta name='referencecontent=' http//www.fas.org/man/dod-101/navy/docs/es310/warheads/Warheads.htm '/>
 12            <meta name='referencecontent=' http//www.fas.org/man/dod-101/navy/docs/es310/dam_crit/dam_crit.htm '/>
 13            <meta name='referencecontent=' http//www.eqe.com/publications/revf94/blast.htm '/>
 14            <meta name='referencecontent=' http//www.siggraph.org/education/materials/HyperGraph/animation/particle.htm '/>
 15            <meta name='subjectcontent='TNT Equivalency Based Explosion, VRML X3D'/>
 16            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/PhysicsBasedExplosionExample.x3d '/>
 17            <meta name='generatorcontent='X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit'/>
 18            <meta name='licensecontent='../../license.html'/>
 19       </head>
<!--

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

Index for Viewpoint node: Viewpoint_1

Index for ExternProtoDeclare definition: TNTBasedExplosion
-->
 20       <Scene>
 21            <WorldInfo title='PhysicsBasedExplosionExample.x3d'/>
 22            <ExternProtoDeclare name='TNTBasedExplosionappinfo='Physics-based explosion model'   url=' "PhysicsBasedExplosionPrototype.x3d#TNTBasedExplosion" "https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/PhysicsBasedExplosionPrototype.x3d#TNTBasedExplosion" "PhysicsBasedExplosionPrototype.wrl#TNTBasedExplosion" "https://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/PhysicsBasedExplosionPrototype.wrl#TNTBasedExplosion" '>
 23                 <field name='startExplosiontype='SFTimeaccessType='inputOnly'/>
 24            </ExternProtoDeclare>
 25            <NavigationInfo speed='10type='"EXAMINE" "FLY" "ANY"visibilityLimit='7000'/>
 26            <Background groundAngle='1.309groundColor='0.2 0.2 0.8 0.2 0.2 1.0skyAngle='1.309 1.571skyColor='0.0 0.2 0.7 0.0 0.5 1.0 1.0 1.0 1.0'/>
 27            <Viewpoint description='Watch the Explosionposition='0 0 20'/>
 28 
          <!-- ROUTE information for TNT node:  [from MyTouch.touchTime to startExplosion ] -->
          <ProtoInstance name='TNTBasedExplosionDEF='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='MyTouchdescription='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 DEF nodes index: 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 direct ROUTE connection found for events to/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://www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/PhysicsBasedExplosionExampleIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Savage/Scenarios/UssColeTerroristAttack/PhysicsBasedExplosionExample.x3d -->

<!-- Color-coding legend: X3D terminology <X3dNode  DEF='idNamefield='value'/> matches XML terminology <XmlElement  DEF='idNameattribute='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. -->