FBO depth test failing
When rendering to an FBO color buffer, it seems as though my depth test is failing... Polygons that are behind others are being rendering as if they're in front of them which gives weird looking objects. Do I have to respecificy to glEnable(depthtest) and whatnot? I'm already clearing the buffer before rendering to them, color to 0,0,0,0, depth to 1, and stencil to 0. oh and also it renders upside down, is there a way to fix that?
Also, when I render that texture onto a quad, the image is completely distorted... Almost like a fish eye, it seems as though the middle is pinched down vertically and the sides are spread out
Do you have a depth buffer attached to the FBO right? Either a depth texture or a depth renderbuffer is fine.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement