#VRML V2.0 utf8 WorldInfo { info "Animating Viewpoint, VRML 2.0 Examples by David Frerichs, frerichs@sgi.com" } DEF VP1 Viewpoint { position 0 4.59401 3.91809 orientation -1 0 0 0.314159 fieldOfView 0.785398 description "start" } Inline { url ["inline_cubes.wrl"] #The landscape } DEF Camera_Transform Transform { children [ Group { children [ DEF Rotation_Timer TimeSensor { cycleInterval 2 loop TRUE startTime 0 } DEF Camera_Rotation OrientationInterpolator { key [ 0, 0.5 1] keyValue [ 0 1 0 0, 0 1 0 3.1415, 0 1 0 6.283] } ] } DEF Cone_Touch_Sensor TouchSensor {} #Touch to start the cone spinning Transform { children Shape { appearance Appearance { material Material {} texture NULL textureTransform NULL } geometry Cone {} } translation -0.228831 2.18975 -0.117874 rotation 0.631116 0.450984 -0.631115 2.29425 scale 0.317358 0.317358 0.317358 scaleOrientation -0.333239 0.570848 0.750389 0.420005 } DEF VP2 Viewpoint { position -3.91495 3.26391 0.353499 orientation -0.234189 -0.960222 -0.152084 1.1893 fieldOfView 0.785398 description "animating_view" } ] translation 0 0 0 rotation 0 0 1 0 scale 1 1 1 center -0.228831 2.18975 -7.72854 } ROUTE Cone_Touch_Sensor.touchTime TO Rotation_Timer.set_startTime ROUTE Rotation_Timer.fraction_changed TO Camera_Rotation.set_fraction ROUTE Camera_Rotation.value_changed TO Camera_Transform.set_rotation