Trying to stop this overlap

Your feedback is very important to us. We are listening.
Post Reply
Petey
Posts: 13
Joined: Sat Dec 02, 2017 10:18 am

Trying to stop this overlap

Post 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
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Trying to stop this overlap

Post 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!
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!
Petey
Posts: 13
Joined: Sat Dec 02, 2017 10:18 am

Re: Trying to stop this overlap

Post 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
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Trying to stop this overlap

Post 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
(389.78 KiB) Downloaded 1298 times
Please let me know if you have any further questions, thanks!
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!
Petey
Posts: 13
Joined: Sat Dec 02, 2017 10:18 am

Re: Trying to stop this overlap

Post by Petey »

Cool thanks!
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Trying to stop this overlap

Post 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!
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!
Petey
Posts: 13
Joined: Sat Dec 02, 2017 10:18 am

Re: Trying to stop this overlap

Post by Petey »

Thanks, I put in a review already five star :P
I managed to get the effect working to! -
Image
Petey
Posts: 13
Joined: Sat Dec 02, 2017 10:18 am

Re: Trying to stop this overlap

Post by Petey »

Image
Here's a better gif :)
User avatar
Ricardo Teixeira
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: Trying to stop this overlap

Post by Ricardo Teixeira »

Looking good ;)

Be sure to let us know if you ever need any additional assistance.
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