home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of Windows 95.com 1996 September
/
WIN95_09962.iso
/
vrml
/
cp2b2x.exe
/
DATA.Z
/
proto.wrl
< prev
next >
Wrap
Text File
|
1996-06-26
|
1KB
|
67 lines
#VRML V2.0 utf8
#
# proto.wrl
# ROUTE to a proto instance including simple shapes with no color.
#
Background {
skyColor [0 0 1]
}
PROTO SampleShapes [
exposedField SFVec3f shapesTranslation 0 0 0
] {
Transform {
translation IS shapesTranslation
children [
Transform {
children [Shape {geometry Box {}}]
},
Transform {
translation 3 0 0
children [Shape {geometry Cylinder {}}]
},
Transform {
translation 6 0 0
children [Shape {geometry Cone {}}]
},
Transform {
translation 9 0 0
children [Shape {geometry Sphere {}}]
}
]
}
}
DEF TIME TimeSensor{
loop TRUE
cycleInterval 10
}
DEF POS1 PositionInterpolator{
keys [0, 0.5, 1]
values [-5 0 0, 0 0 0, -5 0 0]
}
DEF INS1 SampleShapes {
shapesTranslation -5 0 0
}
DEF POS2 PositionInterpolator{
keys [0, 0.5, 1]
values [0 0 0, 4 4 4, 0 0 0]
}
DEF INS2 SampleShapes {
shapesTranslation 0 0 0
}
ROUTE TIME.fraction TO POS1.set_fraction
ROUTE POS1.value_changed TO INS1.shapesTranslation
ROUTE TIME.fraction TO POS2.set_fraction
ROUTE POS2.value_changed TO INS2.shapesTranslation