Jump to content
  • Advertisement
Sign in to follow this  
Aqua Costa

[DirectX 10] Is this ok?

This topic is 2786 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

Im just thinking about how to do deferred lighting, can you see if this is ok?
Thanks in advance.

1-Render geometry -- Storing normals and depth -- Rendering front-to-back.

2-Create lighting map -- New render target and depth-stencil buffer.

3-Render geometry again and now add the material textures, properties, etc -- Sort the objects by material, diffuse texture, etc so when I render them I dont make many render state changes, etc and use the depth-stencil buffer from the first geometry pass so I only draw each pixel one time...

Share this post


Link to post
Share on other sites
Advertisement
Yeah, this is almost how I did it in my engine. However, I'm not sure about this part:
- 2-Create lighting map -- New render target and depth-stencil buffer.

Why would you want to create a new depth buffer for rendering the lights?
Anyways, the rest seems to be like I do it.

If you are interested, I wrote a little sample demonstrating the LightPrePass. I could upload it tomorrow if you want to take a look. S
I only wrote it to get familiar with the technique, it isn't very well written for this reason.

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!