#VRML V2.0 utf8 # #
#DEF CAM1 Viewpoint { position 0 2 15 description "Camera 1" } DEF CAM2 Viewpoint { position 5 1 20 description "Camera 2" } NavigationInfo { type "EXAMINE" } Background { skyColor [ 0.0 0.2 0.7 0.0 0.5 1.0 1.0 1.0 1.0 ] skyAngle [ 1.309, 1.571 ] groundColor [ 0.1 0.10 0.0 0.4 0.25 0.2 0.6 0.60 0.6 ] groundAngle [ 1.309, 1.571 ] } PROTO SphereTransform [ exposedField SFVec3f translation 0 0 0 exposedField SFColor diffuseColor 1 1 1 exposedField SFFloat radius 1.0 ] { Transform { translation IS translation children [ Shape { appearance Appearance { material Material { diffuseColor IS diffuseColor } } geometry Sphere { radius IS radius } } ] } } PROTO BoxTransform [ exposedField SFRotation rotation 0 0 0 0.0 exposedField SFVec3f translation 0 0 0 field SFColor diffuseColor 1.0 1.0 1.0 field SFVec3f size 2.0 2.0 2.0 ] { Transform { rotation IS rotation translation IS translation children [ Shape { appearance Appearance { material Material { diffuseColor IS diffuseColor transparency 0.4 } } geometry Box { size IS size } } ] } } DEF ROOT Group { children [ Transform { translation 0.0 0.0 0.0 children [ DEF box BoxTransform { size 15 0.05 4.0 diffuseColor 0.8 0.8 0.0 } ] } ] } ## #