Outerra forum

Outerra Engine => Ideas & Suggestions & Questions => Topic started by: Andrey on March 11, 2012, 11:50:58 am

Title: Landscape shadows
Post by: Andrey on March 11, 2012, 11:50:58 am
Since first day I flew in Outerra I notice that landscape do not produce shadow to itself.
So for example when you are inside tight canyon one of it side will be always lighted by sun. Moreover cockpit shadows are counted too, however you are "inside" shadow.

This is pretty complicated task, do you plan to fix this ?

Thanks
 
Title: Re: Landscape shadows
Post by: cameni on March 11, 2012, 12:54:48 pm
Actually it's not that complicated, we just need to perform some adjustments to the shadow map first, and then we'll add terrain self-shadowing.
Title: Re: Landscape shadows
Post by: Andrey on March 11, 2012, 01:07:14 pm
Actually it's not that complicated, we just need to perform some adjustments to the shadow map first, and then we'll add terrain self-shadowing.

Sounds great! One more about shadows - IMHO aircraft shadows looks too dark, looks like it's under studio projector, but in real life atmosphere reflect some sunlight so shadows are not so contrast. Yes I know about shadow light adjuster, but it influence into ground shadow too, and not bright enough to me even on max "lighter"...

Thank you for work you do! 
Title: Re: Landscape shadows
Post by: cameni on March 11, 2012, 02:22:36 pm
The shadows should be the same on objects and terrain, except that there's some problem with shadow lighting in higher altitudes - makes it too dark.
Title: Re: Landscape shadows
Post by: Andrey on March 11, 2012, 03:09:55 pm
The shadows should be the same on objects and terrain, except that there's some problem with shadow lighting in higher altitudes - makes it too dark.

Well... then you should agree that, it's too dark even on low altitude now. Atmosphere influent on shadows, make them brighter... Compare:
(http://dl.dropbox.com/u/49103326/Untitled-5.jpg)
(http://3.bp.blogspot.com/-OCJQ11baEEM/TvUmftpZmvI/AAAAAAAAHKc/8aGgPiSiEsc/s1600/cessna_172_skylane.jpg)
Bright day, blue sky.

Moreover no strict shadows on overcast weather...
Title: Re: Landscape shadows
Post by: Luishi5k0 on March 11, 2012, 03:25:49 pm
Clearly the answer is to use real time global illumination.
Title: Re: Landscape shadows
Post by: DuxDucisHodiernus on March 15, 2012, 01:46:44 pm
Clearly the answer is to use real time global illumination.

Clearly.
How come no one else realized that?

//NO SARCASM
Title: Re: Landscape shadows
Post by: Luishi5k0 on March 15, 2012, 04:21:35 pm
If you do it right, you can actually have it for not too much of a performance cost.
Geomerics Enlighten Demo at GDC 2010 (http://www.youtube.com/watch?v=nLZU-JC6Hqc#ws)

Then there is the Light Propagation Volumes that I put in the technology section.
Title: Re: Landscape shadows
Post by: PTTG on March 15, 2012, 05:11:10 pm
It's also a problem at dusk. The sun's below the horizon, so everything is pitch black... despite the still-glowing sky.

I guess the simplest thing to do would be to pick an ambient light color based on the average of the sky light sources.

Of course, if we ever want artificial light sources- not to mention night side lights- we're going to need something robust.