Page 1 of 2

Problem with point lights in custom light

PostPosted: Fri Dec 14, 2018 12:21 am
by deadlycrow1
Well, as the title says, there is a weird glitch when i put several objects in the scene, some of them start flickering black. i tried to debug the error, and it appears to be that when i calculate the light/shadows throught the "dot" node with the world normal and the world light direction node, it doesnt pick anything, unless i add a directional light. look:

Image

and this is my node tree:

Image

and this is what i get when i debug the light calculation without a directional light:

Image

and with the directional light enabled (with black color):

Image

how can i solve this?

after all, i'm trying to make a cartoon shader.

Re: Problem with point lights in custom light

PostPosted: Fri Dec 14, 2018 10:25 am
by Amplify_Borba
Hello!

We've ran some tests and the light nodes seem to be working as expected, so the issue might be related to your current node setup and / or shader parameters. The example below is only using a spotlight, no directional light:

Image

I'd recommend looking into the CustomLightingToon sample as an example of how to set up a custom lighting shader with a cartoony look, but don't hesitate let us know if you believe you've come across any ASE related issue, we'll be happy to help!

Re: Problem with point lights in custom light

PostPosted: Fri Dec 14, 2018 4:21 pm
by deadlycrow1
Hi! yes i found the problem, all start to flicker in black when you enable the outline (both, from the node and the shader itself), can you replicate this? it also happens with the toon examples, and try to add more objects.

Re: Problem with point lights in custom light

PostPosted: Sun Dec 16, 2018 11:45 pm
by deadlycrow1
hey can you help me??

Re: Problem with point lights in custom light

PostPosted: Mon Dec 17, 2018 11:46 am
by Amplify_Borba
We've ran another test with the previously shared shader example, with the addition of an Outline node, and were unable to replicate the issue:

Image

Image

Perhaps it could be related to your lighting settings?

Are you able to replicate the issue on a new, simple project?

Re: Problem with point lights in custom light

PostPosted: Mon Dec 17, 2018 7:10 pm
by deadlycrow1
Amplify_Borba wrote:We've ran another test with the previously shared shader example, with the addition of an Outline node, and were unable to replicate the issue:

Image

Image

Perhaps it could be related to your lighting settings?

Are you able to replicate the issue on a new, simple project?


I've created another scene, with several more spheres, all static, recreated the shader you showed me, actually i created a new shader file. I'm using unity 2018.3.0f2

and the problem still happens:

Image

also the node tree:

Image

and i changed nothing from the default settings when you create a shader:

Image

help me please :(

Re: Problem with point lights in custom light

PostPosted: Tue Dec 18, 2018 10:41 am
by Amplify_Borba
Unfortunately we can't seem to replicate this behavior on our side.
Are you running the latest ASE version available from our website?

If possible, please try to replicate it in a new project with just ASE imported, in order to ensure that the issue might not be related to your current project's settings.

Also, we're going to need you to share a simple sample project with the issue present so that we can debug it, since we've been unable to replicate it, apologies for the inconvenience.

Re: Problem with point lights in custom light

PostPosted: Tue Dec 18, 2018 1:20 pm
by deadlycrow1
I'm using the last version on the assetstore at least,well, where can i send the sample project? and i will test it on a blank project and see how it goes. could it be that i updated the unity version of the project (from 2018.2 to 2018.3)?

Re: Problem with point lights in custom light

PostPosted: Tue Dec 18, 2018 1:50 pm
by deadlycrow1
Exactly the same happens in a blank project, look, oh, also i forgot to mention that it only happens in playmode:

Image

but when i press play:

Image

i have the project sample ready, where do i have to send it? should i just post it here?

Re: Problem with point lights in custom light

PostPosted: Tue Dec 18, 2018 3:32 pm
by Amplify_Borba
I can confirm that the issue is present while in play mode, as we've only tried to replicate it in the scene view, so thank you for providing that additional detail!

I'll escalate the issue to the developer for further investigation, we'll let you know as soon as we have any developments!