September 5, 2008

Sunsetting

Took a very simple take on how to do day and night cycles here:

http://www.phys.uu.nl/~0307467/docs/skydomes.htm

and applied it to the sprawling sky I currently have in my codebase.

hbd_day.jpg

hbd_dusk.jpg

hbd_night.jpg

I decided to plan for specific day/dusk/night "fog" colors as well as light colors, interpolated based on the height of the sun. Actually, any star - With this setup changing sky color, sun color (and hence, what sort of of light hits the planet), and the like are trivial to change now.

With a star/sun height calculable, along with seasonal variation, I'm already working on getting my previous weather simulation code working within this space. That implicitly means I'll have data for clouds, fog, rain, and vegetation cover acting dynamically over a virtual globe - although how I visualize these things is a separate problem that has many solutions.

Posted by todd at September 5, 2008 8:27 PM

Comments

Post a comment

Thanks for signing in, . Now you can comment. (sign out)

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)


Remember me?