PDA

View Full Version : A config tag for shadow disabling



TRam__
November 10th, 2015, 05:53 PM
Now we have a tag that enables shadows for train interiors. And the train interiors do not cast shadows by default. I propose to add a tag for disabling shadow casting for specific scenery and splines.

For example, with "low" shadow setting the grass does not cast it:
http://i.piccy.info/i9/75e96998d824f780edc7a928a65ce5a9/1447195606/94173/961058/Bezymiannyi_800.jpg (http://i.piccy.info/i9/5a3bee80a880cfc33023fa09325f9bb7/1447195606/580966/961058/Bezymiannyi.jpg)http://i.piccy.info/a3/2015-11-10-22-46/i9-8993928/800x410-r/i.gif (http://i.piccy.info/a3c/2015-11-10-22-46/i9-8993928/800x410-r)
With "high" shadow setting the grass look worse:
http://i.piccy.info/i9/236523be97ed3235cbb445f12d6f5b78/1447195958/107961/961058/Bezymiannyi2_800.jpg (http://i.piccy.info/i9/322e0d61b73c3f2b69b102361a82c5e3/1447195957/657000/961058/Bezymiannyi2.jpg)http://i.piccy.info/a3/2015-11-10-22-52/i9-8993960/800x409-r/i.gif (http://i.piccy.info/a3c/2015-11-10-22-52/i9-8993960/800x409-r)

Why not to give the ability to disallowing the shadow casting up to content creator?

JCitron
November 10th, 2015, 06:00 PM
This was mentioned before, but I can't remember when and of course can't find the post. The purpose would be for those assets that should not cast shadows like roads or other splines which are a bit off the surface in some cases.

In scenarios such as you are showing above, this might be different because in real life grass should cast shadows and when the grass is along the ROW it does look pretty nice too with the shadows underneath.

What I would do in your example is paint a darker color under the grass so that there is no visible shadow even though the spline casts one. It's not an ideal and perfect situation but it would hide this pattern caused by the grass clumps on the splines.

John

TRam__
November 10th, 2015, 06:55 PM
in real life grass should cast shadowsthat depends on its height, and, most of all, its density. Because "real life" blade of grass is much smaller that it is on texture, and other blades reflect the illumination on its shadow:

879

You can see that shadows are only on the edges of grass mats...


Also: my pictures need twice higher illumination...

JCitron
November 10th, 2015, 07:11 PM
that depends on its height, and, most of all, its density. Because "real life" blade of grass is much smaller that it is on texture, and other blades reflect the illumination on its shadow:

<pic removed>

You can see that shadows are only on the edges of grass mats...

Also: my pictures need twice higher illumination...

Absolutely! and your grass is all made up of edges... :)

So there has to be a way of hiding the obvious except for when or where we want to see it, and we can't expect the game engine to know when or where we want to see the shadows from the grass. In order to give the illusion of lots of heavy grass, that then shows shadows on the edge, we need to texture the earth a bit darker underneath in those non-shadow places, or maybe use more splines, which I don't think is always a good idea because those extra splines can cause performance issues.

John