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-channel.vr
(wrl
)
[ flux /
bitmanagement /
cortona /
octaga
]
example channel
extern
#@proto proto-slide.vr
some text
<channel id=ch-1 color=blue w=7 h=4>
<i> <text id=t-1 text=red> how are you</text> </i>
<object s=0.5 y=-4>
Shape {
appearance Appearance {
material DEF MAT Material {
diffuseColor 1 1 1
}
}
geometry Box {}
}
</object>
</channel>
animator
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 ]
}
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
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.