Previous Blog Next Blog
Prev/Next Blog
by date

Blue Marble - (warning - pictures)

Blue Marble - (warning - pictures)
Name:Guy Allard 
Date Posted:May 17, 2008
Rating:4.5 out of 5
Public:YES
Comments:YES
RSS Feed:GarageGames Blog feedor Subscribe with .
Profile Page:View profile page for Guy Allard

Blog post
Having recently purchased TGEA, I thought I'd try and get to grips with shaders and materials. I stumbled across the blue planet demo during a random google search, and thought I'd have a go at producing something similar.

The result:


To model the earth, I used three spheres, one for the earths surface, a second sphere scaled up slightly for the cloud layer, and a third sphere scaled up again for the atmosphere.

The Surface of the earth is rendered by a custom shader using three textures
- a diffuse map with a specular map in the alpha channel, which limits the specular reflection to the oceans.
- a normal map that gives height to the mountains and valleys
- an emission map which illuminates the cities at night time.
The shader that renders the planet restricts the emission map to the dark side of the planet, so cities only glow at night time.


The cloud layer is a standard material which is rendered translucent, and is also bump mapped so that the clouds have depth.


For the atmosphere, I managed to port the shader from the the blue planet demo. The color of the atmosphere can be specified in the material definition.

The sun is a simple fxSunlight, and the moon is a single textured and bump-mapped sphere.
I'm pretty pleased with the outcome. As always, there's still plenty of tweaking to be done.

Anyway, I'll leave you with a few more gratuitous screenshots.

Earthrise


Europe at night


Sunset of West Coast USA

Recent Blog Posts
List:06/03/08 - Blue Marble part 2
05/17/08 - Blue Marble - (warning - pictures)

Submit ResourceSubmit your own resources!

Novack   (May 17, 2008 at 09:31 GMT)
OMG...

Steve L   (May 17, 2008 at 10:40 GMT)
That is amazing....speechless

Edward Smith   (May 17, 2008 at 11:09 GMT)
That looks seriously impressive!

Matt Huston   (May 17, 2008 at 11:24 GMT)
Very cool, you've beat me to the punch on some stuff I too am working on :)

Taras (TSK) Anatsko   (May 17, 2008 at 12:05 GMT)
Wow!

Steve YorkshireRifles Acaster   (May 17, 2008 at 16:28 GMT)
Blimey....

Quote:

I'm pretty pleased with the outcome.


I bet you are!

Stephan (viKKing) Bondier   (May 17, 2008 at 16:33 GMT)
8-P

Raaaah lovely...

Pat Wilson   (May 17, 2008 at 17:40 GMT)
Very nice!

Mike Rowley   (May 17, 2008 at 17:54 GMT)
That is awesome.

Tom Eastman (Eastbeast314)   (May 17, 2008 at 22:19 GMT)
Nice!

Ian Roach   (May 18, 2008 at 01:11 GMT)
Wow impressive stuff, cant wait to see more
Edited on May 18, 2008 01:13 GMT

Don Hogan   (May 18, 2008 at 13:10 GMT)
That is some seriously swanky shader work - nicely done!

Morrock   (May 18, 2008 at 18:21 GMT)
Wow, that really looks amazing. How long did it take you?

James Laker (BurNinG)   (May 19, 2008 at 07:28 GMT)
Can you share the ported shader?

Todd Pickens   (May 20, 2008 at 02:33 GMT)
good job!

Josh Williams   (May 20, 2008 at 05:57 GMT)
Nice, Guy!

Any chance you might upload the demo of this?

Guy Allard   (May 20, 2008 at 19:06 GMT)
Thanks for the feedback guys!

@James - no problem. I'll sort it out soon.

@Josh - shall I just upload it somewhere and post a link from here?

James Laker (BurNinG)   (May 21, 2008 at 07:05 GMT)
Great :)

Edward   (Sep 09, 2008 at 19:29 GMT)
Was this demo ever uploaded somewhere? Man, i missed this post.

Johan Verbelen   (Sep 10, 2008 at 12:15 GMT)
Check the follow up for the demo (the link still works, just tested): http://www.garagegames.com/blogs/18484/14821

James Laker (BurNinG)   (Sep 10, 2008 at 13:18 GMT)
www.garagegames.com/blogs/18484/14821
Edited on Sep 10, 2008 13:18 GMT

You must be a member and be logged in to either append comments or rate this resource.