media @ VU
[]
readme
course
preface
I
1
2
II
3
4
III
5
6
7
IV
8
9
10
V
11
12
afterthoughts
appendix
references
examples
resources
_
vr-example-vcr.vr
(wrl
)
[ flux /
bitmanagement /
cortona /
octaga
]
DEF root Transform {
children [
Shape {
appearance Appearance {
material Material {}
texture DEF movie MovieTexture {
url "@archive/video/campus-0056.rm"
}
}
geometry Box { size 10 5 0.1 }
}
DEF sound Sound { source USE movie }
Transform {
translation -4.75 -2.25 0
children [
DEF touch TouchSensor {}
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 0
transparency 0.5
}
}
geometry Sphere { radius 0.25 }
}
DEF script Script {
directOutput TRUE
eventIn SFTime touch
field SFNode movie USE movie
field SFNode sound USE sound
field SFInt32 state 0
field SFBool on TRUE
url "javascript:
function intialize() {
}
function touch(value) {
print('state = ' + state);
if (state == -1) {
} else if (state == 0) {
movie.startTime = value;
movie.stopTime = 0;
sound.intensity = 1;
on = TRUE;
state = 1;
} else if (state == 1) {
movie.stopTime = value;
on = FALSE;
state = 0;
} else if (state == 3) {
sound.intensity = 0;
state = 1;
} }
"
}
ROUTE touch.touchTime TO script.touch ## initially forgotten!
] }
] }
<phrase dir=b turn=0 id=_ level=_ right="haven t~nI seen this~nbefore?"/>
<phrase dir=b turn=0 id=_ level=_ left="I am glad~nyou re paying~nattention!!">
<gesture dir=b id=_ level=_ right=0 pause=500/>
<gesture dir=b id=_ level=_ left=0 pause=600/>
[]
readme
course
preface
I
1
2
II
3
4
III
5
6
7
IV
8
9
10
V
11
12
afterthoughts
appendix
references
examples
resources
_
(C) A. Eliëns
9/8/2006
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.