Shadow Mapping - Self-Shadowing Z-Fighting Artifacts
Got sidetracked by normal mapping and lighting bugs...
I managed to get the artifacts down to a reasonable level. I was overthinking the artifacts on the back side of models. Those of course shouldn't ever be seen since the diffuse will be dark/black for those polygons anyway. I tried arekkusu's Shader Builder test, and it turns out the X1900 doesn't do hardware PCF (or I don't have it setup right). So I added the PCF sampling into the shader and that got rid of 99% of the artifacts that were still bugging me. I'm just not bothering with glPolygonOffset for now. I just can't find good numbers that don't cause more problems than they solve.
I managed to get the artifacts down to a reasonable level. I was overthinking the artifacts on the back side of models. Those of course shouldn't ever be seen since the diffuse will be dark/black for those polygons anyway. I tried arekkusu's Shader Builder test, and it turns out the X1900 doesn't do hardware PCF (or I don't have it setup right). So I added the PCF sampling into the shader and that got rid of 99% of the artifacts that were still bugging me. I'm just not bothering with glPolygonOffset for now. I just can't find good numbers that don't cause more problems than they solve.
Correct, X1900 does not support PCF.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| 2d shadow blending problems | tesil | 1 | 4,685 |
Mar 17, 2011 10:12 AM Last Post: Skorche |
|
| iPhone 3GS Shadowing Bug | Bersaelor | 6 | 9,530 |
Dec 28, 2010 04:08 PM Last Post: jarodl |
|
| OpenGL ES 2.0, 2D Alpha Transparency Artifacts | Macmenace | 3 | 6,090 |
Mar 28, 2010 11:18 PM Last Post: AnotherJake |
|
| Shadowing bug | TomorrowPlusX | 6 | 4,137 |
Feb 1, 2010 12:00 PM Last Post: DoG |
|
| Replacing edges with degenerate quads (for shadow volumes) | Coyote | 9 | 6,410 |
Jan 15, 2010 07:08 PM Last Post: Coyote |
|

