diff --git a/assignments/DirectedStudy/Tobias/Scenes/Lighthouse.x3d b/assignments/DirectedStudy/Tobias/Scenes/Lighthouse.x3d index e953c3eaf85b1aff8ba7e792cca73e213bc2bb2c..69a4d56597327d5b2819bd534db698b5ffbe146f 100644 --- a/assignments/DirectedStudy/Tobias/Scenes/Lighthouse.x3d +++ b/assignments/DirectedStudy/Tobias/Scenes/Lighthouse.x3d @@ -7,25 +7,14 @@ <meta content='Tobias Brennenstuhl' name='creator'/> <meta content='12 January 2020' name='created'/> <meta content='12 January 2020' name='modified'/> - <meta content='*enter reference citation or relative/online url here*' name='reference'/> - <meta content='*enter additional url/bibliographic reference information here*' name='reference'/> - <meta content='*enter reference resource here if required to support function, delivery, or coherence of content*' name='requires'/> - <meta content='*enter copyright information here* Example: Copyright (c) Web3D Consortium Inc. 2006 to present' name='rights'/> - <meta content='*enter drawing filename/url here*' name='drawing'/> - <meta content='*enter image filename/url here*' name='Image'/> - <meta content='*enter movie filename/url here*' name='MovingImage'/> - <meta content='*enter photo filename/url here*' name='photo'/> - <meta content='*enter subject keywords here*' name='subject'/> - <meta content='*enter permission statements or url here*' name='accessRights'/> - <meta content='*insert any known warnings, bugs or errors here*' name='warning'/> + <meta content='*enter online Uniform Resource Identifier (URI) or Uniform Resource Locator (URL) address for this file here*' name='identifier'/> <meta content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit' name='generator'/> <meta content='../license.html' name='license'/> </head> <Scene> - <Viewpoint centerOfRotation='0 10 0' orientation='1 0 0 -0.141897' position='0 15 35'> - <!-- local lookat point: 0 10 0 --> - </Viewpoint> + <Background DEF='Summer' backUrl='"clouds.jpg"' frontUrl='"clouds.jpg"' groundAngle='0.659972 1.2 1.39912 1.5708' groundColor='0.105712 0.156051 0.297 0.187629 0.255857 0.398 0.33604 0.405546 0.542 0.3612 0.469145 0.602 0.39471 0.522059 0.669' leftUrl='"clouds.jpg"' rightUrl='"clouds.jpg"' skyAngle='0.8 1.3 1.4 1.5708' skyColor='0.21 0.31 0.59 0.33 0.45 0.7 0.57 0.66 0.85 0.6 0.73 0.89 0.7 0.83 0.98'/> + <Viewpoint centerOfRotation='0 10 0' orientation='-0.14013 0.98843 0.05804 0.793661' position='30 15 30'/> <Shape DEF='Ground'> <Box size='50 0.5 50'/> <Appearance> @@ -49,57 +38,82 @@ <Transform translation='0 9 0'> <Shape DEF='TransparentOctaeder'> <Extrusion crossSection='2 0 1.414214 1.414214 0 2 -1.414214 1.414214 -2 0 -1.414214 -1.414214 -0 -2 1.414214 -1.414214 2 -0' solid='false' spine='0 0 0 0 2.5 0'/> + <Appearance> + <Material diffuseColor='0.9 0.9 0.9' transparency='0.5'/> + </Appearance> + </Shape> + </Transform> + <TimeSensor DEF='SpotLightInterval' cycleInterval='24' enabled='true' loop='false'/> + <OrientationInterpolator DEF='SpinLight' key='0 0.25 0.5 0.75 1' keyValue='0 1 0 0 0 1 0 1.570796 0 1 0 3.141593 0 1 0 4.712389 0 1 0 6.283185'/> + <ROUTE fromField='fraction_changed' fromNode='SpotLightInterval' toField='set_fraction' toNode='SpinLight'/> + <Transform DEF='LightRotation'> + <ROUTE fromField='value_changed' fromNode='SpinLight' toField='rotation' toNode='LightRotation'/> + <SpotLight DEF='Light' beamWidth='0.1745' color='0.8 0.8 0.2' cutOffAngle='0.7837' location='0 9.5 0' on='false' radius='10'/> + <Transform translation='0 10 0'> + <Shape DEF='LightBox'> + <Extrusion crossSection='0.5 0.5 0.5 -0.75 -0.5 -0.75 -0.5 0.5 -0.25 -0.5 0.25 -0.5 0.5 0.5'/> <Appearance> - <Material diffuseColor='0.9 0.9 0.9' transparency='0.5'/> - </Appearance> - </Shape> - </Transform> - <TimeSensor DEF='SpotLightInterval' cycleInterval='12' loop='true'/> - <OrientationInterpolator DEF='SpinLight' key='0 0.25 0.5 0.75 1' keyValue='0 1 0 0 0 1 0 1.570796 0 1 0 3.141593 0 1 0 4.712389 0 1 0 6.283185'/> - <ROUTE fromField='fraction_changed' fromNode='SpotLightInterval' toField='set_fraction' toNode='SpinLight'/> - <Transform DEF='LightRotation'> - <ROUTE fromField='value_changed' fromNode='SpinLight' toField='rotation' toNode='LightRotation'/> - <SpotLight beamWidth='0.3' color='1 0.5 0.5' location='0 9.5 0' radius='1'/> - <Transform translation='0 10 0'> - <Shape DEF='LightBox'> - <Extrusion crossSection='0.5 0.5 0.5 -0.75 -0.5 -0.75 -0.5 0.5 -0.25 -0.5 0.25 -0.5 0.5 0.5'/> - </Shape> - </Transform> - </Transform> - <Transform translation='0 9.5 0'> - <Shape DEF='CylinderLamp'> - <Cylinder height='1.0'/> - <Appearance> - <Material diffuseColor='0.9 0.9 0.9'/> - </Appearance> - </Shape> - </Transform> - <Transform translation='0 11 0'> - <Shape USE='CylinderLamp'/> - </Transform> - <Transform translation='0 10 -25'> - <Shape> - <Box size='50 20 1'/> - <Appearance> - <Material diffuseColor='0.9 0.9 0.9'/> - </Appearance> - </Shape> - </Transform> - <Transform translation='-25 10 0'> - <Shape> - <Box size='1 20 50'/> - <Appearance> - <Material diffuseColor='0.9 0.9 0.9'/> - </Appearance> - </Shape> - </Transform> - <Transform translation='0 12 0'> - <Shape> - <Cone bottom='true' bottomRadius='3.0' height='2.0' side='true'/> - <Appearance> - <Material diffuseColor='0.9 0.9 0.9'/> + <Material diffuseColor='0.933333 1 0.160784' emissiveColor='0.984314 1 0.121569'/> </Appearance> </Shape> </Transform> - </Scene> - </X3D> \ No newline at end of file + </Transform> + <Transform translation='0 9.5 0'> + <Shape DEF='CylinderLamp'> + <Cylinder height='1.0'/> + <Appearance> + <Material diffuseColor='0.9 0.9 0.9'/> + </Appearance> + </Shape> + </Transform> + <Transform translation='0 11 0'> + <Shape USE='CylinderLamp'/> + </Transform> + <Transform translation='0 10 -25'> + <Shape> + <Box size='50 20 1'/> + <Appearance> + <Material diffuseColor='0.9 0.9 0.9'/> + </Appearance> + </Shape> + </Transform> + <Transform translation='-25 10 0'> + <Shape> + <Box size='1 20 50'/> + <Appearance> + <Material diffuseColor='0.9 0.9 0.9'/> + </Appearance> + </Shape> + </Transform> + <Transform translation='0 12 0'> + <Shape> + <Cone bottom='true' bottomRadius='3.0' height='2.0' side='true'/> + <Appearance> + <Material diffuseColor='0.9 0.9 0.9'/> + </Appearance> + </Shape> + </Transform> + <Transform translation='5 0.5 10'> + <TouchSensor DEF='LightSwitchSensor' description='Click to turn on light'/> + <Shape DEF='LightSwitch'> + <Box size='2.0 1.0 2'/> + <Appearance> + <Material diffuseColor='0.9 0.9 0.9'/> + <ImageTexture DEF='LightText' url='"light.png"'/> + </Appearance> + </Shape> + </Transform> + <Transform translation='0 0.5 10'> + <TouchSensor DEF='RotationSwitchSensor' description='Click to turn on rotation'/> + <Shape DEF='RotationSwitch'> + <Box size='2.0 1.0 2'/> + <Appearance> + <Material diffuseColor='0.9 0.9 0.9'/> + <ImageTexture DEF='RotationText' url='"rotation.png"'/> + </Appearance> + </Shape> + </Transform> + <ROUTE fromField='isActive' fromNode='LightSwitchSensor' toField='on' toNode='Light'/> + <ROUTE fromField='isActive' fromNode='RotationSwitchSensor' toField='loop' toNode='SpotLightInterval'/> + </Scene> +</X3D> \ No newline at end of file