Skip to main content

SpotLight on a Box

No replies
meister_steve
Offline
Joined: 2010-11-30
Points: 0

Hi,

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: www.java-tips.org/other-api-tips/java3d/how-to-create-spot-lights-in-java3d.html . But this would be a lot more effort for my purposes.

Thanks for your replies.