How it works
To learn more about 'Virtual Reality Modeling Language' see 'general informations'.
cube base
#VRML V2.0 utf8
Shape {
appearance Appearance {
material Material {}
}
geometry Box {}
}
cube with background
#VRML V2.0 utf8
Background {skyColor 0.5 0.5 1.0}
Transform {
children [
Shape {
appearance Appearance {
material Material {}
}
geometry Box {}
}
]
translation 3.0 0.0 0
}
cube with horizon
#VRML V2.0 utf8
Background {
skyColor [
0.0 0.1 0.8,
0.0 0.5 1.0,
1.0 1.0 1.0
]
skyAngle [0.785, 1.571]
groundColor [
0.0 1.0 0.8,
0.0 0.6 0.0,
0.0 0.4 0.3
]
groundAngle [0.785, 1.571]
}
Transform {
children [
Shape {
appearance Appearance {
material Material {}
}
geometry Box {}
}
]
translation 3.0 0.0 0
}
Your browser may not support all features required by X_ITE. For a better experience, keep your browser up to date. Check here for latest versions.
cube with sloping horizon
#VRML V2.0 utf8
Background {
skyColor [
0.0 0.1 0.8,
0.0 0.5 1.0,
1.0 1.0 1.0
]
skyAngle [0.785, 1.571]
groundColor [
0.0 1.0 0.8,
0.0 0.6 0.0,
0.0 0.4 0.3
]
groundAngle [0.785, 1.571]
}
Viewpoint {
description "view1"
orientation 0 10 10 0.5 #Drehachse 0 0 1 und Drehwinkel um diese Achse
}
Transform {
children [
Shape {
appearance Appearance {
material Material {}
}
geometry Box {}
}
]
translation 3.0 0.0 0
}
walking cube
#VRML V2.0 utf8
Viewpoint {
description "view1"
orientation 0 10 10 0.0
}
DEF Wuerfel Transform {
children [
Shape {
appearance Appearance {
material Material { #
ambientIntensity 0.4 #
diffuseColor 1 1 1 #
emissiveColor 0 0 0 #
specularColor 0 0 0 #
shininess 0.01 #
transparency 0 #
}
texture ImageTexture { #
url "maps/whiteash.jpg" #
repeatS TRUE #
repeatT TRUE #
}
}
geometry Box {}
}
]
translation 0.0 0.0 0
}
DEF Interpolator PositionInterpolator {
key [ 0.0 0.75 1.0 ]
keyValue [
0.0 0.0 0.0,
0.0 2.0 0.0,
0.0 0.0 0.0
]
}
DEF Uhr TimeSensor {
enabled FALSE
cycleInterval 5.0
loop TRUE
}
DEF Schalter TouchSensor {}
ROUTE Schalter.isActive TO Uhr.set_enabled
ROUTE Uhr.fraction_changed TO Interpolator.set_fraction
ROUTE Interpolator.value_changed TO Wuerfel.set_translation
Your browser may not support all features required by X_ITE. For a better experience, keep your browser up to date. Check here for latest versions.
color changing
#VRML V2.0 utf8
Viewpoint {
description "view1"
orientation 0 10 10 0.0
}
DEF Wuerfel Transform {
children [
Shape {
appearance Appearance {
material DEF MYMAT Material { #
ambientIntensity 0.4 #
diffuseColor 1 1 1 #
emissiveColor 0 0 0 #
specularColor 0 0 0 #
shininess 0.01 #
transparency 0 #
}
}
geometry Box {}
}
]
translation 0.0 0.0 0
}
DEF Interpolator ColorInterpolator {
key [ 0.0 0.5 1.0 ]
keyValue [
0.0 0.0 1.0,
0.0 1.0 0.0,
1.0 0.0 0.0
]
}
DEF Uhr TimeSensor {
cycleInterval 5.0
loop TRUE
}
DEF Schalter TouchSensor {}
ROUTE Uhr.fraction_changed TO Interpolator.set_fraction
ROUTE Interpolator.value_changed TO MYMAT.set_diffuseColor
Your browser may not support all features required by X_ITE. For a better experience, keep your browser up to date. Check here for latest versions.