• Advertisement
Sign in to follow this  

Lighting artifact

This topic is 4794 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

In this shot, the camera position is also the light position. As you can see, the lighting is split somehow; afaict, the left face of the cube is mirrored. This particular lighting method is attenuation maps with self shadowing, but the same error appears when I use dot3 lighting. I suspect it's some kind of problem with the normals, but I'm not sure what to look for. [EDIT] The same artifact appears in hardware TnL. [Edited by - Promit on January 6, 2005 7:20:51 PM]

Share this post


Link to post
Share on other sites
Advertisement
Try drawing the normals of the object and verify they point the right direction. This is most easily done by drawing a line from (vertex position) to (vertex position) + (normal).

Share this post


Link to post
Share on other sites
Some of the normals are indeed pointing in the wrong direction.

As it turns out, this box has 20 vertices. I'm not entirely sure what the hell kind of box has 20 vertices (especially given that it's indexed), but I blame MS3D.

So, solved. I guess.

Share this post


Link to post
Share on other sites
That is how MS3D handles the possibility of a discontinuous texture unwrap--which is to say in the worst possible way.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement