Page 1 of 1

Lod fade node not working

PostPosted: Wed Sep 05, 2018 1:14 pm
by GeorgeV
Hello,

I am using Amplify shader 1.5.6, and i have problem with Lod fade node to make it work, i followed instruction on your wiki page and forum post viewtopic.php?f=23&t=732,
but still have problem.

When i have everything set in shader for LoD fade, mesh just disappear and appear when lod transition happen but when transition end again cant be seen.

If you need more detail about my shader, screenshot or something i can provide.

thanks

Re: Lod fade node not working

PostPosted: Wed Sep 05, 2018 1:41 pm
by Ricardo Teixeira
Greetings,

Thank you for getting in touch, we would be happy to help!

What's your current Unity version?

Thanks!

Re: Lod fade node not working

PostPosted: Thu Sep 06, 2018 12:48 pm
by GeorgeV
Hey, Unity 2018.1.3 version is in my current project, didn't test shader in any other version.

Re: Lod fade node not working

PostPosted: Thu Sep 06, 2018 12:53 pm
by Ricardo Teixeira
GeorgeV wrote:Hey, Unity 2018.1.3 version is in my current project, didn't test shader in any other version.


Thank you for the additional information.

Any chance of a sample?

Re: Lod fade node not working

PostPosted: Fri Sep 07, 2018 8:33 am
by GeorgeV
hey, here is test lod fade shader, and lod groupe, again i can see transition happening but mesh is invisible after transition.

Re: Lod fade node not working

PostPosted: Fri Sep 07, 2018 11:52 am
by Ricardo Teixeira
GeorgeV wrote:hey, here is test lod fade shader, and lod groupe, again i can see transition happening but mesh is invisible after transition.


Thank you for the sample, I understand what you meant now. As mentioned in the LOD Fade node Wiki Node page, the value only represents the fade created by LODGroups and returns 0 when not fading, this means that some additional logic might be necessary when the objects aren't fading but are still being rendered.

A simple Compare node should do it.

Image

Hope it helps!

Re: Lod fade node not working

PostPosted: Fri Sep 07, 2018 2:26 pm
by GeorgeV
Thanks that solved my problem with lod fade :)

Re: Lod fade node not working

PostPosted: Fri Sep 07, 2018 4:18 pm
by Ricardo Teixeira
GeorgeV wrote:Thanks that solved my problem with lod fade :)


Awesome ;)