Page 1 of 1

Trying to stop this overlap

PostPosted: Wed Aug 29, 2018 12:51 am
by Petey
Hi there,

I know transparency is a bit of a tricky area to manage sometimes but I was wondering if anyone knows a way to stop these transparent objects from overlapping? I have a few simple items like this in a UI and I'd love to be able to jut fade them on and off without that. I'm sure I've managed it before but I cant figure it out now :(

Image

Thanks,
Pete

Re: Trying to stop this overlap

PostPosted: Wed Aug 29, 2018 10:31 am
by Amplify_Borba
Hello Pete, dealing with transparency is a bit tricky indeed! According to the way you've set up your meshes, setting different Render Queues per material might help mitigate the situation, although it might not work for all cases.

In this case you'd set a higher Render Queue value on what you would want to be rendered later, so that it will stay on top of materials with lower values.

Please let me know if this helps, thanks!

Re: Trying to stop this overlap

PostPosted: Thu Aug 30, 2018 12:24 am
by Petey
Hey thanks for that, adjusting the render order isn't working for me in this case sadly as they are all the one object.
I did find a shader code solution that I feel could work but it requires multi passes. Do you think something like this might work (and be possible in Amplify Shader)?

https://forum.unity.com/threads/shader- ... st-2932468

Thanks,
Pete

Re: Trying to stop this overlap

PostPosted: Thu Aug 30, 2018 9:26 am
by Amplify_Borba
It's definitely possible to make multi-pass shaders in ASE through our Shader Template system, which allows the creation of custom shaders that accommodate for situations where the Standard Surface shader might limit you.

These require some shader knowledge in order to set up, I'd advise you to read the shared wiki page thoroughly as it explains the specificities of this system, together with a few samples that explain its specific tags and behaviors.

I'm also sharing a shader sample, for your convenience, that will soon be available in the main ASE package:

MultiPassDistortionSample.zip
(391.26 KiB) Downloaded 699 times


Please let me know if you have any further questions, thanks!

Re: Trying to stop this overlap

PostPosted: Fri Aug 31, 2018 1:58 am
by Petey
Cool thanks!

Re: Trying to stop this overlap

PostPosted: Fri Aug 31, 2018 9:24 am
by Amplify_Borba
No problem, glad to be of assistance!

Have you had the chance to rate and review Amplify Shader Editor? It would be awesome if you could share your experience with the Unity community, the Unity Asset Store thrives on user interaction and direct feedback.
Every bit helps and your feedback is extremely valuable to us!

Feel free to get back in touch if you have further issues or questions, thanks!

Re: Trying to stop this overlap

PostPosted: Sat Sep 01, 2018 12:48 am
by Petey
Thanks, I put in a review already five star :P
I managed to get the effect working to! -
Image

Re: Trying to stop this overlap

PostPosted: Sat Sep 01, 2018 12:51 am
by Petey
Image
Here's a better gif :)

Re: Trying to stop this overlap

PostPosted: Sat Sep 01, 2018 2:20 pm
by Ricardo Teixeira
Looking good ;)

Be sure to let us know if you ever need any additional assistance.