Sign in to follow this  
Halsafar

Horizon SkyDome Sun Shader

Recommended Posts

Halsafar    205
Given a geodesic dome with proper UV spherical texture mapping and a sun position. I am trying to find some readings or examples of a shader for adjusting the sky horizon and give the appearance the sun is in the sky.

Share this post


Link to post
Share on other sites
InvalidPointer    1842
How accurate are you aiming for, here? I think the [url="http://www.cs.utah.edu/~shirley/papers/sunsky/"]Preetham sky model[/url] is still pretty popular and I know that there's a [url="http://cg.tuwien.ac.at/research/publi­cations/2008/Habel_08_SSH"]spherical harmonics-based projection[/url] that's also been worked out if you want to get some [url="http://www.youtube.com/watch?v=HHHoemb3C3Y"]pretty sexy model lighting[/url] to go with.

Share this post


Link to post
Share on other sites
Matt328    272
Awhile back I started to come up with a 'close enough' approach to rendering the sun in the sky. [url="http://matt328.wordpress.com/category/xna/"]http://matt328.wordpress.com/category/xna/[/url] These two posts here try to detail what I've done. It's nowhere near the aforementioned models and pretty incomplete, but if you're just looking for somewhere to start your own implementation, you might find them interesting reads.

Share this post


Link to post
Share on other sites
jischneider    253
FX Composer has an interesting example project called SimpleAtmosphericScattering.

It lacks some features and it has a “bug” in the pole of the skydome, but for the most part is an excellent project for reference.

Share this post


Link to post
Share on other sites

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