Sign in to follow this  

2D Day/Night Cycle with Shadows - XNA

This topic is 1733 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,

 

I'm wondering if anyone has managed to make a day/night cycle with shadows. I've implemented the Catalin's dynamic shadows (http://www.catalinzima.com/samples/dynamic-2d-shadows/) but I can't seem to get the looks of the sun moving through the sky.

 

Any help, or ideas on how I could use on of the light sources to create a sun.

 

Thanks

Share this post


Link to post
Share on other sites

The very first thing, that might even be enough for your purposes, would be to make the sun move along the half-circle - thus you'd get the longest shadows at both ends (e.g. sunrise and sunset) and almost no shadows at all at noon (in the middle of the half-circle), with shadows getting shorter in the first half of the half circle and shadows getting longer as it progresses through the second half of half-circle.

Share this post


Link to post
Share on other sites

This topic is 1733 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this