The LightTest example application allows you to interactively modify lighting parameters and view the results.Ĭareful use of lights can make the difference between a flat, unconvincing 3D scene and an atmospheric, immersive virtual reality. You can also refer to the ebook edition of this book, available from the publisher’s web site at, which contains color illustrations.
#JAVA 3D BOOKS FULL#
You’ll want to run the example application to see the color illustrations for the full effect.
The illustrations give an indication of the lighting effects that are possible using Java 3D and provide a starting point for designing your own scene lighting. Because lights can also be computationally expensive, you need to use them carefully and ensure you are striking the right balance between frame rate and responsiveness on the one hand and a richly shaded scene on the other.įigures 10.2 through 10.15 show a scene viewed under different lighting conditions. The second problem is aesthetic and involves making artistic decisions regarding how you want your scene to appear. The first is to understand how lighting is calculated, as well as understanding the mechanics of setting up lighting parameters and doing the necessary programming. There are two basic problems with setting up lighting for your scene.
The lights that you choose for your scene can have a profound impact, making it appear, for examples, highly atmospheric or almost photographically realistic or flat and artificial. Lighting is an important topic in 3D graphics. Java 3D Programming.Chapter 10 CHAPTER 10 Lightsġ0.7 Lighting, material attributes, and per-vertex colors