• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Lighting

There are four basic types of lighting in Java 3D. If you've already read the chapter on lighting in VRML (Chapter 9, "Customizing Light, Background, Fog, and Sound" ), Java 3D's directional lights, point lights, and spot lights will seem quite familiar. There's also an ambient light, which has no explicit equivalent in VRML. In VRML, ambient light is a result of the ambient contribution from each of the light sources in the scene, whereas in Java 3D it's actually created explicitly.

All Java 3D lighting nodes are derived from an abstract Light base class. As a result, all Java 3D lights have an influencing bounds region, an on/off flag, and a color. Naturally, each type of light has unique features as well.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint