Outerra forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Outerra Tech Demo download. Help with graphics driver issues

Pages: [1] 2

Author Topic: Alien planet Earth  (Read 18793 times)

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Alien planet Earth
« on: July 12, 2011, 05:07:10 pm »

Rendering our planet using a different set of basic materials for fractal mixer, with changed parameters of atmosphere, sun and water.

Scattering of light in the atmosphere determines both the color of sky and sunsets. We can see a blue sky because the blue light is more likely to bounce off the air molecules than the green and even more than the red components of sun light. As the light from sun travels through the atmosphere above us, some of it gets scattered away from the ray and towards our eyes. The same effect is responsible for red sunsets - as the sun sets, light from it has to travel a longer way through a denser layers of atmosphere. By the time it reaches us, most of the blue and green light gets scattered away from the ray, leaving only the most persistent red component.

This effect is simulated in Outerra, and so we are able to play with it. What if the atmosphere consisted of different gases and the scattering characteristic was different?

In the following video we are showing planet Earth that was "alienized". The atmosphere in it scatters the green light best, which you can see not only on the sky itself but also on the shaded parts that are not lighted by sun but only by a portion of the sky.
The sun has got an orange shade, which you can see mainly on the horizon (the sun itself is too bright so looking at it directly saturates the color to white).
The absorption of light in the water has been altered as well - normally, the red light gets only so far in the water, when it almost entirely disappears. Here, the medium absorbs the green and blue light instead, letting the red one to penetrate into depths. Of course, since the water surface largely reflects the sky at an angle, the ocean appears to be green in the distance.

At the end there's also a short sequence with a red-orange atmosphere.



Here are some screens showing it under various settings:



Milk water & yellow skies:



Violet atmosphere:



No atmosphere (or no atmospheric scattering). This is what you'd get for example on the Moon:

« Last Edit: August 28, 2011, 08:36:09 am by cameni »
Logged

C. Shawn Smith

  • Hero Member
  • *****
  • Posts: 712
    • C. Shawn Smith's Art Gallery & Portfolio
Alien planet Earth
« Reply #1 on: July 12, 2011, 06:58:44 pm »

Man, that last picture is creepy accurate, except without the traditional "gray" of the moon surface.  Interesting that the shadows contain no colorization, just like the real moon.

The water in the video look pretty creepy too, and VERY realistic.

Very impressive!
Logged
What we think, we become -- Buddha
There is no spoon -- Neo, The Matrix
The Cosmos is all that is, or ever was, or ever will be. -- Carl Sagan
Outerra is all that is, or ever was, or ever will be. -- Me :)
- Yes, I'm still around ... just been busy with other projects ;)

Jagerbomber

  • Hero Member
  • *****
  • Posts: 1563
Alien planet Earth
« Reply #2 on: July 12, 2011, 07:25:13 pm »

Awesome, though I'm kind of wondering... is this still with the green grass texture?  Unless something is really strongly filtering the color of something, I don't get how the grass would be such a drastically different color (at least up close), especially on the no atmosphere one.  Of course if you try to explain it to me (again?), then I probably wouldn't understand it.  :lol:
Logged
"Perhaps this speaks to some larger trend within society today...  A prevailing desire on the part of indie developers to recreate the entire world into one where you can charge more than $15 for your game design degree coursework." - Yahtzee ;) :P

RaikoRaufoss

  • Blood may move the wheels of history, but only our cunning keeps the wheels oiled.
  • Sr. Member
  • ****
  • Posts: 374
    • http://www.sabaton.net/
Alien planet Earth
« Reply #3 on: July 12, 2011, 07:27:00 pm »

I love the picture with the violet atmosphere.  And shawn, of course the moon doesn't look like its traditional grey yet-I imagine that's still a long way off.
Logged
Far from the fame
Far away from the fame
But we still remember your name
Karel Janoušek
We mourn the day that you died
So be our guide
CZECHOSLOVAKIA'S PRIDE!!!!!!

ZeosPantera

  • ||>>-Z-<<||
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2520
  • #1 Outerra Fan Boy
    • My Youtube
Alien planet Earth
« Reply #4 on: July 13, 2011, 12:00:07 am »

The video looks like a version of Outerra from 2003.. Still the waves look impressive all be it too shiny smooth on top.

The no atmo shot is awesome.


Also why make any screens smaller then 1920x1080?
Logged
"Fear accompanies the possibility of death, Calm shepherds its certainty" - General Ka Dargo

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Alien planet Earth
« Reply #5 on: July 13, 2011, 01:38:02 am »

Quote from: Jagerbomber
Awesome, though I'm kind of wondering... is this still with the green grass texture?  Unless something is really strongly filtering the color of something, I don't get how the grass would be such a drastically different color (at least up close), especially on the no atmosphere one.  Of course if you try to explain it to me (again?), then I probably wouldn't understand it.  :lol:
I wrote that there is a different set of base materials used :)
I picked them semi-randomly from cgtextures.com, they've added a great service recently by providing tiled versions of textures, and that was all we needed.
It would be no problem to make a grayish moon as well.

Still, without the vegetation the world looks smaller and somewhat bland, or so I understand Zeos' 2003 :)
Oh and why the screenshots are 1280x720, well, that's the standard (windowed) resolution we are using when developing and debugging, and when I see something interesting I simply hit F8 (built-in screen capture) and continue debugging, and usually that's the material I then have when publishing something in development screenshots and videos section. But I'll try better next time, I understand that for immersion you'd want to have a full-screen view.
Logged

PeterBitt

  • Member
  • **
  • Posts: 62
Alien planet Earth
« Reply #6 on: July 13, 2011, 02:00:59 am »

great to see some other textures in outerra :D
Logged

necro

  • Sr. Member
  • ****
  • Posts: 451
    • google+ Blog
Alien planet Earth
« Reply #7 on: July 13, 2011, 04:57:05 am »

cool, what would it look like for other settings like the uranus or mars? I guess you are controling the wavelength-absorption by the Kr-vector

//vec3 Kr = (0.247, 0.533333, 0.353);  //alien
//vec3 Kr = (0.271, 0.525, 0.890); // uranus
//vec3 Kr = vec3(0.666, 0.573, 0.282); //venus
//vec3 Kr = vec3(0.662, 0.509, 0.196); //mars
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Alien planet Earth
« Reply #8 on: July 13, 2011, 05:03:57 am »

The coefficients we use are of ß scattering, for Earth it's set to 5.8, 17.0, 41.0 (x10-³).
Should be equivalent to yours after recomputing using Earth's values.
Logged

necro

  • Sr. Member
  • ****
  • Posts: 451
    • google+ Blog
Alien planet Earth
« Reply #9 on: July 13, 2011, 05:14:50 am »

aye, earth should be something like (0.15, 0.2, 0.55)
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Alien planet Earth
« Reply #10 on: July 13, 2011, 06:07:36 am »

Hmm, ratios between the individual components vary wildly there. Btw where did you get the numbers from?
Logged

necro

  • Sr. Member
  • ****
  • Posts: 451
    • google+ Blog
Alien planet Earth
« Reply #11 on: July 13, 2011, 06:53:51 am »

i did some researches with webgl before and found this site:
http://codeflow.org/entries/2011/apr/11/advanced-webgl-part-1/

his shader was working with these values, and they fitted the expected result. Especially for the earth, the values should work
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Alien planet Earth
« Reply #12 on: July 13, 2011, 08:06:12 am »

That's O'Neil's scattering approximation. Not very accurate and requires a bit of tweaking to get the expected colors, you usually get them too dark first.
Anyway, the numbers for Mars don't seem to be right at all, it's got a blue atmosphere tinted green, but the values suggest it's red-orange. It's probably trying to match the color of horizon when there's a lot of dust dispersed in the air. That's why I was asking where the numbers are from, as the values for Earth can't be matched directly and thus recomputing the other values using the obtained coefficients would lead to even wilder results.
Logged

necro

  • Sr. Member
  • ****
  • Posts: 451
    • google+ Blog
Alien planet Earth
« Reply #13 on: July 13, 2011, 09:19:02 am »

cool, thanks for that information. Yah, thats O'Neils approxmiation. So which one are you using? His Paper is the most reputated work in this area (til now, maybe you could change this anytimes :P) I'm curious wether and how Patrick Cozzi is teaching this part.
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Alien planet Earth
« Reply #14 on: July 13, 2011, 09:29:53 am »

You should check out Eric Bruneton's work in this field. O'Neil's approximation was the first one usable on graphics hardware that really tried to make a physically based atmosphere.

We are using approach inspired by Eric's work. There was a comparison between the new and old model we used, that was based on O'Neils approach (and heavily tweaked).
Logged
Pages: [1] 2