Jump to content

  • Log In with Google      Sign In   
  • Create Account

14 years ago on June 15th Gamedev.net was first launched! We want to thank all of you for being part of our community and hope the best years are ahead of us. Happy birthday Gamedev.net!

Horizon SkyDome Sun Shader


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 Halsafar   Members   -  Reputation: 205

Like
0Likes
Like

Posted 30 March 2012 - 12:02 AM

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.

Sponsor:

#2 InvalidPointer   Members   -  Reputation: 951

Like
0Likes
Like

Posted 30 March 2012 - 07:58 AM

How accurate are you aiming for, here? I think the Preetham sky model is still pretty popular and I know that there's a spherical harmonics-based projection that's also been worked out if you want to get some pretty sexy model lighting to go with.
clb: At the end of 2012, the positions of jupiter, saturn, mercury, and deimos are aligned so as to cause a denormalized flush-to-zero bug when computing earth's gravitational force, slinging it to the sun.

#3 Matt328   Members   -  Reputation: 182

Like
0Likes
Like

Posted 30 March 2012 - 08:37 PM

Awhile back I started to come up with a 'close enough' approach to rendering the sun in the sky. http://matt328.wordpress.com/category/xna/ 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.

#4 jischneider   Members   -  Reputation: 252

Like
0Likes
Like

Posted 03 April 2012 - 08:23 AM

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.

Project page: < XNA FINAL Engine >





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS