Jump to content
  • Advertisement
Sign in to follow this  
paalnils

Shadows

This topic is 4486 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 Im wondering if anyone could give me any tips on what shadow techniques would be recommended in a game with a large world, for example a car racing game taking place in a big city. I can assume that the game is played on the newest graphics hardware avalible. Im willing to sacrifice some visuell apperance for performance The technique must be implementable in OpenGL I really appreciate any imputs Pål- Arve Nilsen

Share this post


Link to post
Share on other sites
Advertisement
You could take a look at stencil volume shadows and shadow maps. There are a lot of examples on the internet for both techniques.

The first one extrudes object edges (as seen from the light) and uses these volumes and the stencil buffer to determine which pixels are lit and which are not.

With shadow maps you draw the depth of the scene as seen from the light to a texture and use it check wether a fragment on a polygon is lit or not. There are other methods.

The advantage of volume shadows is that you don't need to render extra textures and it's easy to use for spot lights and omni directional lights (point lights), omnidirectional shadow maps are possible but it requires rendering more depth textures.

I dont have much experience with shadow maps myself so someone else will have to tell you the advantages of it.

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!