Shadow Mapping Problems

Started by
1 comment, last by HellRaiZer 20 years ago
Hello... I'm trying to implement hardware shadow mapping (ARB_shadow,ARB_depth_texture), but i have some problems. Problem 1 Problem 2 Depth Buffer As you can see from the screenshots the depth buffer is ok,and the projection works(shadows are in place). In screenshot "Problem 2" i don't use PolygonOffset.When i use PolygonOffset, the Problem 2 disappeared,but "Problem 1" came up. Is this a known problem??? How can i fix it? What do i forget to do ? Thanks in advance. HellRaiZer. [edited by - Hellraizer on March 22, 2004 7:42:26 AM]
HellRaiZer
Advertisement
Hmmm... Perhaps a z fighting issue? How about using glDepthFunc( GL_EQUAL )?

You have to remember that you''re unique, just like everybody else.
If at first you don't succeed, redefine success.
I think using GL_CLAMP_TO_EDGE (not sure if thats exactly right) for the shadow texture might solve the problem in the first image.

Ah, its GL_CLAMP. Take a look here (paulsprojects.net) for a pretty good shadow mapping tutorial.

This topic is closed to new replies.

Advertisement