The VRML animation above shows a sphere. The source code is located in the file sphere1.wrl and is even more simple as before:
#VRML V2.0 utf8
Group {
children Transform {
children Shape {
appearance Appearance {
material Material {
}
}
geometry Sphere {
radius 1
}
}
translation 0 0 0
rotation 0 0 1 0
}
}
Open the file sphere1.wrl with a text editor and change
material Material {
}
into
material Material {
diffuseColor 0.8 0.4 0
}
Then save the file under the same name (it is wise to make a backup copy of the original) and reset the animation (this link you find some lines below on this page). The color is coded in the RGB way: The first number denotes the intensity of the Red color, the second of Green color and the third of Blue color. Change the numbers to get different colors!
For example, try
material Material {
diffuseColor 0.3 0.6 0.7
}
or:
material Material {
diffuseColor 0.8 0.4 0
transparency 0.25
}