< Zurück | Inhalt | Weiter >

Influencing bounds

A Bounds object is associated with each Light. The Bounds object defines the zone of influence for the Light. Note that for Lights that possess positional information (SpotLight and PointLight) the Bounds is completely independent of the position of the Light. It is the application developer’s responsibility to ensure that the Bounds of the Light and the position of the Light correspond in some

sensible application−specific manner.


Figure 10.1 The LightTest example program allows you to interactively modify lighting parameters for the four types of light object in Java 3D: SpotLight, DirectionaLight, PointLight, and AmbientLight. The Cone at the top left of the figure depicts the SpotLight, the small Sphere at the top middle of the figure depicts a PointLight, while the large cone at the center of the scene depicts the DirectionalLight’s direction vector