Advertisement Jump to content


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


Static Shadows

This topic is 6340 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''ve been working on a landscape engine for a while, and now I''m ready to start working on handling shadows. The game that this engine is being designed for will likely have a relatively high number of polygons being rendered every frame, so speed is especially important. Right now I just want to work on handling shadows for static objects, such as trees, rocks, buildings, etc. basically everything that can have precalculated shadows. Later I will work on handling the shadows for character models and other non-static geometry, so if there is a good method for doing the static stuff that could be extended to do very basic (again, speed is of the essence) dynamic shadows, all the better. I''m looking for (detailed) descriptions of possible techniques, or links to sites that might help. I haven''t had much luck doing searches for shadows. None of what I found was appropriate for something this simple. I''d really appreciate any help.

Share this post

Link to post
Share on other sites
I used to use lightmaps for static shadows. To generate
a lightmap I would color-code all objects (so that terrain is, say, white, while trees and stuff are black) and render a square fragment of terrain (with trees etc) as it would be seen from the light''s point of view. Then I''d render this same fragment as seen from top straight down, using previously rendered light-view image as projected texture. Then I''d just smooth the final image.

That''s a very simple method ''cos it doesn''t handle self-shadowing terrain nor can it tolerate low-aspect light sources (like setting sun, for instance)

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!