Jump to content

View more

Image of the Day

Inventory ! Va falloir trouver une autre couleur pour le cadre D: #AzTroScreenshot #screenshotsaturday https://t.co/PvxhGL7cOH
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Deferred shading and MSAA

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 KaiserJohan   Members   

2265
Like
0Likes
Like

Posted 16 June 2014 - 04:50 AM

I'm trying to tackle MSAA in deferred shading.

Here' my current deferred shading pipeline:
 

Code :
1. Geometry stage - Render geometry to textures (position/normals/diffuse)
2. Shading stage - all output is rendered & blended into a "final texture"
  2.1 Render ambient light
  2.2 Render directional lights and shadows
  2.3 Render point lights and shadows
3. BlitFramebuffer() on the final texture
4. Swapbuffers and repeat 1.

In 2.1, 2.2 and 2.3 I need to read gbuffer textures (position/normals/diffuse) to do the lighting and shadowing.

My question is now, how do I most effectively accomplish MSAA (or any other form of good AA)? Do I have to read a number of samples in all the 3 shading passes (2.1, 2.2 and 2.3: sounds expensive!) or what? Is there any hardware support on can use?



#2 HappyCoder   Members   

5030
Like
0Likes
Like

Posted 16 June 2014 - 01:19 PM

It seems like the most common approach is to do an edge detection, based on the depth and the normals, and blur the image a little around the edges.

 

http://visual-computing.intel-research.net/publications/papers/2009/mlaa/mlaa.pdf

http://en.wikipedia.org/wiki/Fast_approximate_anti-aliasing


Edited by HappyCoder, 16 June 2014 - 01:20 PM.

My current game project Platform RPG




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.