Sign in to follow this  
Florian22222

Deferred Renderer

Recommended Posts

Florian22222    618
Hey!

I want to make a deferred renderer with directx9. I know how it works etc.
First i will render into a texture without lighting(contains diffuse) and store other information like material,normal in another texture.
Then i will draw the texture on the screen and in the pixelshader i will calculate the lighting.

Is this the right approach or is there an easier way?

Share this post


Link to post
Share on other sites
Aqua Costa    3692
Google "Deferred Rendering" and you'll find a lot of discussions about it... You can check [url="http://www.catalinzima.com/tutorials/deferred-rendering-in-xna/"]this link[/url] to learn how to do it.

One optimization is to store only depth instead of the complete position and [url="http://mynameismjp.wordpress.com/2010/09/05/position-from-depth-3/"]reconstruct each pixel position[/url] in the lighting pass using the depth. Edited by TiagoCosta

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this