Hi,
I've been looking for a bug in my code for several days now but can't find it. Basically, I shine the light from above and it appears to be from the side. When I put in the standard Java3D sphere, everything works great. But with my IndexedTriangleArray, things go wrong. Please take a look at the link below. You will see that I've calculated my normals correctly. Also, I stick in the sphere and my object into the tree at the exact same time at the exact same place.
I'm going crazy trying to figure out what's wrong. Any ideas will be appreciated. Thank you!!!
http://www.geocities.com/bura3no/lighting.gif
Bura
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
