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='ExplosionExample.x3d'/> |
6 | <meta name='description' content='Animated explosion with sound implemented as a prototype instance'/> |
7 | <meta name='creator' content='Don Brutzman'/> |
8 | <meta name='created' content='29 September 2007'/> |
9 | <meta name='modified' content='15 April 2011'/> |
10 |
<meta name='Image' content='ExplosionPrototypeExample.png'![]() |
11 | <meta name='MovingImage' content='ExplosionExampleVideo.mov'/> |
12 | <meta name='reference' content='ExplosionPrototype.x3d'/> |
13 | <meta name='identifier' content='https://savage.nps.edu/Savage/Tools/Explosions/ExplosionExample.x3d'/> |
14 | <meta name='generator' content='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/> |
15 | <meta name='generator' content='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/> |
16 | <meta name='license' content='../../license.html'/> |
17 | </head> |
18 | <Scene> |
19 | <WorldInfo title='ExplosionExample.x3d'/> |
20 | <ExternProtoDeclare name='Explosion' appinfo='Simple explosion animation of a sphere covered with a flame texture, plus a sound effect' url=' "ExplosionPrototype.x3d#Explosion" "../../../Savage/Tools/Explosions/ExplosionPrototype.x3d#Explosion" "https://savage.nps.edu/Savage/Tools/Explosions/ExplosionPrototype.x3d#Explosion" "ExplosionPrototype.wrl#Explosion" "../../../Savage/Tools/Explosions/ExplosionPrototype.wrl#Explosion" "https://savage.nps.edu/Savage/Tools/Explosions/ExplosionPrototype.wrl#Explosion" '> |
21 |
<field name='detonateTime' type='SFTime' accessType='inputOnly'
appinfo='time event to trigger explosion'/> |
22 |
<field name='size' type='SFVec3f' accessType='inputOutput'
appinfo='size of explosion sphere'/> |
23 | </ExternProtoDeclare> |
24 |
<!-- ROUTE information for ExplosionInstance node:
[from TextTouch.touchTime to detonateTime
]
-->
<ProtoInstance name='Explosion' DEF='ExplosionInstance'> |
25 | <fieldValue name='size' value='3 3 3'/> |
26 | </ProtoInstance> |
27 | <Group> |
28 |
<!-- ROUTE information for TextTouch node:
[from touchTime to ExplosionInstance.detonateTime
]
-->
<TouchSensor DEF='TextTouch' description='Click text to trigger explosion'/> |
29 | <Shape> |
30 | <Text string='"Click text to trigger" "explosion prototype"'> |
31 | <FontStyle justify='"MIDDLE" "MIDDLE"'/> |
32 | </Text> |
33 | <Appearance> |
34 | <Material diffuseColor='0.2 0.2 0.8'/> |
35 | </Appearance> |
36 | </Shape> |
37 | < ROUTE fromNode='TextTouch' fromField='touchTime' toNode='ExplosionInstance' toField='detonateTime'/> |
38 | </Group> |
39 | </Scene> |
40 | </X3D> |
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.
TextTouch
TouchSensor touchTime SFTime |
ExplosionInstance
ProtoInstance detonateTime SFTime |
ExplosionInstance
ProtoInstance Explosion |
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. |
<!--
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>
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->