147-2
03-03-2003, 09:06 AM
I just got done cleaning up all the odd little shadowing problems, I decided to use Carmack's reverse, since it was a lot easier to cap both ends, slam it to a display list and forget about it (unless something changes, like light or mesh position).
Anyways, since the beginning of my programming the shadows in, I have had this strange shimmering artifact, almost like it's depth fighting. Usually it's only apparent when the camera is moving, but sometimes I can convince it to stick its ugly head out so I can get a screenshot. http://www.bloodyaxes.com/artifacts.jpg That's a pretty ugly pic of the artifact, it actually took quite a long time to "find" one this bad. Usually its pretty clean looking... http://www.bloodyaxes.com/shadows3.jpg
Now a little background. I am doing an initial draw with the color buffer disabled, drawing to the depth buffer. Then I do each light, first clearing the stencil buffer, then drawing shadows, then drawing in the scene, lit from the one light. Then I move to the next light, and repeat the process. Like I said earlier, Im using Carmack's Reverse to do the shadows, that way I dont have to deal with near plane, and it makes the shadow fit nicely into a display list.
I suppose this is a depth fighting artifact. Im wondering if there is a clean solution to this type of problem.
Anyways, since the beginning of my programming the shadows in, I have had this strange shimmering artifact, almost like it's depth fighting. Usually it's only apparent when the camera is moving, but sometimes I can convince it to stick its ugly head out so I can get a screenshot. http://www.bloodyaxes.com/artifacts.jpg That's a pretty ugly pic of the artifact, it actually took quite a long time to "find" one this bad. Usually its pretty clean looking... http://www.bloodyaxes.com/shadows3.jpg
Now a little background. I am doing an initial draw with the color buffer disabled, drawing to the depth buffer. Then I do each light, first clearing the stencil buffer, then drawing shadows, then drawing in the scene, lit from the one light. Then I move to the next light, and repeat the process. Like I said earlier, Im using Carmack's Reverse to do the shadows, that way I dont have to deal with near plane, and it makes the shadow fit nicely into a display list.
I suppose this is a depth fighting artifact. Im wondering if there is a clean solution to this type of problem.