Jump to content
  • Advertisement
Sign in to follow this  

OpenGL FBO is affecting depth buffer and making gluUnproject incorrect

This topic is 2922 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there,
I've already posted this issue at OpenGL discussion board but still unable to solve it.

I hope somebody here would be able to help !

The story is that I'm adding a glow effect to my scene. I am exactly reproducing Nvidia sample :


(4th sample : simple glow)

Except that I rely on gluUnproject to allow picking of objects.

However after I add the effect (ie blend the FBO to framebuffer) I get behavior similar to when GL_DEPTH_TEST is disabled.

So it is like FBO is affecting depth buffer upon which gluUnproject relies.

So what would be the solution ?

Thank you in advance.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!