Debian Codegraph @

examples/screen_effects_demo/data/example_3d_scene.x3dv

raw
1 #X3D V3.2 utf8
2 PROFILE Interchange
3
4 DEF TeapotTransform Transform {
5 children Shape {
6 appearance Appearance { material Material { } }
7 geometry Teapot { }
8 }
9 }
10
11 DEF AnimateRotation TimeSensor { }
12 DEF MyOrientationInterpolator OrientationInterpolator {
13 key [ 0 0.25 0.5 0.75 1 ]
14 keyValue [
15 0 1 0 0,
16 0 1 0 1.57, # 0.5 * Pi
17 0 1 0 3.14, # 1 * Pi
18 0 1 0 4.71, # 1.5 * Pi
19 0 1 0 6.38, # 2 * Pi
20 ]
21 }
22 ROUTE AnimateRotation.fraction_changed TO MyOrientationInterpolator.set_fraction
23 ROUTE MyOrientationInterpolator.value_changed TO TeapotTransform.rotation