media @ VU
web3d-willem-ipod.vr
web3d-willem-ipod.vr
(wrl
)
[ flux /
bitmanagement /
cortona /
octaga
]
EXTERNPROTO ipodFront [
exposedField SFRotation rotation
exposedField MFString coverPic
]
["@vr-web3d-willem-front.wrl#ipodFront"]
EXTERNPROTO ipodBack [
exposedField SFRotation rotation
]
["@vr-web3d-willem-back.wrl#ipodBack"]
PROTO ipod [
exposedField SFVec3f scale 25 25 25
exposedField SFVec3f translation 0 0 0
exposedField MFString coverPic "ipodfront2.png"
]
{
Transform {
children [
DEF TIMER TimeSensor {
cycleInterval 5
loop TRUE
}
Transform {
children [
DEF ORIINT OrientationInterpolator {
key [0, 0.25, 0.5, 0.75, 1]
keyValue [
0 1 0 0,
0 1 0 1.57,
0 1 0 3.14,
0 1 0 4.71,
0 1 0 6.28
]
}
DEF IPOD Transform {
scale IS scale
translation IS translation
children [
ipodBack{
}
ipodFront{
coverPic IS coverPic
}
]
}
]
}
]
}
##ROUTE TIMER.fraction_changed TO ORIINT.set_fraction
ROUTE ORIINT.value_changed TO IPOD.set_rotation
}
ipod {
}
(C) A. Eliëns
2/9/2007
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.