Game Development Community

dev|Pro Game Development Curriculum

Blue Marble - (warning - pictures)

by Guy Allard · 05/17/2008 (2:05 am) · 21 comments

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:
www.pigsie.com/torque/blue_marble/marble.jpg
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.
www.pigsie.com/torque/blue_marble/america_sleeps.jpg
The cloud layer is a standard material which is rendered translucent, and is also bump mapped so that the clouds have depth.
www.pigsie.com/torque/blue_marble/european_dusk.jpg
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
www.pigsie.com/torque/blue_marble/earthrise.jpg
Europe at night
www.pigsie.com/torque/blue_marble/europe_sleeps.jpg
Sunset of West Coast USA
www.pigsie.com/torque/blue_marble/west_coast_sunset.jpg
Page «Previous 1 2
#1
05/17/2008 (2:31 am)
OMG...
#2
05/17/2008 (3:40 am)
That is amazing....speechless
#3
05/17/2008 (4:09 am)
That looks seriously impressive!
#4
05/17/2008 (4:24 am)
Very cool, you've beat me to the punch on some stuff I too am working on :)
#5
05/17/2008 (5:05 am)
Wow!
#6
05/17/2008 (9:28 am)
Blimey....

Quote:I'm pretty pleased with the outcome.

I bet you are!
#7
05/17/2008 (9:33 am)
8-P

Raaaah lovely...
#8
05/17/2008 (10:40 am)
Very nice!
#9
05/17/2008 (10:54 am)
That is awesome.
#10
05/17/2008 (3:19 pm)
Nice!
#11
05/17/2008 (6:11 pm)
Wow impressive stuff, cant wait to see more
#12
05/18/2008 (6:10 am)
That is some seriously swanky shader work - nicely done!
#13
05/18/2008 (11:21 am)
Wow, that really looks amazing. How long did it take you?
#14
05/19/2008 (12:28 am)
Can you share the ported shader?
#15
05/19/2008 (7:33 pm)
good job!
#16
05/19/2008 (10:57 pm)
Nice, Guy!

Any chance you might upload the demo of this?
#17
05/20/2008 (12:06 pm)
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?
#18
05/21/2008 (12:05 am)
Great :)
#19
09/09/2008 (12:29 pm)
Was this demo ever uploaded somewhere? Man, i missed this post.
#20
09/10/2008 (5:15 am)
Check the follow up for the demo (the link still works, just tested): http://www.garagegames.com/blogs/18484/14821
Page «Previous 1 2