Jump to content
  • Advertisement
Sign in to follow this  
Stoic

MSAA FBOs and wgl questions

This topic is 3036 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 all - Sorry if this is answered somewhere, but I've been Googling around for awhile, and I haven't found an explicit answer anywhere. It doesn't help that I'm still wrapping my head around exactly how MSAA works in the hardware. I'm working on adding support for FBO's to my engine. I know that support for MSAA opens up a pretty big can of worms, especially on windows, where you need to create a dummy window to get the extension function to set up the correct backbuffer format for the main window (yuck). I was wondering if, when using FBO's, you could set up a non-multisampled window(primary backbuffer), then still create MSAA-enabled renderbuffers in external FBO's, then blit them back to the primary buffer? Then you could do post processing, etc, on the resolved buffer (less expensively). Would this prevent the need to do the weird dummy window trick? Even if it is possible, would it completely waste the benefits of MSAA? Thanks for any help!

Share this post


Link to post
Share on other sites
Advertisement
Generally no-one creates a multisampled window. Post-processing passes favour that decision.
So, just:
- create a single-sampled window, just like all GL tutes do;
- create a MSAA FBO,
- clear+render to the FBO,
- resolve the FBO via glBlitFramebufferEXT() onto another FBO (but single-sampled) or to the back-buffer that comes with your window.

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!