| 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='Interactive' 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=' Figure20_09GlowingOrbArchwaysExhibit.x3d '/> |
| 6 | <meta name='creator' content='Figure 20.9, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland'/> |
| 7 | <meta name='reference' content=' http://www.wiley.com/legacy/compbooks/vrml2sbk/ch20/20fig09.htm '/> |
| 8 | <meta name='translator' content='Don Brutzman'/> |
| 9 | <meta name='translator' content='Colleen Case'/> |
| 10 | <meta name='created' content='4 November 2000'/> |
| 11 | <meta name='modified' content='1 July 2023'/> |
| 12 | <meta name='description' content='A glowing sphere within a gothic building.'/> |
| 13 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter20Lighting/Figure20_09GlowingOrbArchwaysExhibit.x3d '/> |
| 14 | <meta name='generator' content='X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
| 15 | <meta name='license' content='../../license.html'/> |
| 16 | </head> |
| 17 | <Scene> |
| 18 | <WorldInfo title='Figure20_09GlowingOrbArchwaysExhibit.x3d'/> |
| 19 | <Group> |
| 20 | <Inline DEF='VAULT' bboxCenter='0 1 0' bboxSize='6 2 6' url=' "../Chapter13PointsLinesFaces/Figure13_16VaultedCeiling.x3d" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter13PointsLinesFaces/Figure13_16VaultedCeiling.x3d" "../Chapter13PointsLinesFaces/Figure13_16VaultedCeiling.wrl" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter13PointsLinesFaces/Figure13_16VaultedCeiling.wrl" '/> |
| 21 | <Transform translation='-8.25 0.0 -8.25'> |
| 22 | <Shape> |
| 23 | <ElevationGrid creaseAngle='0.2' solid='false' xDimension='12' xSpacing='1.5' zDimension='12' zSpacing='1.5' height='0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0'/> |
| 24 | <Appearance> |
| 25 | <Material diffuseColor='0.6 0.4 0'/> |
| 26 | </Appearance> |
| 27 | </Shape> |
| 28 | </Transform> |
| 29 | <Transform DEF='GLOBE_TRANSFORM' translation='0 1 0'> |
| 30 |
<!-- ROUTE information for GLOBELIGHT node:
[from LIGHT_INTENSITY_TWEAKER.value_changed to set_intensity
]
-->
<PointLight DEF='GLOBELIGHT' ambientIntensity='0.2' color='0.7 0.5 0' radius='15'/> |
| 31 | <Shape> |
| 32 | <Appearance> |
| 33 |
<ImageTexture
url=' "fire.jpg
" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter20Lighting/fire.jpg
" '/>
|
| 34 |
<!-- ROUTE information for FIRE_TEXTURETRANSFORM node:
[from TEXTURE_SPIN_INTERPOLATOR.value_changed to set_rotation
]
-->
<TextureTransform DEF='FIRE_TEXTURETRANSFORM'/> |
| 35 | </Appearance> |
| 36 | <Sphere radius='0.2'/> |
| 37 | </Shape> |
| 38 | <Viewpoint description='hello orb' position='0 0 3'/> |
| 39 |
<!-- ROUTE information for SPINCLOCK node:
[from fraction_changed to TEXTURE_SPIN_INTERPOLATOR.set_fraction
]
[from fraction_changed to LIGHT_INTENSITY_TWEAKER.set_fraction
]
-->
<TimeSensor DEF='SPINCLOCK' cycleInterval='30' loop='true'/> |
| 40 |
<!-- ROUTE information for TEXTURE_SPIN_INTERPOLATOR node:
[from SPINCLOCK.fraction_changed to set_fraction
]
[from value_changed to FIRE_TEXTURETRANSFORM.set_rotation
]
-->
<ScalarInterpolator DEF='TEXTURE_SPIN_INTERPOLATOR' key='0 0.5 1' keyValue='0 -3.14159 -6.28318'/> |
| 41 |
<!-- ROUTE information for LIGHT_INTENSITY_TWEAKER node:
[from SPINCLOCK.fraction_changed to set_fraction
]
[from value_changed to GLOBELIGHT.set_intensity
]
-->
<ScalarInterpolator DEF='LIGHT_INTENSITY_TWEAKER' key='0 0.2 0.35 0.5 0.65 0.85 0.95 1' keyValue='1 0.7 0.3 0.5 0.75 0.85 0.4 1'/> |
| 42 | </Transform> |
| 43 | <Shape> |
| 44 | |
| 45 | <Material diffuseColor='0.5 0.5 0.5' emissiveColor='0.1 0.1 0.1'/> |
| 46 | </Appearance> |
| 47 | <IndexedFaceSet coordIndex='0 1 4 -1 1 2 4 -1 2 3 4 -1 3 0 4 -1'> |
| 48 | <Coordinate point='-0.12 0.03 0.12 0.12 0.03 0.12 0.12 0.03 -0.12 -0.12 0.03 -0.12 0.0 0.63 0.0'/> |
| 49 | </IndexedFaceSet> |
| 50 | </Shape> |
| 51 | <Transform translation='0 0.015 0'> |
| 52 | <Shape> |
| 53 | <Appearance USE='WHITE'/> |
| 54 | <Box size='0.4 0.03 0.4'/> |
| 55 | </Shape> |
| 56 | </Transform> |
| 57 | </Group> |
| 58 | < ROUTE fromNode='SPINCLOCK' fromField='fraction_changed' toNode='TEXTURE_SPIN_INTERPOLATOR' toField='set_fraction'/> |
| 59 | < ROUTE fromNode='TEXTURE_SPIN_INTERPOLATOR' fromField='value_changed' toNode='FIRE_TEXTURETRANSFORM' toField='set_rotation'/> |
| 60 | < ROUTE fromNode='SPINCLOCK' fromField='fraction_changed' toNode='LIGHT_INTENSITY_TWEAKER' toField='set_fraction'/> |
| 61 | < ROUTE fromNode='LIGHT_INTENSITY_TWEAKER' fromField='value_changed' toNode='GLOBELIGHT' toField='set_intensity'/> |
| 62 | </Scene> |
| 63 | </X3D> |
Event Graph ROUTE Table entries with 4 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.
|
SPINCLOCK
TimeSensor fraction_changed SFFloat |
TEXTURE_SPIN_INTERPOLATOR
ScalarInterpolator set_fraction SFFloat |
then
|
TEXTURE_SPIN_INTERPOLATOR
ScalarInterpolator value_changed SFFloat |
FIRE_TEXTURETRANSFORM
TextureTransform set_rotation SFFloat |
||
|
SPINCLOCK
TimeSensor fraction_changed SFFloat |
LIGHT_INTENSITY_TWEAKER
ScalarInterpolator set_fraction SFFloat |
then
|
LIGHT_INTENSITY_TWEAKER
ScalarInterpolator value_changed SFFloat |
GLOBELIGHT
PointLight set_intensity SFFloat |
<!--
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)
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->