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-object-vu-orientation.vr
(wrl
)
[ flux /
bitmanagement /
cortona /
octaga
]
Transform {
translation 0 0.55 0
children [
#Viewpoint {
# description "default"
# position -67 0.5 59
# orientation 0 1 0 0
#}
DEF CARPET Transform {
translation -67 0.5 59
children [
DEF DVP Viewpoint {
description "The Floating Disc"
position 0 1.8 0
orientation 0 1 0 0
}
# DEF CARPETTOUCH TouchSensor {
# }
Shape {
appearance Appearance {
material Material {
diffuseColor 0 0 1
transparency 0.5
}
}
geometry Cylinder {
radius 1
height 0.1
}
}
DEF CARPETPRS ProximitySensor {
center
0 1.7 0
size 1 0.6 1
}
DEF CTS TimeSensor {
cycleInterval 90
}
DEF CPI PositionInterpolator {
key [
0 .0666 .1333 .2 .2666 .3333
.4 .4666 .5333 .6 .6666 .7333 .8 .8666 .9333 1
]
keyValue [
-67 0.5 59 # op plein
-67 0.5 20 #scheikunde ingang
-121 0.5 20 #mijn ingang
-121 0.5 59
-67 0.5 59 # op plein
16 0.5 59
16 0.5
45
16 0.5 20 # beta hoofdingang
16 0.5 45
16 0.5 59
0 0.5 83
-17 0.5 113
-41 0.5 152 #hoofdgebouw restaurantingang
-41 0.5 123
-94 0.5 123 #hoofdgebouw achteringang
-67 0.5 59 # op plein
]
}
#DEF COI OrientationInterpolator {
# key [
# 0 .0666 .0667 .1333 .1334 .2 .2001 .2666 .2667 .3333 .3334 .4 .4001 .4666 .4667
# .5333 .5334 .6 .6001 .6666 .6667 .7333 .7334 .8 .8001 .8666 .8667 .9333 .9334 .9999 1
# ]
# keyValue [
# 0 1 0 3.14, 0 1 0 3.14,
# 0 1 0 4.61, 0 1 0 4.61,
# 0 1 0 0, 0 1 0 0,
# 0 1 0 1.57, 0 1 0 1.57,
# 0 1 0 1.57, 0 1 0 1.57,
# 0 1 0 3.14, 0 1 0 3.14,
# 0 1 0 3.14, 0 1 0 3.14,
# 0 1 0 0, 0 1 0 0,
# 0 1 0 0, 0 1 0 0,
# 0 1 0 -.79, 0 1 0 -.79,
# 0 1 0 -.79, 0 1 0 -.79,
# 0 1 0 -.79, 0 1 0 -.79,
# 0 1 0 3.14, 0 1 0 3.14,
# 0 1 0 4.61, 0 1 0 4.61,
# 0 1 0 2.36, 0 1 0 2.36,
# 0 1 0 3.14, 0 1 0 3.14
# ]
#}
DEF COI OrientationInterpolator
{
key [
0 .0666 .0667 .1333 .1334 .2 .2001 .2666 .2667 .3333 .3334 .4 .4001 .4666 .4667
.5333 .5334 .6 .6001 .6666 .6667 .7333
.7334 .8 .8001 .8666 .8667 .9333 .9334 .9999 1
]
keyValue [
0 1 0 0, 0 1 0 0,
0 1 0 1.57, 0 1 0 1.57,
0 1 0 3.14, 0 1 0 3.14,
0 1 0 4.61, 0 1 0
4.61,
0 1 0 4.61, 0 1 0 4.61,
0 1 0 0, 0 1 0 0,
0 1 0 0, 0 1 0 0,
0 1 0 3.14, 0 1 0 3.14,
0 1 0 3.14, 0 1 0 3.14,
0 1 0 2.36, 0 1 0 2.36,
0 1 0 2.36, 0 1 0 2.36,
0 1 0 2.36, 0 1 0 2.36,
0 1 0 0, 0 1 0 0,
0 1 0 1.57, 0 1 0 1.57,
0 1 0 -.79, 0 1 0 -.79,
0 1 0 0, 0 1 0 0
]
}
]}
ROUTE CTS.fraction_changed TO CPI.set_fraction
ROUTE
CTS.fraction_changed TO COI.set_fraction
ROUTE CPI.value_changed TO CARPET.set_translation
ROUTE COI.value_changed
TO CARPET.set_rotation
# bind avatar to timer or proximity sensor
# comment one, uncomment the other
#ROUTE CTS.isActive TO DVP.set_bind
ROUTE CARPETPRS.isActive TO DVP.set_bind
DEF POLE Transform {
translation -66 0.75 54
children
[
Group {
children [
Transform {
children [
Shape {
appearance Appearance {
material Material {
ambientIntensity 0.200
shininess
0.200
diffuseColor 1.0 1.0 1.0
}
}
geometry Cylinder {
height 1.500
radius 0.100
}
}
]
}
Anchor {
description "Press button
to make a tour around the VU Campus"
url "#DVP"
children [
DEF BUTTONTOUCH TouchSensor {
}
Transform {
translation -0.01193 0.48587
0.0809
rotation 1.0 0.0 0.0 1.571
children [
Shape {
appearance Appearance {
material Material {
ambientIntensity 0.200
shininess 0.200
diffuseColor 1.0 0.0 0.0
}
}
geometry Cylinder {
height 0.080
radius 0.040
}
}
]
}
]
}
]
}
]
}
ROUTE BUTTONTOUCH.touchTime
TO CTS.set_startTime
#ROUTE BUTTONTOUCH.isActive TO DVP.set_bind
ROUTE DVP.position TO VP1.position
]
}
Transform {
translation 0 0.55 0
children [
DEF FCARPET Transform
{
translation 41 0.2 56
children [
DEF FVP Viewpoint {
description "The Flying Disc"
position 0 1.8 0
orientation 0 1 0 0
}
# DEF FCARPETTOUCH TouchSensor {
# }
Shape
{
appearance Appearance {
material Material {
diffuseColor 0 0 1
transparency 0.5
}
}
geometry Cylinder {
radius 1
height
0.1
}
}
DEF FCTS TimeSensor {
cycleInterval 90
}
DEF FCPI PositionInterpolator {
key [
0 .0666 .1333 .2 .2666 .3333 .4 .4666
.5333 .6 .6666 .7333 .8 .8666 .9333 1
]
keyValue [
41 0.2 56 # starting point
41 6 56
41 12 56
-19 14 106
-56 14 120
-91 6 90
-150 6 75
-157 6 65
-157 22 65
-110 22 40
-86 6 72
-57 10 66
-43 6 82
0 6 72
20 6 64
41 0.2 56 # starting point
]
}
#DEF FCOI OrientationInterpolator {
# key [
# 0 .0666 .0667 .1333 .1334 .2 .2001 .2666 .2667 .3333 .3334 .4 .4001 .4666 .4667
# .5333 .5334 .6 .6001 .6666 .6667 .7333 .7334 .8 .8001 .8666 .8667 .9333 .9334 .9999 1
# ]
# keyValue [
# 0 1 0 3.14, 0 1 0 3.14,
# 0 1 0 4.61, 0 1 0 4.61,
# 0 1 0 0, 0 1 0 0,
# 0 1 0 1.57, 0 1 0 1.57,
# 0 1 0 1.57, 0 1 0 1.57,
# 0 1 0 3.14, 0 1 0 3.14,
# 0 1 0 3.14, 0 1 0 3.14,
# 0 1 0 0, 0 1 0 0,
# 0 1 0 0, 0 1 0 0,
# 0 1 0 -.79, 0 1 0 -.79,
# 0 1 0 -.79, 0 1 0 -.79,
# 0 1 0 -.79, 0 1 0 -.79,
# 0 1 0 3.14, 0 1 0 3.14,
# 0 1 0 4.61, 0 1 0 4.61,
# 0 1 0 2.36, 0 1 0 2.36,
# 0 1 0 3.14, 0 1 0 3.14
# ]
#}
DEF FCOI OrientationInterpolator {
key [
0 .0666 .0667 .1333 .1334
.2 .2001 .2666 .2667 .3333 .3334 .4 .4001 .4666 .4667
.5333 .5334 .6 .6001 .6666 .6667 .7333 .7334 .8 .8001 .8666 .8667 .9333
.9334 .9999 1
]
keyValue [
0 1 0 0, 0 1 0 0,
0 1 0 1.57, 0 1 0 1.57,
0 1 0 3.14, 0 1 0 3.14,
0 1 0 4.61, 0 1 0 4.61,
0 1 0 4.61, 0 1 0 4.61,
0 1 0 0, 0
1 0 0,
0 1 0 0, 0 1 0 0,
0 1 0 3.14, 0 1 0 3.14,
0 1 0 3.14, 0 1 0 3.14,
0 1 0 2.36, 0 1 0 2.36,
0 1 0 2.36, 0 1 0 2.36,
0 1 0 2.36, 0 1 0 2.36,
0 1 0 0, 0 1
0 0,
0 1 0 1.57, 0 1 0 1.57,
0 1 0 -.79, 0 1 0 -.79,
0 1 0 0, 0 1 0 0
]
}
]}
#ROUTE FCARPETTOUCH.touchTime TO FCTS.set_startTime
ROUTE FCTS.fraction_changed TO FCPI.set_fraction
ROUTE FCTS.fraction_changed
TO FCOI.set_fraction
ROUTE FCPI.value_changed TO FCARPET.set_translation
ROUTE FCOI.value_changed TO FCARPET.set_rotation
ROUTE
FCTS.isActive TO FVP.set_bind
ROUTE FCARPET.rotation TO FVP.orientation
DEF FPOLE Transform {
translation 42 0.75 53
children [
Group {
children [
Transform {
children [
Shape {
appearance Appearance {
material Material {
ambientIntensity
0.200
shininess 0.200
diffuseColor 1.0 1.0 1.0
}
}
geometry Cylinder {
height 1.500
radius 0.100
}
}
]
}
Anchor {
description
"Press button to make a tour through the sky"
url "#FVP"
children [
DEF BUTTONTOUCH2 TouchSensor {
}
Transform {
translation -0.01193
0.48587 0.0809
rotation 1.0 0.0 0.0 1.571
children [
Shape {
appearance Appearance {
material Material {
ambientIntensity
0.200
shininess 0.200
diffuseColor 1.0 0.0 0.0
}
}
geometry Cylinder {
height 0.080
radius 0.040
}
}
]
}
]
}
]
}
]
}
ROUTE BUTTONTOUCH2.touchTime
TO FCTS.set_startTime
#ROUTE BUTTONTOUCH.isActive TO DVP.set_bind
]
}
Transform {
translation 0 0 -100
children [
Transform {
translation 0 5 0
children [
DEF TREELIMIT
Shape {
appearance Appearance {
material Material {
diffuseColor 0 1 0
}
texture ImageTexture {
url "vr/object/vu/textures/trees.png"
}
textureTransform TextureTransform {
scale 10 1
}
}
geometry Box {
size 470 10 0.5
}
}
Transform {
translation 235 0 235
rotation
0 1 0 1.57
children [
USE TREELIMIT
]
}
Transform {
translation -235 0 235
rotation 0 1 0 -1.57
children [
USE TREELIMIT
]
}
Transform
{
translation 0 0 370
children [
USE TREELIMIT
]
}
# Transform {
# translation 0 120 235
# rotation 1 0 0 -1.57
# children [
# Shape {
# appearance Appearance {
# material Material {
# diffuseColor 0.10 0.20 0.90
# }
# texture ImageTexture {
# url "vr/object/vu/textures/sky3.png"
# }
# }
# geometry Box {
# size 470 470 0.5
# }
# }
# DirectionalLight {
# direction 0 1 0
# on TRUE
# intensity 1.0
# ambientIntensity 0.75
# }
# ]
# }
Transform {
translation 0 80 0
children [
DEF SKYLIMIT Shape {
appearance
Appearance {
material Material {
diffuseColor 0.10 0.20 0.90
}
texture ImageTexture {
url "vr/object/vu/textures/sky.png"
}
}
geometry
Box {
size 470 150 0.5
}
}
]
}
Transform {
translation 235 80 235
rotation 0 1 0 1.57
children [
USE SKYLIMIT
]
}
Transform {
translation
-235 80 235
rotation 0 1 0 -1.57
children [
USE SKYLIMIT
]
}
Transform {
translation 0 80 370
children [
USE SKYLIMIT
]
}
]
}
Transform
{
translation 0 0 0
children [
Transform {
translation 0 80 25
children [
DEF INVISIBLE Shape {
appearance Appearance {
material
Material {
transparency 1
}
}
geometry Box {
size 470 160 0.5
}
}
]
}
Transform {
translation 220 80 235
rotation 0 1 0 1.57
children
[
DEF INVISIBLE Shape {
appearance Appearance {
material Material {
transparency 1
}
}
geometry Box {
size 470 160 0.5
}
}
]
}
Transform {
translation -234 80 235
rotation 0 1 0 -1.57
children [
DEF INVISIBLE Shape {
appearance Appearance {
material
Material {
transparency 1
}
}
geometry Box {
size 470 160 0.5
}
}
]
}
Transform {
translation 0 80 355
children [
DEF INVISIBLE
Shape {
appearance Appearance {
material Material {
transparency 1
}
}
geometry Box {
size 470 160 0.5
}
}
]
}
Transform {
translation
0 110 235
rotation 1 0 0 -1.57
children [
Shape {
appearance Appearance {
material Material {
transparency 1
}
}
geometry Box
{
size 470 470 0.5
}
}
]
}
]
}
]
}
<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.