April 01, 2002
The MPEG-4 Java API & MPEGlets
#VRML V2.0 utf8
Group {
children [
Shape {
appearance Appearance {
material Material { }
}
geometry Cone { }
}
DEF TOUCH TouchSensor { } # define the sensor
DEF LIGHT DirectionalLight { # define the light
color 0 1 0
on FALSE
}
]
ROUTE TOUCH.isOver TO LIGHT.set_on
}
Example 1: Defining nodes in VRML (DEFed nodes).
|
|
||||||||||||||||||||||||||||
|
|