Jump to content

  • Log In with Google      Sign In   
  • Create Account

Best way to do shadows in opengl


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 ic0de   Members   -  Reputation: 909

Like
0Likes
Like

Posted 12 December 2011 - 08:30 PM

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?

you know you program too much when you start ending sentences with semicolons;


Sponsor:

#2 Vortez   Crossbones+   -  Reputation: 2704

Like
0Likes
Like

Posted 12 December 2011 - 09:50 PM

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.

#3 ic0de   Members   -  Reputation: 909

Like
0Likes
Like

Posted 12 December 2011 - 09:56 PM

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.Posted Image



you know you program too much when you start ending sentences with semicolons;





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS