<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
<X3D profile='Immersive' version='3.3 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation =' https://www.web3d.org/specifications/x3d-3.3.xsd '>
<head>
<meta name='titlecontent='Monolith.x3d'/>
<meta name='descriptioncontent='Monolith world: six vertical monoliths stand arranged together. Touching a monolith starts it glowing in a pulsing fashion.'/>
<meta name='creatorcontent='David R. Nadeau'/>
<meta name='translatorcontent='Don Brutzman'/>
<meta name='createdcontent='1 July 1998'/>
<meta name='translatedcontent='2 February 2014'/>
<meta name='modifiedcontent='20 October 2019'/>
<meta name='referencecontent='originals/monolith.wrl'/>
<meta name='referencecontent=' http://www.siggraph.org/s98 '/>
<meta name='referencecontent=' http://www.siggraph.org/s98/conference/courses/18.html '/>
<meta name='referencecontent=' http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0145.htm '/>
<meta name='referencecontent=' http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/vrml97.htm '/>
<meta name='referencecontent=' https://www.web3d.org/x3d/content/examples/X3dResources.html '/>
<meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Monolith.x3d '/>
<meta name='generatorcontent='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/>
<meta name='generatorcontent='X3D-Edit, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!-- -->
<Scene>
<!-- TouchSensors on the monoliths route to TimeSensors, one per monolith. Each TimeSensor routes to the intensity field of a PointLight placed just in front of the monolith. Simultaneously, a monolith's TimeSensor routes to the transparency field on a Material for a Box surrounding the monolith. -->
<!-- As a monolith's TimeSensor fraction ramps up from 0.0 to 1.0, the PointLight intensity ramps up from 0.0 (off) to 1.0 (full on). At the same time, the monolith's outer box transparency ramps from 0.0 (opaque) to 1.0 (transparent). As the transparency increases, an emissive textured inner box for the monolith becomes visible. The inner box's emissive shading makes it appear to be a light source, and the plausible source of the PointLight source's illumination. The overall effect is one of pulsing glowing monoliths. -->
<!-- A grid mesh floor is used so that localized lighting effects will be obvious. -->
<!-- Things to experiment with: -->
<!-- Try adding a ScalarInterpolator to each monolith and route it's output in to the rotation field of the monolith's TextureTransform. This will rotate the texture on the monolith. -->
<!-- Instead of the transparent box trick, try using a ColorInterpolator to gradually increase the emissiveColor of a single monolith box while decreasing the box's diffuseColor. -->
<!-- Try routing the TimeSensor's outputs in to a ScalarInterpolator that varies up and down smoothly, then route this output in to the light source's intensity, etc. Instead of the 0.1-1.0 ramp, then instant fall to 0.0 that the TimeSensor's fraction output gives, you can shape an arbitrary smooth rise and fall curve in the Scalar Interpolator's key values. -->
<WorldInfo info='"Copyright (c) 1997, David R. Nadeau"title='Monolith World'/>
<Viewpoint description='Monolith Entry Viewposition='0.0 1.6 9.0'/>
<NavigationInfo headlight='falsetype='"WALK" "ANY"'/>
<Background skyAngle='1.37 1.57skyColor='0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.1 0.5'/>
<PointLight ambientIntensity='0.1color='0.2 0.2 0.2location='0.0 8.0 10.0'/>
<!-- ROUTE information for Monolith1Light node:  [from Monolith1Timer.fraction_changed to set_intensity ] -->
<PointLight DEF='Monolith1LightambientIntensity='0.2color='0.8 0.4 0.0intensity='0.0location='0.0 2.0 0.5'/>
<Transform translation='0.0 2.0 0.0'>
<Shape>
<Appearance>
<!-- ROUTE information for Monolith1Facade node:  [from Monolith1Timer.fraction_changed to set_transparency ] -->
<Material DEF='Monolith1FacadediffuseColor='0.2 0.2 0.2transparency='1.0'/>
</Appearance>
<Box DEF='MonolithOuterBoxsize='2.0 4.0 0.3'/>
</Shape>
<Shape>
<Appearance>
<TextureTransform scale='0.5 0.5'/>
<ImageTexture DEF='MonolithInnerFire'
  url=' "fire.jpg" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/fire.jpg" '/>
</Appearance>
<Box DEF='MonolithInnerBoxsize='1.9 3.9 0.2'/>
</Shape>
<!-- ROUTE information for Monolith1Touch node:  [from touchTime to Monolith1Timer.set_startTime ] -->
<TouchSensor DEF='Monolith1Touch'/>
</Transform>
<!-- ROUTE information for Monolith2Light node:  [from Monolith2Timer.fraction_changed to set_intensity ] -->
<PointLight DEF='Monolith2LightambientIntensity='0.2color='0.8 0.4 0.0intensity='0.0location='-3.0 2.0 2.5'/>
<Transform translation='-3.0 2.0 2.0'>
<Shape>
<Appearance>
<!-- ROUTE information for Monolith2Facade node:  [from Monolith2Timer.fraction_changed to set_transparency ] -->
<Material DEF='Monolith2FacadediffuseColor='0.2 0.2 0.2transparency='1.0'/>
</Appearance>
<Box USE='MonolithOuterBox'/>
</Shape>
<Shape>
<Appearance>
<TextureTransform scale='0.3 0.3translation='0.2 0.2'/>
<ImageTexture USE='MonolithInnerFire'/>
</Appearance>
<Box USE='MonolithInnerBox'/>
</Shape>
<!-- ROUTE information for Monolith2Touch node:  [from touchTime to Monolith2Timer.set_startTime ] -->
<TouchSensor DEF='Monolith2Touch'/>
</Transform>
<!-- ROUTE information for Monolith3Light node:  [from Monolith3Timer.fraction_changed to set_intensity ] -->
<PointLight DEF='Monolith3LightambientIntensity='0.2color='0.8 0.4 0.0intensity='0.0location='4.0 2.0 -1.5'/>
<Transform translation='4.0 2.0 -2.0'>
<Shape>
<Appearance>
<!-- ROUTE information for Monolith3Facade node:  [from Monolith3Timer.fraction_changed to set_transparency ] -->
<Material DEF='Monolith3FacadediffuseColor='0.2 0.2 0.2transparency='1.0'/>
</Appearance>
<Box USE='MonolithOuterBox'/>
</Shape>
<Shape>
<Appearance>
<TextureTransform scale='0.1 0.1translation='0.3 0.5'/>
<ImageTexture USE='MonolithInnerFire'/>
</Appearance>
<Box USE='MonolithInnerBox'/>
</Shape>
<!-- ROUTE information for Monolith3Touch node:  [from touchTime to Monolith3Timer.set_startTime ] -->
<TouchSensor DEF='Monolith3Touch'/>
</Transform>
<!-- ROUTE information for Monolith4Light node:  [from Monolith4Timer.fraction_changed to set_intensity ] -->
<PointLight DEF='Monolith4LightambientIntensity='0.2color='0.8 0.4 0.0intensity='0.0location='4.5 2.0 3.5'/>
<Transform translation='4.5 2.0 3.0'>
<Shape>
<Appearance>
<!-- ROUTE information for Monolith4Facade node:  [from Monolith4Timer.fraction_changed to set_transparency ] -->
<Material DEF='Monolith4FacadediffuseColor='0.2 0.2 0.2transparency='1.0'/>
</Appearance>
<Box USE='MonolithOuterBox'/>
</Shape>
<Shape>
<Appearance>
<TextureTransform scale='0.2 0.2translation='0.4 0.6'/>
<ImageTexture USE='MonolithInnerFire'/>
</Appearance>
<Box USE='MonolithInnerBox'/>
</Shape>
<!-- ROUTE information for Monolith4Touch node:  [from touchTime to Monolith4Timer.set_startTime ] -->
<TouchSensor DEF='Monolith4Touch'/>
</Transform>
<!-- ROUTE information for Monolith5Light node:  [from Monolith5Timer.fraction_changed to set_intensity ] -->
<PointLight DEF='Monolith5LightambientIntensity='0.2color='0.8 0.4 0.0intensity='0.0location='-3.5 2.0 -4.5'/>
<Transform translation='-3.5 2.0 -5.0'>
<Shape>
<Appearance>
<!-- ROUTE information for Monolith5Facade node:  [from Monolith5Timer.fraction_changed to set_transparency ] -->
<Material DEF='Monolith5FacadediffuseColor='0.2 0.2 0.2transparency='1.0'/>
</Appearance>
<Box USE='MonolithOuterBox'/>
</Shape>
<Shape>
<Appearance>
<TextureTransform scale='0.2 0.4translation='0.5 0.1'/>
<ImageTexture USE='MonolithInnerFire'/>
</Appearance>
<Box USE='MonolithInnerBox'/>
</Shape>
<!-- ROUTE information for Monolith5Touch node:  [from touchTime to Monolith5Timer.set_startTime ] -->
<TouchSensor DEF='Monolith5Touch'/>
</Transform>
<!-- ROUTE information for Monolith6Light node:  [from Monolith6Timer.fraction_changed to set_intensity ] -->
<PointLight DEF='Monolith6LightambientIntensity='0.2color='0.8 0.4 0.0intensity='0.0location='2.0 2.0 -5.5'/>
<Transform translation='2.0 2.0 -6.0'>
<Shape>
<Appearance>
<!-- ROUTE information for Monolith6Facade node:  [from Monolith6Timer.fraction_changed to set_transparency ] -->
<Material DEF='Monolith6FacadediffuseColor='0.2 0.2 0.2transparency='1.0'/>
</Appearance>
<Box USE='MonolithOuterBox'/>
</Shape>
<Shape>
<Appearance>
<TextureTransform scale='0.2 0.4translation='0.5 0.1'/>
<ImageTexture USE='MonolithInnerFire'/>
</Appearance>
<Box USE='MonolithInnerBox'/>
</Shape>
<!-- ROUTE information for Monolith6Touch node:  [from touchTime to Monolith6Timer.set_startTime ] -->
<TouchSensor DEF='Monolith6Touch'/>
</Transform>
<Inline
  url=' "Floor.x3d" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Floor.x3d" "Floor.wrl" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Floor.wrl" '/>

<!-- ROUTE information for Monolith1Timer node:  [from Monolith1Touch.touchTime to set_startTime ] [from fraction_changed to Monolith1Facade.set_transparency ] [from fraction_changed to Monolith1Light.set_intensity ] -->
<TimeSensor DEF='Monolith1TimercycleInterval='4.0stopTime='0.1'/>
<ROUTE fromNode='Monolith1TouchfromField='touchTimetoNode='Monolith1TimertoField='set_startTime'/>
<ROUTE fromNode='Monolith1TimerfromField='fraction_changedtoNode='Monolith1FacadetoField='set_transparency'/>
<ROUTE fromNode='Monolith1TimerfromField='fraction_changedtoNode='Monolith1LighttoField='set_intensity'/>
<!-- ROUTE information for Monolith2Timer node:  [from Monolith2Touch.touchTime to set_startTime ] [from fraction_changed to Monolith2Facade.set_transparency ] [from fraction_changed to Monolith2Light.set_intensity ] -->
<TimeSensor DEF='Monolith2TimercycleInterval='4.5stopTime='0.1'/>
<ROUTE fromNode='Monolith2TouchfromField='touchTimetoNode='Monolith2TimertoField='set_startTime'/>
<ROUTE fromNode='Monolith2TimerfromField='fraction_changedtoNode='Monolith2FacadetoField='set_transparency'/>
<ROUTE fromNode='Monolith2TimerfromField='fraction_changedtoNode='Monolith2LighttoField='set_intensity'/>
<!-- ROUTE information for Monolith3Timer node:  [from Monolith3Touch.touchTime to set_startTime ] [from fraction_changed to Monolith3Facade.set_transparency ] [from fraction_changed to Monolith3Light.set_intensity ] -->
<TimeSensor DEF='Monolith3TimercycleInterval='5.0stopTime='0.1'/>
<ROUTE fromNode='Monolith3TouchfromField='touchTimetoNode='Monolith3TimertoField='set_startTime'/>
<ROUTE fromNode='Monolith3TimerfromField='fraction_changedtoNode='Monolith3FacadetoField='set_transparency'/>
<ROUTE fromNode='Monolith3TimerfromField='fraction_changedtoNode='Monolith3LighttoField='set_intensity'/>
<!-- ROUTE information for Monolith4Timer node:  [from Monolith4Touch.touchTime to set_startTime ] [from fraction_changed to Monolith4Facade.set_transparency ] [from fraction_changed to Monolith4Light.set_intensity ] -->
<TimeSensor DEF='Monolith4TimercycleInterval='5.5stopTime='0.1'/>
<ROUTE fromNode='Monolith4TouchfromField='touchTimetoNode='Monolith4TimertoField='set_startTime'/>
<ROUTE fromNode='Monolith4TimerfromField='fraction_changedtoNode='Monolith4FacadetoField='set_transparency'/>
<ROUTE fromNode='Monolith4TimerfromField='fraction_changedtoNode='Monolith4LighttoField='set_intensity'/>
<!-- ROUTE information for Monolith5Timer node:  [from Monolith5Touch.touchTime to set_startTime ] [from fraction_changed to Monolith5Facade.set_transparency ] [from fraction_changed to Monolith5Light.set_intensity ] -->
<TimeSensor DEF='Monolith5TimercycleInterval='6.0stopTime='0.1'/>
<ROUTE fromNode='Monolith5TouchfromField='touchTimetoNode='Monolith5TimertoField='set_startTime'/>
<ROUTE fromNode='Monolith5TimerfromField='fraction_changedtoNode='Monolith5FacadetoField='set_transparency'/>
<ROUTE fromNode='Monolith5TimerfromField='fraction_changedtoNode='Monolith5LighttoField='set_intensity'/>
<!-- ROUTE information for Monolith6Timer node:  [from Monolith6Touch.touchTime to set_startTime ] [from fraction_changed to Monolith6Facade.set_transparency ] [from fraction_changed to Monolith6Light.set_intensity ] -->
<TimeSensor DEF='Monolith6TimercycleInterval='6.5stopTime='0.1'/>
<ROUTE fromNode='Monolith6TouchfromField='touchTimetoNode='Monolith6TimertoField='set_startTime'/>
<ROUTE fromNode='Monolith6TimerfromField='fraction_changedtoNode='Monolith6FacadetoField='set_transparency'/>
<ROUTE fromNode='Monolith6TimerfromField='fraction_changedtoNode='Monolith6LighttoField='set_intensity'/>
</Scene>
</X3D>
<!--

Index for DEF nodes : Monolith1Facade, Monolith1Light, Monolith1Timer, Monolith1Touch, Monolith2Facade, Monolith2Light, Monolith2Timer, Monolith2Touch, Monolith3Facade, Monolith3Light, Monolith3Timer, Monolith3Touch, Monolith4Facade, Monolith4Light, Monolith4Timer, Monolith4Touch, Monolith5Facade, Monolith5Light, Monolith5Timer, Monolith5Touch, Monolith6Facade, Monolith6Light, Monolith6Timer, Monolith6Touch, MonolithInnerBox, MonolithInnerFire, MonolithOuterBox

Index for Viewpoint image : Viewpoint_1
-->

<!-- Color key: <X3dNode DEF='idName' field='value'/> matches <XmlElement DEF='idName' attribute='value'/>
(Light blue background: behavior node) (Grey background: inserted documentation) (Magenta background: X3D Extensibility)
-->

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