Amplifying your potential.

Hologram Shader and how to hide faces behind

Node-based Shader Editor
5 posts • Page 1 of 1

Hologram Shader and how to hide faces behind

Postby Tiddan » Mon Sep 25, 2017 11:38 am

Hi. Attached is a screenshot of WIP shader for hologram models.

Sometimes I see hologram shaders that are semi-transparent but you cannot see the complexity on the other side of the model even though their faces are front-facing.

This guy (https://forum.unity.com/threads/transpa ... ts.149511/) has solved the same problem in ShaderLab code but how can I achieve this same effect using ASE?

Sorry for probably a pretty basic question.
Attachments
FighterShaderTest.png
FighterShaderTest.png (70.93 KiB) Viewed 204 times
Tiddan
 
Posts: 3
Joined: Mon Sep 25, 2017 6:14 am

Re: Hologram Shader and how to hide faces behind

Postby Ricardo Teixeira » Mon Sep 25, 2017 12:31 pm

Tiddan wrote:Hi. Attached is a screenshot of WIP shader for hologram models.

Sometimes I see hologram shaders that are semi-transparent but you cannot see the complexity on the other side of the model even though their faces are front-facing.

This guy (https://forum.unity.com/threads/transpa ... ts.149511/) has solved the same problem in ShaderLab code but how can I achieve this same effect using ASE?

Sorry for probably a pretty basic question.


Hello,

Thank you for getting in touch, we would be happy to help. The overlapping transparency result is expected, you will have to add additional code in order to mitigate the problem. Having a shader that fills in the depth buffer before rendering transparency might be enough to resolve the issue.

Try adding the following after "SubShader {"

Pass {
ZWrite On
ColorMask 0
}

Unfortunately, ASE currently does not offer you any options to create multi-pass shaders, you will have to alter the actual generated file. Please keep in mind that any code changes made to the shader file will be discarded when saving the shader in ASE.

Apologies for the inconvenience.
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!
User avatar
Ricardo Teixeira
 
Posts: 670
Joined: Fri Aug 09, 2013 2:26 pm

Re: Hologram Shader and how to hide faces behind

Postby Tiddan » Mon Sep 25, 2017 12:44 pm

Thanks Ricardo for your response.
So are there any plans to support multiple passes in ASE in the future? It seems like all similar editors have this limitation. I must admit I hate these kind of workarounds where you have to remember to edit the autogenerated code - but in this case I would miss the benefits from ASE too much to stop using it :)
Hope you work out a solution for this in the future.


No problem, happy to help. Indeed, it's a troublesome limitation given the way shaders are generated. In any case, it should be possible to do this kind of effects with ASE in upcoming versions, we are working on a viable solution.

Thanks!
Tiddan
 
Posts: 3
Joined: Mon Sep 25, 2017 6:14 am

Re: Hologram Shader and how to hide faces behind

Postby Tiddan » Sat Dec 09, 2017 12:00 am

Hi again Ricardo.

Is there any development on this issue resolved in newest version? It would be awesome to avoid altering the produced script all the time. If making this effect is possible without using multiple passes it would be even better! :)
Tiddan
 
Posts: 3
Joined: Mon Sep 25, 2017 6:14 am

Re: Hologram Shader and how to hide faces behind

Postby Ricardo Teixeira » Sat Dec 09, 2017 6:37 pm

Tiddan wrote:Hi again Ricardo.

Is there any development on this issue resolved in newest version? It would be awesome to avoid altering the produced script all the time. If making this effect is possible without using multiple passes it would be even better! :)


Hello,

Apologies for the lack of updates in regards to that specific request, we have been a bit overloaded lately.

Not so much an issue, it's really the lack of multi-pass support that's preventing you from creating that specific effect. Keep an eye out for updates, multi-pass support is not far off. Unfortunately, Unity has specific transparency related issues that prevent us from offering a possible workaround for the problem.

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!
User avatar
Ricardo Teixeira
 
Posts: 670
Joined: Fri Aug 09, 2013 2:26 pm


5 posts • Page 1 of 1

Return to Amplify Shader Editor

Who is online

Users browsing this forum: No registered users and 2 guests