Package Vrml2Sourcebook.Chapter10Materials
Appearance and Material nodes control a shape's shading color (diffuseColor), glow color (emissiveColor), transparency, shininess, and ambient intensity.
Colors specify a mixture of red, green, and blue (RGB) light with component values between 0.0 (none) and 1.0 (lots). ColorInterpolator can animate color values, and ScalarInterpolator can animate transparency values.
These X3D scenes are adapted directly from the original VRML 2.0 Sourcebook chapter examples. Also available: Introduction to VRML97 SIGGRAPH98 course notes.
This X3D VRML2 Sourcebook Chapter 10 Materials examples archive is online.
The X3D Java Scene Access Interface (x3djsail) package provides concrete classes for each X3D node and statement.
Online: X3D Java Scene Access Interface Library (X3DJSAIL) and X3DJSAIL Javadoc
- See Also:
-
ClassDescriptionBright red sphere, showing use of Appearance and Material.A simple, multicolored space station.A multicolored space station where color of the center sphere animates from red, to green, to blue, and back to red by utilizing ColorInterpolator outputs.A lightbulb that varies in brightness as the pointing device is held over the socket.A blinking sphere, controlled using a ColorInterpolator.Three blinking shapes, each controlled using independent ColorInterpolator nodes.A simple space station with a half-transparent central sphere.A simple space station with a central sphere whose transparency is animated using a ScalarInterpolator.