Atmospheric Scattering – Blender Game Engine

EaMartinsh has once again raised the bar, this time he’s taken the spectacular mountain demo we saw a while back and added… well… the rest of the planet?

Martinsh explains:

Hello, I haven`t posted anything for too long time
So, here I present you a shader i`ve recently been busy with.

It is based on the chapter “Accurate Atmospheric Scattering” of the “GPU Gems 2″ I found here: http://http.developer.nvidia.com/GPU…chapter16.html

Scene contains 4 spheres: 2 for ground & 2 for atmosphere, as there are 4 shaders (Ground from Space/Atmopshere & Skies from Space/Atmosphere).

Feel free to use this in your own projects, but the setup may be a headache.
Moving, scaling etc. operations of the spheres will cause strangeness

Yet to do:
• easier setup
• skydome only (if you dont need a view from space)

• cloud coverage
• normal-mapped lighting for ground
• ocean material

Earth

You can download the file and see it for yourself from this link. Controls listed below:

WASD – move camera
Mouse movement – mouselook
Left mouse button&mouse movement – grab&move sun
Mousewheel up/down – scattering exposure
Up/Down – scattering samples

Youtube video – http://www.youtube.com/watch?v=3dxDVzby_XU

Thread on Blenderartitsts.org – http://blenderartists.org/forum/showthread.php?t=170903

http://blenderartists.org/forum/showthread.php?t=170903

Twitter



Please support us

  • Nixon

    woah holycrap…the lighting is just super uber awesome!!!…i’m speechless at the look of this!
    great work on the shader…already downloading it.
    Much appreeciation for sharing this i imagine its been a huge effort that went into it. It’s amazing!

  • http://3d-synthesis.com ROUBAL

    Hi, The first images look very nice, but it is so slow to load in streaming on my PC that I gave up very early. I’d really want to see it completely.

    On Vimeo, it is possible to download the video files, to watch them off line. Is it possible on YouTube ? I have never found out a link.

    Thanks in advance !

    Philippe.

  • fboyer

    savetube.com

  • Fl3xXx.^

    Just a short comment:

    I love it *.*

  • Eloff

    Oh my god. The beginning was really nice and then the takeoff to space was even cooler.

    I remember several years ago when I worked in Terragen to render images like this, and it took a couple of minutes per frame. Realtime in BGE is great.

  • http://ragingfx.com ragingmon

    one word > amazing

    O_O

  • Woodge

    This is amazing!

  • http://3d-synthesis.com ROUBAL

    @fboyer : Thanks, but this kind of software only saves what is played in streaming, so it is not faster. I asked if there is a feature on Youtube allowing to download directly the source file, like at Vimeo. I can download files at 8 or 9 Mbs, but This Youtube streaming seems to deliver the video at 56kbs !

    Anyway I left my computer running, and after my shower and cooking, I finally got the video.

    Very good lighting effects ! I really like the halo when the sun is going to disappear behind the earth, and the thickness of the atmosphere.

    Excellent work ! Thanks for sharing !

  • http://mke3.net Matt Ebb

    That is seriously awesome. Great work!

  • kram2301

    just tried that with dome rendering.
    Weird but GREAT :D

  • martinsh

    Hey guys, glad you like it. I hope you`ll find it useful.
    Here is a link to the Vimeo video: http://vimeo.com/7441085

  • MeshWeaver

    oh, my, god…

    that is amazing!

  • Blenderificus

    whoa, this is amazing work. thanks also for all your hard work porting shaders to ATi too. this piece is VERY fine work indeed. kudos

  • http://www.blenfx.co.nr nash88

    Whoa amazing work…
    0_0…

  • namekuseijin

    man, that’s just so friggin’ beautiful! I see you’re also responsible for the previously equally impressive bathroom demo. You got my respect.

    BTW, care to disclose the author and the name of the music playing on? Just as beautiful as the demo itself…

  • Jarrod

    This is how Google earth should look.

  • greg57

    Wonderful video. .blend not really working (no mouse control) on my Powermac G5 dualcore (OS X leopoard)

  • http://3d-synthesis.com ROUBAL

    Thanks too for the Vimeo link. It displays instantly ! I have also watched your bathroom demo : Very impressive !

  • BigPilot

    Wow! That was incredible. I can hardly believe that this was realtime and not animated.

  • txrx

    Thud.

    Yep another jaw hits the desk!

    Once again an amazing example of the flexibility of the BGE!

    Wow.

  • djallalnamri

    i think i will stop watching starwars once in a day because of maya ressources and not because of the story after having seen this…btw i am a blenderfan anyway…

  • BigPilot

    The only thing what is needed now is realistic clouds. That would really be the finishing touch.

  • http://www.qso.com/carlautta/colin/Beta/ Tynach

    I remember doing a little test like that in Blender Internal, and being able to get just as good a result with the game engine. I haven’t looked at the links, but I think it’s the same method.

  • Jordan Harris

    Cool stuff. I’m impressed – really gorgeous results.

  • Marcus

    I can’t believe it.
    This looks so real! And that in real time!
    Un-be-liev-able

    BigPilot is right: Now realistic clouds and you do’t have to leave your PC to take a walk.

  • http://www.clawjelly.net badoli

    Wow… thats really beautyful…

    There was an article about generating random planets via perlin noise and similar algorithms on gamasutra sorta 8 years ago (wow, i’m now seriously impressed by my memory):

    http://www.gamasutra.com/view/feature/2511/a_realtime_procedural_universe_.php

    Combining those two would rock! :-D

  • migero

    well I’m still waiting for the blend with the mountains ;/

  • http://www.cubefield-game.info/ Cubefield 2

    This is a great post and its very creative indeed but if only you people would properly give cubefield a shot. Its a great game. Very addicitve and very entertaining to all age groups.

  • http://www.bidforlink.net Forgery Soverign

    Hey site owner, thnx for providing this information…, i found it awesome. Best regards, Filiz!!

  • http://mybuildingblocksshop.com Lesia Drumgo

    It’s my son’s birthday shortly and I believe that the article has made my thoughts up about just what I will buy him.