<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
<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 ' >
<head>
<meta name='titlecontent=' Torch.x3d '/>
<meta name='descriptioncontent='Example torch using MovieTexture and flickering lights.'/>
<meta name='creatorcontent='Panos Michalopoulos'/>
<meta name='createdcontent='19 February 2001'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/Torch.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: Flame, flames, Light, LightTimer, LightValues, Soil1, Torch, TorchMetal, Wall

Index for Viewpoint node: Viewpoint_1
-->
<Scene>
<WorldInfo title='Torch.x3d'/>
<NavigationInfo headlight='false'/>
<Viewpoint description='Standardorientation='0 1 0 0.1position='0.5 0 8'/>
<Transform scale='0.2 0.2 0.2translation='-2.3 1 0'>
<Group DEF='Torch'>
<Shape>
<Extrusion creaseAngle='2crossSection='-1 0 0 1 1 0 0 -1 -1 0scale='0.1 0.1 0.2 0.2spine='0 -1 0 0 1 0'/>
<Appearance DEF='TorchMetal'>
<Material diffuseColor='1 0.9 0.3'/>
</Appearance>
</Shape>
<Transform translation='0 1.15 0'>
<Shape>
<Cylinder height='0.3radius='0.3'/>
<Appearance USE=' TorchMetal'/>
</Shape>
</Transform>
<Transform rotation='0 1 0 -1.7scale='1.5 1.5 1.5translation='0 1.3 0'>
<Shape>
<Extrusion crossSection='-1 0 0 1 1 0 0 -1 -1 0scale='0.1 0.1 0.3 0.3 0.5 0.5 0.5 0.5 0.3 0.3 0.1 0.1 0.001 0.001spine='0 0 0 0 0.2 0 0 0.5 0 0 0.6 0 0 1 0 0 1.5 0 0 2 0'/>
<Appearance DEF='Flame'>
<MovieTexture DEF='flamesloop='truerepeatS='falserepeatT='false'
  url=' "flames.mpg" "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/flames.mpg" ' />
</Appearance>
</Shape>
</Transform>
<!-- ROUTE information for Light node:  [from LightValues.value_changed to set_intensity ] -->
<PointLight DEF='LightambientIntensity='0.3attenuation='0 0 0.1color='1 1 0.5location='0 2 0'/>

<!-- ROUTE information for LightTimer node:  [from fraction_changed to LightValues.set_fraction ] -->
<TimeSensor DEF='LightTimercycleInterval='1.5loop='true'/>

<!-- ROUTE information for LightValues node:  [from LightTimer.fraction_changed to set_fraction ] [from value_changed to Light.set_intensity ] -->
<ScalarInterpolator DEF='LightValueskey='0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1keyValue='1 0.7 0.5 0.8 1 0.5 0.8 0.7 1 0.5 1'/>
</Group>
</Transform>
<Transform scale='0.2 0.2 0.2translation='2.3 1 0'>
<Group USE=' Torch'/>
</Transform>
<Transform translation='0 -2.5 0'>
<Shape>
<Box size='5 0.1 5'/>
<Appearance DEF='Wall'>
<Material diffuseColor='0.9 0.9 0.9specularColor='0 0.1 0'/>
<ImageTexture DEF='Soil1'
  url=' "Soil1.jpg " "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/Soil1.jpg " ' />
</Appearance>
</Shape>
</Transform>
<Transform translation='0 2.5 0'>
<Shape>
<Box size='5 0.1 5'/>
<Appearance USE=' Wall'/>
</Shape>
</Transform>
<Transform translation='-2.5 0 0'>
<Shape>
<Box size='0.1 5 5'/>
<Appearance USE=' Wall'/>
</Shape>
</Transform>
<Transform translation='2.5 0 0'>
<Shape>
<Box size='0.1 5 5'/>
<Appearance USE=' Wall'/>
</Shape>
</Transform>
<Transform translation='0 0 -2.5'>
<Shape>
<Box size='5 5 0.1'/>
<Appearance USE=' Wall'/>
</Shape>
</Transform>
< ROUTE  fromNode=' LightTimer' fromField='fraction_changed' toNode=' LightValues' toField='set_fraction'/>
< ROUTE  fromNode=' LightValues' fromField='value_changed' toNode=' Light' toField='set_intensity'/>
</Scene>
</X3D>
<!--

to top <!-- Event Graph ROUTE Table shows event connections -->
 
<!-- Index for DEF nodes: Flame, flames, Light, LightTimer, LightValues, Soil1, Torch, TorchMetal, Wall

Index for Viewpoint node: Viewpoint_1
-->

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

LightTimer
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(1)
LightValues
ScalarInterpolator
set_fraction
SFFloat

 
 
then
LightValues
ScalarInterpolator
value_changed
SFFloat

ROUTE
event to
(2)
Light
PointLight
set_intensity
SFFloat


-->

<!-- Online at
https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/TorchIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/StudentProjects/Torch.x3d -->

<!-- Color 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)
-->

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