Archived

This topic is now archived and is closed to further replies.

Shadows

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

I was programming one night, and a great minidemo popped into my mind. But to make it, I would need good shadows. Silly me, when I added lighting, I thought shadows would follow. Oops. Could someone help me out, and post some code for shadows. I know its not easy, and I''ve looked around the net a little, but to no avail. Thanks, The Kid

Share this post


Link to post
Share on other sites
Shadows can be as simple or as complex as you like. The end result depends on how you implement them and how you really wish to see them.

A simple method can be found in the OpenGL Superbible which creates a shadow matrix, but this requires that the shadow be cast onto a flat surface.
(http://www.itknowledge.com/reference/archive/1571690735/ewtoc.html)

Some more advanced shadow casting effects can be found here:
http://www.r3.nu/~cass/shadowsandstuff/

Or try and to a search on ''shadow'' at http://www.opengl.org

Maybe I''ll stick a tutorial together for NeHe to post - anybody interested?

--Andy
http://opengl.koolhost.com

Share this post


Link to post
Share on other sites
That would be great if you could put together a tutorial on shadows, I know I would read it.

The Kid

I don''t know what the future holds, but I know who holds the future.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
That would help out lots of people!

This goes to all guru programmers:

Please do tutorials for NeHe! They are well laid out and easy to understand. Help us newbies and one day we could help you!

Thanks

Share this post


Link to post
Share on other sites

Ok, I''ll start putting one together.

Are there any specifics about shadows that people would like to see? Remember though that some methods are far out of the reach of beginners.

--Andy

Share this post


Link to post
Share on other sites