cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

xernobyl
Journeyman III

OpenGL Stencil buffer artifacts...

I have the following artifacts when doing a second pass (cutting lights in a deferred  thing), using a stencil test on a GL_DEPTH_STENCIL target to cut a few pixels:

http://web.ist.utl.pt/tcf/rand/stencilcrap.png (2x crop)

I can't figure out what''s wrong, since another pass that also uses the stencil buffer seems to be working ok (or maybe the artifacts aren't so easy to see because it's a darker pass). Also, when I deactivate all the stencil test everything works fine (slower, and everywhere, but withour artifacts).

Neede a little guidance on this, please

0 Likes
6 Replies
gsellers
Staff

Hi,

We've recently fixed an issue with similar looking corruption. That fix should hit a driver update soon. If you want let us have a copy of your application, we'll verify the fix and if it's still not working, we'll debug it and figure out what the problem is.

Thanks,

Wow. Thank you for the offer, but that won't be necessary. It's not an urgent matter. I'll just imagine I'm really writing that to the stencil buffer, even if I'm clearing it, and only writing big enough triangle, and wait for that new driver version.

0 Likes
swoop
Adept I

Interesting, I was just going to post a similar problem which produced that exact same corruption. Only Im using GL_DEPTH_STENCIL with a FBO and it happens for me (also doing deferred lighting) at the end when I disable stencil and depth writes and enable depth test and blending to draw some transparent objects.

This was on the 11.9s, havent tried newer drivers yet, good to know Im not alone.

0 Likes

Let me know if and how you fix the problem

0 Likes

I've installed this preview drivers http://support.amd.com/us/kbarticles/Pages/Catalyst122Previewdriver.aspx and the problem vanished. In case you want to know.

0 Likes

Good to know, Ill have to give them a try.

0 Likes