Trying to stop this overlap

Your feedback is very important to us. We are listening.

Trying to stop this overlap

Postby Petey » Wed Aug 29, 2018 12:51 am

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

Re: Trying to stop this overlap

Postby Amplify_Borba » Wed Aug 29, 2018 10:31 am

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

Re: Trying to stop this overlap

Postby Petey » Thu Aug 30, 2018 12:24 am

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

Re: Trying to stop this overlap

Postby Amplify_Borba » Thu Aug 30, 2018 9:26 am

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

Re: Trying to stop this overlap

Postby Petey » Fri Aug 31, 2018 1:58 am

Cool thanks!
Petey
 
Posts: 13
Joined: Sat Dec 02, 2017 10:18 am

Re: Trying to stop this overlap

Postby Amplify_Borba » Fri Aug 31, 2018 9:24 am

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

Re: Trying to stop this overlap

Postby Petey » Sat Sep 01, 2018 12:48 am

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

Postby Petey » Sat Sep 01, 2018 12:51 am

Image
Here's a better gif :)
Petey
 
Posts: 13
Joined: Sat Dec 02, 2017 10:18 am

Re: Trying to stop this overlap

Postby Ricardo Teixeira » Sat Sep 01, 2018 2:20 pm

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


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests