Lod fade node not working

Node-based Shader Editor
Post Reply
GeorgeV
Posts: 4
Joined: Wed Sep 05, 2018 1:03 pm

Lod fade node not working

Post 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 http://amplify.pt/forum/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
User avatar
Ricardo Teixeira
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: Lod fade node not working

Post by Ricardo Teixeira »

Greetings,

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

What's your current Unity version?

Thanks!
Sales & Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
GeorgeV
Posts: 4
Joined: Wed Sep 05, 2018 1:03 pm

Re: Lod fade node not working

Post by GeorgeV »

Hey, Unity 2018.1.3 version is in my current project, didn't test shader in any other version.
User avatar
Ricardo Teixeira
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: Lod fade node not working

Post 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?
Sales & Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
GeorgeV
Posts: 4
Joined: Wed Sep 05, 2018 1:03 pm

Re: Lod fade node not working

Post by GeorgeV »

hey, here is test lod fade shader, and lod groupe, again i can see transition happening but mesh is invisible after transition.
Attachments
LOD.JPG
LOD.JPG (45.86 KiB) Viewed 6012 times
lodFadeShader.rar
(1.73 KiB) Downloaded 900 times
User avatar
Ricardo Teixeira
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: Lod fade node not working

Post 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!
Sales & Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
GeorgeV
Posts: 4
Joined: Wed Sep 05, 2018 1:03 pm

Re: Lod fade node not working

Post by GeorgeV »

Thanks that solved my problem with lod fade :)
User avatar
Ricardo Teixeira
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: Lod fade node not working

Post by Ricardo Teixeira »

GeorgeV wrote:Thanks that solved my problem with lod fade :)
Awesome ;)
Sales & Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Post Reply