




![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Transparency

The rotating cube animation was made with red edges to accentuate the shape. This cube is semi-transparent, with a setting of 0.5. The transparency field can be applied to any shape. A setting of 0.0 makes the object opaque, with no transparency. A setting of 1.0 makes the object completely transparent. Please take notice that this script is for a box and is exactly the same as the file you have previously downloaded in the Geometry section. The only difference is the addition of one line "transparency 0.5". Start Wordpad and open box.wrl, or any of the shapes, and insert this bit of code. You might want to save this file under a new name. Don't forget to save it as "newname.wrl". Always save new files with .wrl attached.
#VRML V2.0 utf8
Shape {
appearance Appearance {
material Material {
diffuseColor 0.0 1.0 0.0
transparency 0.5
}
}
geometry Box {
size 1.0 3.0 5.0
}
}