<?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>
</head>
<!--
-->
<Scene>
<!-- A tower is built starting with a single pole and archway inlined from towerprt.wrl. This part is instanced 12 times around the perimeter of the tower by doing successive rotations. Add a cylinder for the ceiling, and a level is complete. -->
<!-- A level is then instanced three more times to build the next three upper levels of the tower. Each instance moves up to the next level, then scales the generic level down a bit and puts it there. This repeated scaling is what gives the tower it's diminishing size for the upper levels. -->
<!-- A glowing, rotating cube is added to the top of the generic tower. An OrientationInterpolator keeps the cube rotating. -->
<!-- Things to experiment with: -->
<!-- Add sound! -->
<!-- Add a spiraling ramp that leads to the upper levels. Perhaps put something interesting on each level. Perhaps make the rotating cube on top do something... such as be an Anchor leading to another world! -->
<WorldInfo info='"Copyright (c) 1997, David R. Nadeau"' title='The Tower'/>
<Viewpoint description='Entry view' orientation='1.0 0.0 0.0 0.2' position='0.0 1.6 20.0'/>
<NavigationInfo headlight='false' speed='2.0'/>
<Background skyAngle='1.37 1.57' skyColor='0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.5 0.0'/>
<DirectionalLight ambientIntensity='0.2' direction='1.0 -0.5 -1.0'/>
<DirectionalLight ambientIntensity='0.2' color='0.0 0.3 1.0' direction='-1.0 1.0 -1.0' intensity='0.7'/>
<Transform scale='0.4 0.4 0.4'>
<Transform DEF='OneLevel' scale='2.0 1.0 2.0' translation='0.0 3.5 0.0'>
<Group DEF='HalfLevel'>
<Transform DEF='Part' rotation='0.0 1.0 0.0 0.26' translation='0.0 0.0 7.73'>
</Transform>
<Transform rotation='0.0 1.0 0.0 0.52'>
</Transform>
<Transform rotation='0.0 1.0 0.0 1.05'>
</Transform>
<Transform rotation='0.0 1.0 0.0 1.57'>
</Transform>
<Transform rotation='0.0 1.0 0.0 2.09'>
</Transform>
<Transform rotation='0.0 1.0 0.0 2.62'>
</Transform>
</Group>
<Transform rotation='0.0 1.0 0.0 3.14'>
</Transform>
<Transform translation='0.0 3.5 0.0'>
<Shape>
<Appearance>
</Appearance>
<Cylinder height='0.05' radius='8.2' side='false'/>
</Shape>
</Transform>
</Transform>
<Shape>
<Appearance>
<Material diffuseColor='0.0 0.0 0.0' transparency='0.25'/>
</Appearance>
<Cylinder bottom='false' height='0.05' radius='16.4' side='false'/>
</Shape>
<Transform rotation='0.0 1.0 0.0 0.26' scale='0.8 0.9 0.8' translation='0.0 7.0 0.0'>
</Transform>
<Transform scale='0.6 0.8 0.6' translation='0.0 13.3 0.0'>
</Transform>
<Transform rotation='0.0 1.0 0.0 0.26' scale='0.4 0.7 0.4' translation='0.0 18.9 0.0'>
</Transform>
<Transform rotation='-1.0 1.0 1.0 0.785'>
<Shape>
<Appearance>
</Appearance>
<Box size='3.0 3.0 3.0'/>
</Shape>
</Transform>
</Transform>
</Transform>
<Shape>
<Appearance>
<
TextureTransform scale='
5.0 5.0'/>
<Material ambientIntensity='0.8' diffuseColor='0.0 1.0 0.3'/>
<ImageTexture USE='
BlurImage'/>
</Appearance>
<IndexedFaceSet coordIndex='0 1 2 3 -1'>
<Coordinate point='-40.0 0.0 80.0 40.0 0.0 80.0 40.0 0.0 -40.0 -40.0 0.0 -40.0'/>
</IndexedFaceSet>
</Shape>
<
ROUTE
fromNode='
ThingTimer' fromField='fraction_changed' toNode='
ThingSpinner' toField='set_fraction'/>
<
ROUTE
fromNode='
ThingSpinner' fromField='value_changed' toNode='
Thing' toField='set_rotation'/>
</Scene>
</X3D>
<!--
-->
-->
<!--
Online at
https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/TowersIndex.html
-->
<!--
Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Towers.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)
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->