Volumes Of Fun
http://www.volumesoffun.com/phpBB3/

Light and Shadows
http://www.volumesoffun.com/phpBB3/viewtopic.php?f=23&t=671
Page 1 of 1

Author:  Doraz_ [ Wed Jun 29, 2016 5:46 pm ]
Post subject:  Light and Shadows

I have a problem. The shadow area is too dark and i need that that the triplanar material acts like the materials with standard shader. in particular using dynamic lighting it's very important to me that materials respond to changes in lighting's ambient intesity, Reflection's Intensity and Bounce and Indirect Intesity.I tried to modify the shader but no results exept a black or a purple material.

Is there a way to get the material respond to lighting like all other shaders? thanks in advance.

[Edit] another thing. It seems the terrain doesn't care if light has hard or soft shadows? Am i doing something wrong?

[Edit#2] to better explain i normally make "dark areas" setting "Reflection Intensity" in lighting tab to zero and that sutes me perfectly eith the standard shader. with triplanar the only way is to reduce the ambient intensity and i can't do that.

[Edit#3] Well, with some effort I managed to create a sufficiently-realistic shadow/lighting setting. Maybe now it is useless but it would be really cool to be able to modify the material to the setting and not change the setting because of the material. Thanks for your effort to create and further develop this tool, it's amazing :)

Attachments:
File comment: what i get. Suggestions?
Untitled-2.jpg
Untitled-2.jpg [ 90.05 KiB | Viewed 5458 times ]

Author:  David Williams [ Sat Jul 02, 2016 8:49 am ]
Post subject:  Re: Light and Shadows

Hi,
Doraz_ wrote:
I have a problem. The shadow area is too dark and i need that that the triplanar material acts like the materials with standard shader. in particular using dynamic lighting it's very important to me that materials respond to changes in lighting's ambient intesity, Reflection's Intensity and Bounce and Indirect Intesity.I tried to modify the shader but no results exept a black or a purple material.

Is there a way to get the material respond to lighting like all other shaders? thanks in advance.

I am a bit hazy on this as it was a while ago that I wrote it. But Cubiquity was originally built on Unity 4 and has not been updated for the new lighting system in Unity 5. As such there is no support for things like indirect lighting, and this is perhaps why you are having difficulty matching the lighting in your scenes.

I don't think there is an easy fix to this, but I haven't looked into the new lighting system at all. I believe it is precomputed so may not work well with dynamic terrain like that found in Cubiquity.

Doraz_ wrote:
[Edit] another thing. It seems the terrain doesn't care if light has hard or soft shadows? Am i doing something wrong?

This seems to work ok for me using Unity 5.3 on Windows and viewing the Examples/Basic/TerrainExampleScene. Can you try looking at that example?
Doraz_ wrote:
[Edit#2] to better explain i normally make "dark areas" setting "Reflection Intensity" in lighting tab to zero and that sutes me perfectly eith the standard shader. with triplanar the only way is to reduce the ambient intensity and i can't do that.

Maybe you can just hack the shader with a hard-coded intensity scaling factor (or pass a factor in from your code somehow)? Make a copy of it first of course!
Doraz_ wrote:
[Edit#3] Well, with some effort I managed to create a sufficiently-realistic shadow/lighting setting. Maybe now it is useless but it would be really cool to be able to modify the material to the setting and not change the setting because of the material. Thanks for your effort to create and further develop this tool, it's amazing :)

I'm glad you got a working solution. Do be aware that this version of Cubiquity is no longer under active development though (check our blog for our plans).

Author:  Doraz_ [ Sun Jul 03, 2016 9:35 am ]
Post subject:  Re: Light and Shadows

hi and thanks for the help. I found out the problem was "light probes" of trees on the Unity-Terrain. I thought that it affects only the terrain but it seems not. Using both kind of terrain together means disabling that option (at least that worked for me). All problems appear to have been generated from that or from the different settings that i applied to fix the problem.

Author:  David Williams [ Tue Jul 05, 2016 7:33 pm ]
Post subject:  Re: Light and Shadows

Thanks for the info, I'll try to remember this for next time someone else encounters the same problem.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/