Blue Marble part 2
by Guy Allard · 06/03/2008 (5:58 am) · 11 comments
After my last blog post, I received plenty of emails asking to see the planet shaders I was working on in action. So, here's a demo you can download which gives you a fly-by of the earth in TGEA1.7.
Download the demo here, extract the zip somewhere and run it.
There's a readme in the zip that gives some brief background information, and I've also commented the shaders (a little) so you should be able to figure out how they work if you want to use it for your own purposes. The main planet shader should work out of the box. The atmosphere shader requires a small modification to the engine if you want to use it in your own project, I'll post the necessary changes in the private forums.
The shaders do not have any fallbacks, so if your graphics card can't handle them, then either the demo won't run, or you'll be missing some visuals.
Enjoy.

Download the demo here, extract the zip somewhere and run it.
There's a readme in the zip that gives some brief background information, and I've also commented the shaders (a little) so you should be able to figure out how they work if you want to use it for your own purposes. The main planet shader should work out of the box. The atmosphere shader requires a small modification to the engine if you want to use it in your own project, I'll post the necessary changes in the private forums.
The shaders do not have any fallbacks, so if your graphics card can't handle them, then either the demo won't run, or you'll be missing some visuals.
Enjoy.

#2
Yes, it is intended to be stand-alone, and should be fixed now.
06/03/2008 (6:30 am)
Bah, looks like I messed that up.Yes, it is intended to be stand-alone, and should be fixed now.
#5
06/03/2008 (9:19 am)
Gorgeous!
#6
06/03/2008 (11:22 am)
oOOOOOoOoOooOoO... ahhhhhhhhhhhhhhhh
#7
06/03/2008 (12:00 pm)
Looks really good man. The bump map on the moon is exceptional. Oh, and people REALLY need to turn some lights off.
#8
06/04/2008 (1:14 pm)
Now that's cool! The 3d clouds look really neat.
#9
07/21/2008 (1:01 pm)
Guy, did you ever post the Atmosphere engine modifications? I see reference to VC_EYE_POS2 as a change to shader code. Could you post those fixes?
#10
09/14/2008 (11:30 am)
OMG. Gorgeous!
#11
Thank you very much.
09/14/2008 (11:36 am)
can you post the planet class here. or make it as a resource ?Thank you very much.

Torque Owner Brian Wilson
Fatal-ISV:(..\..\..\..\..\engine\source\gfx\D3D9\gfxD3D9Shader.cpp @ 73)
Something went horribly wrong with the ID3DXInclude stuff