Delgine 3D Tools & Content DeleD Community Edition
Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Planetary Shader

 
Post new topic   Reply to topic    DeleD Community Edition Forum Index -> Off Topic
View previous topic :: View next topic  
Author Message
Starnick
DeleD PRO user


Joined: 28 Jul 2007
Posts: 611

PostPosted: Sun Feb 27, 2011 6:20 pm    Post subject: Planetary Shader Reply with quote

Thought I'd share this with you guys. It's an implementation of a real-time atmospheric scattering effect as described by Sean O'Neill in GPU Gems 2. It's an early draft (pretty much just focused on the scattering effect), but I slapped on some cloud coverage and I gotta say it looks pretty darn awesome. The next iteration will include actual lighting (aside from the scattering), night lights on the dark side, and cloud shadows.





Back to top
View user's profile Send private message Visit poster's website AIM Address
Jeroen
Site Admin


Joined: 07 Aug 2004
Posts: 5325
Location: The Netherlands

PostPosted: Sun Feb 27, 2011 7:14 pm    Post subject: Reply with quote

Now that's simply awesome! Very Happy Cool

Can't wait to see more of this - keep up the good work!!
_________________
Check out Figuro, our online 3D app! More powerful 3D tools for free.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Starnick
DeleD PRO user


Joined: 28 Jul 2007
Posts: 611

PostPosted: Tue May 10, 2011 8:11 am    Post subject: Reply with quote

Finally went back to complete this effect (shelved it for a bit, but I'm including it in my engine samples):

1. Normal mapping + phong illumination (and optional specular mapping)
2. Cloud shadows (clouds also an independent layer/rotates)
3. City lights on the dark side of the planet.

Wrote up a brief overview, including a link to download the HLSL code over at my portfolio website. Includes a galore of screenshots too and a video, some of which I'll post below too. I think you can see a big difference (and an improvement) over the first images. The three images below respectively show the normal mapping, cloud shadows (kinda makes the clouds pop out in that one, they're really tweaked up high there), and city lights...ironically each effect is alone in each shot

Youtube video





Back to top
View user's profile Send private message Visit poster's website AIM Address
AWM Mars
Member


Joined: 06 Jan 2010
Posts: 1193
Location: Wilts England

PostPosted: Tue May 10, 2011 9:46 am    Post subject: Reply with quote

That looks very realistic Very Happy
_________________
Politeness is priceless when received, cost nothing to own or give, yet some cannot afford.

Checkout:
http://www.awm.mars.yourinside.com/
http://www.bccservices.co.uk
http://www.localtradecheck.co.uk
Back to top
View user's profile Send private message Visit poster's website
trucker2000
DeleD PRO user


Joined: 11 May 2005
Posts: 1839
Location: Sacramento, California

PostPosted: Tue May 10, 2011 10:58 am    Post subject: Reply with quote

That is simply awesome. If it's ok with you, I'd like to see if I can get this working in torque.
_________________
Some day I will grow up and be a real modeler.
"Never give up! Never surrender!!"
Sys specs:
asus
8 gigs ram
Invidia gtx560 video card
Windows 8 (worst op sys Ever)
Back to top
View user's profile Send private message Visit poster's website
Starnick
DeleD PRO user


Joined: 28 Jul 2007
Posts: 611

PostPosted: Tue May 10, 2011 3:35 pm    Post subject: Reply with quote

trucker2000 wrote:
That is simply awesome. If it's ok with you, I'd like to see if I can get this working in torque.


Yeah, that's why I included them for download. Although, I didn't include any license - which is now remedied. All content in my engine is licensed under the Creative Commons Attribution Share-Alike 3.0 license, which this would be too.

Additionally, I got my textures from:

http://planetpixelemporium.com/earth.html

And there's a few other places out there, I think where I got some higher resolution versions. Like NASA's site Visible earth.

So feel free.
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    DeleD Community Edition Forum Index -> Off Topic All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum