Jump to content
  • Advertisement
Sign in to follow this  
ultrablox

OpenGL Deferred shading with stencil-routed A-Buffer

This topic is 2297 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!
The only question is - how? After reading forums, I found many old similar themes, where the conclusion was that the approach was not good on current hardware. But now we can use texture arrays to store many fragments per render-pass. So - it is possible, even with memory or performance limitations. But maybe deferred rendering is suitable only for opacue objects? I think about starting to implement deferred shading with FAT-FAT-FAT G-buffer, where MRT is replaced with storing data in 3d-textures like in http://www.geeks3d.com/20100610/3d-programming-fast-a-buffer-algorithm-demo-using-opengl-4-0/ , but I am very afraid, that in final after two weeks of hard work it will be slow ugly shit. Can you advice anything or give me a useful link?

Share this post


Link to post
Share on other sites
Advertisement
AFAIK, you can't bind an entire texture-array or 3D texture as a render-target (only a single 2D slice), so these don't extend the capability of MRT to allow FAT-FAT-FAT G-buffers, beyond existing MRT limits.

The a-buffer in your link is implemented using "unordered access views" (That's the D3D name, not sure what these are called in GL).
Here's another description: http://blog.icare3d....d-lists-of.html

A technique similar to the stencil-routed approach is used in "inferred lighting", and works fairly well for up to 4 layers of geometry in a deferred implementation. Edited by Hodgman

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!