Jump to content
  • Advertisement
Sign in to follow this  
Endemoniada

Disable MSAA for Rendering Depth and Normals ?

This topic is 1032 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 guys,

 

When I render (generate) my depth and normals to a screen-sized texture for post-processing stuff like SSAO (not for deferred rendering) do I turn off MSAA ? If not, do I have to resolve the depth and normal textures I generated ?

 

I'm confused.

 

Thanks.

 

Share this post


Link to post
Share on other sites
Advertisement

Using a built-in resolve on "data" (as opposed to "images") usually doesn't make any sense / doesn't give a sensible result.

 

You should either not use MSAA for these kinds of textures, OR, you need to manually read each of the sub-pixel samples and perform your shading algorithm on each sub-pixel sample, instead of on each pixel! The latter is obviously much slower (the same cost as brute-force super-sampling), so you generally need to use a technique that detects if a pixel is on the edge of a triangle or not, and only perform this sub-pixel accurate shading on edge pixels.

 

e.g. here's a sample that does this for a gbuffer:

http://humus.name/index.php?page=3D&ID=81

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!