Jump to content
  • Advertisement
Sign in to follow this  
Shinpou

glReadPixel selection + driver forced anti-aliasing

This topic is 2992 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

Hey all :) Ok so I made selection to my pet game project using color picking. However, I got some extremely weird behaviour, when I would have two quads very close to eachother and slightly to the distance - when I would move my mouse to the intersection of these two quads, glReadPixel would return something of an average value of these two. Now, I disabled everything for the time I render the colored quads, but frankly never got around the error, till I thought - what if the driver is forcing anti-aliasing. And it did indeed, and thus the inaccuracy is now gone. (Aka. I had enabled 2x anti-aliasing from the driver settings to be forced) That problem being fixed, it still remains a problem, that my game will not work if someone enables forced AA. Question thus is, what can I do to not let the forced AA happen? Best regards, Lari

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by Shinpou
That problem being fixed, it still remains a problem, that my game will not work if someone enables forced AA. Question thus is, what can I do to not let the forced AA happen?

Render your selection buffer to an FBO. Forced AA will not apply to FBOs, it has to be specifically enabled for them.

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!