Skip to main content

SpotLight on a Box

No replies
Joined: 2010-11-30


I've got a problem: When I create a simple com.sun.j3d.utils.geometry.Box (with GENERATE_NORMALS set in the constructor) and light it with a SpotLight, one only sees the spot when it lights on the corner of the box. On planes and edges one sees nothing. In the same scene configuration with a Sphere in it, there is the expected behaviour with a spot on the Sphere from whereever it lights. Is this a bug? Is there a simple solution?

I know that it works with normals set manually like this: . But this would be a lot more effort for my purposes.

Thanks for your replies.