Planetside Software Forums

General => Terragen Discussion => Topic started by: yossam on March 12, 2013, 03:11:07 PM

Title: Detail in shadow
Post by: yossam on March 12, 2013, 03:11:07 PM
Could someone suggest some GI settings to enhance the detail in shadows. I am getting some really ugly(really black) shadows at 2,2,8. The sun is at 10 degrees and approximately 90 degrees to the right of the camera. Any help would be greatly appreciated.
Title: Re: Detail in shadow
Post by: cyphyr on March 12, 2013, 03:32:43 PM
It depends on the situation really but the default values are not to useful for shadow detail.
Certainly tick "GI Surface details", possibly "Super sample prepass" and take the "GI Relative detail" and "GI Sample quality" up a notch (2,3 first, see how that looks, then 3,3, see how that looks, then 3,4, see how that looks etc).
You can add in some "fill lights" and always of course you can save your image as an exr and open it in Photoshop and see if the detail is there anyway.
Hope this helps
Richard
Title: Re: Detail in shadow
Post by: yossam on March 12, 2013, 03:40:27 PM
Right now anything would help, appreciate the suggestions. I really like what your pic is developing into.  ;)
Title: Re: Detail in shadow
Post by: Tangled-Universe on March 12, 2013, 04:53:10 PM
There are a number of possible ways to do this, 4 come in my mind right now.

1) What are your other render settings? Most important: what's the detail setting?

GI is relative to the detail setting, that's why it's named "GI relative detail".
This means that for detail 0.5 and GI relative detail @ 2 you effectively have 0.5 x 2 = GI detail @ 1.
So with low detail settings you have also lower GI "coverage".
You can check this by looking at the number of dots in the GI prepass.
With GI 2/2 and render detail 0.5 you will have much less dots than with render detail 1.

GI quality sampling means that for every dot in the GI prepass the renderer will sample x amount of times, which is defined by this setting.
The more you sample, the more accurate the value is for each dot in the prepass.

GI surface details definitely helps, but even at low sun angles it can give unsatisfactory results + that GI surface details is horrendously slow.
Also, GI surface details is only suitable when you want more detail in fine shadows, say in vegetation.

So all in all I'd first make sure that you have enough of those GI dots in your shadow areas.
For terrain these are relatively large areas, often, so you probably don't need very high GI detail.
Upping samples is better and faster, allowing for a more accurate result.

This is all pretty heavy dependant on each scene, so without an example of the situation and knowing more about the other rendersettings its difficult to say.

2) An easier and quicker one is to increase the "strength on surface" parameter in the enviro light node.
Increase it to 1.5 or 2 and see if it is satisfactory.
This can give a bit unbalanced results which would require some post-processing.

3) Increase ambient colour from black to white in the atmosphere node.
This works best if you have a bit thicker haze in your atmosphere node.

4) always save as EXR

Of these 3 options I like to use a combination of 1, 2 and 4.
I don't want to spend too much time and memory on calculating GI, so I make sure that I'm not generating an insane number of dots for GI cache.
As a matter of fact you can increase GI to 8 or 10 and post the GI prepass as finished render, you can get it that dense :)
So when I think I have enough dots and enough sampling I usually increase the strength on surfaces in the enviro light a bit.
This should all be sufficient to get enough detail in the raw render which you can easily get right when you save as EXR and post-process accordingly.

Please show us what you got, so we can give a bit more accurate directions.

Cheers,
Martin
Title: Re: Detail in shadow
Post by: cyphyr on March 12, 2013, 05:48:35 PM
Thanks for that detailed answer (even though it wasn't my question), that's the best description of the GI settings I've read.
Cheers
Richard

ps also a thought (that I'm experimenting with now), increasing the "ray detail  padding" and the "GI prepass padding" may allow "little" more light bounces back into shadow areas (at a render time cost).
Title: Re: Detail in shadow
Post by: Tangled-Universe on March 12, 2013, 06:43:45 PM
Ray detail region padding calculates geometry subdivisions outside of the camera frustum.
Ray detail region padding calculates GI outside of the camera frustum.
Potentially the latter can influence your render, but I wouldn't place my bets on it too much.
Title: Re: Detail in shadow
Post by: yossam on March 12, 2013, 07:04:58 PM
Here goes.............crop of the worst problem areas.

Quality:.5
AA:4
GI:3,3,8
Enviro light:2 strength on surfaces

No post, just converted to jpg
Title: Re: Detail in shadow
Post by: Oshyan on March 12, 2013, 08:10:33 PM
Odd, that doesn't really look like a GI issue as your plants are very well and fully lit, even in shadow. I assume you're talking about the very dark/black surfaces, i.e. under the plants on the right, at the edge of the terrain. That looks like something else, a shading error, or misconfigured terrain shaders. What parts of the scene are rendering that way, is that just bare terrain? It looks clearly different than the plants, so I'm guessing it's not other objects, but rather the terrain itself. What happens if you make the terrain/surface color white?

- Oshyan
Title: Re: Detail in shadow
Post by: yossam on March 12, 2013, 08:34:42 PM
The funny thing about it, it wasn't there last night. I was working on the scene, trying to get the lighting better. I closed the program and when I opened it back up today, the black spots were there.

I am doing a crop render without the populations to see if it is a shader issue. Will post when finished.
Title: Re: Detail in shadow
Post by: Oshyan on March 12, 2013, 08:36:23 PM
That especially makes it sound like not a GI issue...

- Oshyan
Title: Re: Detail in shadow
Post by: yossam on March 12, 2013, 08:54:39 PM
Here goes........there are some dark spots in the terrain and I think that the plants are making it worse when the shadows of the populations are there. I lightened up that particular shader and am doing another crop.
Title: Re: Detail in shadow
Post by: bobbystahr on March 15, 2013, 11:41:01 PM
Wouldn't Ambient Occlusion and a Soft Shadow sun help with this dark shadows problem...seems someone once suggested that to me
Title: Re: Detail in shadow
Post by: Hannes on March 24, 2013, 09:52:56 AM
I made a little test after I downloaded one of the great models of this website:
http://www.planetside.co.uk/forums/index.php/topic,15831.0.html (http://www.planetside.co.uk/forums/index.php/topic,15831.0.html)
I imported a model into TG, created the materials and made a test render with the default GI settings and Render: Detail/AA: 0.6/6.
It looks dull and the wheels seem to float.
Then I checked GI surface details and set the first two GI settings to 5/5. Better looking, but still not good. Rendering time almost four times longer.
The next thing was render overkill: I created an advanced fill light system: instead of three lights I used 24! Soft shadows on, diameter 1.
Looking much better, but rendering time was insane! (See the writing on the images)
(Original renderings had a width of 1024px)

I'd love to see an easier way to get a more realistic lighting environment for close ups...
Title: Re: Detail in shadow
Post by: inkydigit on March 24, 2013, 03:02:43 PM
that is an improvement, but 5.22 hrs?
ouch!
:)
Title: Re: Detail in shadow
Post by: Oshyan on March 24, 2013, 09:49:40 PM
What you need is Ambient Occlusion. To be honest I'm not sure just how capable the Enviro Light is in AO mode, but it's worth trying, add a second Enviro Light and set it to Ambient Occlusion. Clearly the other approaches aren't feasible and I wouldn't recommend them (e.g. massive amounts of fill lights, etc.).

- Oshyan
Title: Re: Detail in shadow
Post by: Matt on March 24, 2013, 10:26:19 PM
Quote from: Oshyan on March 24, 2013, 09:49:40 PM
What you need is Ambient Occlusion. To be honest I'm not sure just how capable the Enviro Light is in AO mode, but it's worth trying, add a second Enviro Light and set it to Ambient Occlusion. Clearly the other approaches aren't feasible and I wouldn't recommend them (e.g. massive amounts of fill lights, etc.).

The Enviro Light in AO mode has the same limitations on capturing high detail as it does in GI mode, as it still uses the GI cache. Both depend on the GI settings.

I am working on some solutions to this problem.

Matt
Title: Re: Detail in shadow
Post by: cyphyr on March 25, 2013, 11:20:03 AM
This isn't intended as a solution but it can add a degree of realism to shadowed areas. Use two or more sun lights in the same position with varying amounts of Soft shadow. The top image below (using a model from the site mentioned above) is lit with three lights, one set to Soft Shadow = 0.5, the next set to Soft Shadow = 15 and the third set to Soft Shadow = 45, the light intensity is 1.5 on each.
The second image has an additional bluish light at 90deg elevation.
Other more varied settings will give more effects.
:)
Richard

ps: Oh and don't forget to turn OFF Specular Highlights and Glow in Atmosphere for all lights that are NOT the main light source (unless of course you want multiple glows and highlights in your scene)
Title: Re: Detail in shadow
Post by: bobbystahr on March 25, 2013, 11:34:39 AM
I think it still appears to float and I've run into that as well. Even when a vehicle is really 'sitting on the the ground' it will seem to be not as in real life there is a slight flattening at the bottom of the tire where 'the rubber meets the road' and this is a problem for realism in all 3D apps I've tried......
Title: Re: Detail in shadow
Post by: cyphyr on March 25, 2013, 11:58:42 AM
Yes it dose appear  to foat, this render wasn't really trying to address that issue (and I agree with your solution) but rather the problem with shadowed areas becoming flat and un-detailed. It works to a degree but is by no means perfect!
It would certainly be better with a better textured  model including the flattened tyres you mention.
Richard
Title: Re: Detail in shadow
Post by: Hannes on March 25, 2013, 05:22:14 PM
Oshyan's default fill light setup (three lights) with soft shadows (diameter: 50) checked, which increases rendertimes a lot (2:42 hrs). Less than the advanced fill lights and not bad looking to my taste, but still not the perfect solution...
Title: Re: Detail in shadow
Post by: bobbystahr on March 25, 2013, 08:22:06 PM
Yup...that most def. the best yet...still tryin myriad things cuz I had a good setup on my now stolen computers that was working on vehicles and indoor stuff...I'll find it again cuz I found it once....