Package Vrml2Sourcebook.Chapter20Lighting


package Vrml2Sourcebook.Chapter20Lighting

Lights provide virtual illumination that allows objects to be seen.

This X3D VRML2 Sourcebook examples archive is online.

By default, you have one light in the scene, attached to your head. For more realism, you can add multiple lights: suns, light bulbs, candles, flashlights, spotlights, firelight. Lights can be positioned, oriented, and colored. Lights do not cast shadows.

There are three types of lights: PointLight, DirectionalLight, and SpotLight. All lights have an on/off, intensity, ambient effect, and color fields. PointLight and SpotLight nodes have a location, radius, and attenuation. DirectionalLight and SpotLight nodes have a direction.

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 20 Lighting 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: