media @ VU
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-slide-image.vr
(wrl
)
[ flux /
bitmanagement /
cortona /
octaga
]
example channel
extern
#@proto proto-pvl.vr
#@proto proto-slide.vr
no autoload
<set autoload=off>
some text
<slideset id=xx-1>
<slide id=x-img>
<image type=mov src=@logo.gif id=ch-1 color=blue w=7 h=4 s=3>
<i> <text id=t-1 text=red> how are you</text> </i>
<p> <text id=t-2 a=1 text=red> fine,thank you</text>
<object id=o-1 s=0.5 y=-1>
DEF touch TouchSensor { }
Shape {
appearance Appearance {
material DEF MAT Material {
diffuseColor 1 1 1
}
}
geometry Box {}
}
</object>
animator
<object>
DEF script Script {
directOutput TRUE
eventIn SFTime touch
eventOut SFFloat transparency
field SFNode text1 USE t-1
field SFNode text2 USE t-2
field MFString string []
field SFInt32 state 0
url "javascript:
function touch(value) {
if (state==0) {
text1.alpha = 1;
text2.alpha = 0;
state = 1;
} else if (state == 1) {
string = text1.string;
text1.string = text2.string[0];
text1.alpha = 0;
text2.alpha = 1;
state = 2;
} else if (state == 2) {
text1.string = string;
state = 0;
}
}
"
}
ROUTE touch.touchTime TO script.touch
DEF time TimeSensor { loop TRUE cycleInterval 5 }
DEF colors ColorInterpolator {
key [ 0 0.5 1 ]
keyValue [ 0 1 0, 1 0 0 ,1 0 1 ]
}
DEF scalar ScalarInterpolator {
key [ 0 0.5 1 ]
keyValue [ 0 0.5 1 ]
}
ROUTE time.fraction TO colors.fraction
ROUTE colors.value TO t-1.color
ROUTE colors.value TO MAT.diffuseColor
DEF back ColorInterpolator {
key [ 0 0.5 1 ]
keyValue [ 1 1 0, 0 1 0 ,0 1 1 ]
}
DEF rotation OrientationInterpolator {
key [ 0 0.5 1]
keyValue [ 1 1 0 0, 1 1 0 1.56 , 1 1 0 3.14 ]
}
ROUTE time.fraction TO back.fraction
ROUTE back.value TO ch-1.color
ROUTE time.fraction TO scalar.fraction
ROUTE scalar.value TO ch-1.alpha
ROUTE time.fraction TO rotation.fraction
ROUTE rotation.value TO o-1.rotation
</object>
</image>
</slide>
</slideset>
<keyboard/>
<interface/>
scene
Viewpoint { position 0 0 5 }
Background { skyColor 0.5 0.5 0.5 }
[]
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.