media @ VU
web3d-x-logo-layer.vr
web3d-x-logo-layer.vr
(wrl
)
[ flux /
bitmanagement /
cortona /
octaga
]
Web3D/VR
layer example
extern
#@extern @vr/extern/blaxxun/Layer3D.wrl
layer
DEF layer Layer3D
{
depth -30
translation 0.10 0.0
size 0.8 0.9
background Background { skyColor [ 1 1 0 ] }
viewpoint Viewpoint { position 0 0 10 }
children [
DEF inline Inline { url "@dlp.wrl" }
Transform { translation -5 2 0
children [
DEF touch TouchSensor { }
Shape {
geometry Sphere { }
appearance Appearance {
texture ImageTexture {
url "@logo.gif"
}
}
}
script
DEF script Script {
directOutput TRUE
field SFNode inline USE inline
field SFInt32 i 0
field MFString urls [
"@vr-web3d-logo.wrl" "@vr-web3d-transform.wrl"
"@vr-web3d-x-dlp.wrl"
]
eventIn SFTime touch
url "vrmlscript:
function touch(value) {
if (i >= urls.length) i = 0;
inline.url = urls[i++];
}
"
}
]}
]
ROUTE touch.touchTime TO script.touch
}
background
Background { skyColor [ 1 0 0 ] }
Viewpoint { position 0 0 10 }
(C) A. Eliëns
21/5/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.