It is currently Sun Nov 17, 2019 9:55 am


All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Light and Shadows
PostPosted: Wed Jun 29, 2016 5:46 pm 

Joined: Wed Jun 29, 2016 5:16 pm
Posts: 2
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 2855 times ]
Top
Offline Profile  
Reply with quote  
 Post subject: Re: Light and Shadows
PostPosted: Sat Jul 02, 2016 8:49 am 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
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).


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Light and Shadows
PostPosted: Sun Jul 03, 2016 9:35 am 

Joined: Wed Jun 29, 2016 5:16 pm
Posts: 2
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.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Light and Shadows
PostPosted: Tue Jul 05, 2016 7:33 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
Thanks for the info, I'll try to remember this for next time someone else encounters the same problem.


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net