Jump to content
  • Advertisement
Sign in to follow this  
ic0de

OpenGL Best way to do shadows in opengl

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

It would appear that there are many ways to do shadows in OpenGL, how do most games do shadows?

I'm looking for a way to do them using GLSL for multiple light sources preferably not using FBOs (I will use them if I have to).

What do you think is the best way to do shadows?

Share this post


Link to post
Share on other sites
Advertisement

Well i can think of 2 atm, shadow mapping and volumetric. Shadow mapping is simpler and fastest than the other one, but work only on a single plane, while volumetric work well for more complex scene, but are more hard to make. They may be more of course.

http://en.wikipedia..../Shadow_mapping
http://en.wikipedia....i/Shadow_volume

Nehe had some good tutorial on them.


I think shadow volumes would be more practical in this case, thanks.biggrin.gif


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!