Transparency on mesh

Your feedback is very important to us. We are listening.
CharlesDoan
Posts: 7
Joined: Fri Dec 07, 2018 7:21 pm

Transparency on mesh

Post by CharlesDoan »

Hi, I've tried to find a solution on the forums but I haven't been able to find it. It could be that it's so simple no one bothered to ask. Anyway, I'm trying to have a transparency gradient on my mesh (this is a simple mesh, just a cylinder), so that when I offset the texture, it fades out. Any help would be appreciated! Also, I'm verryyyy new to shaders, so I'm just kind of fumbling through it all. :)
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Transparency on mesh

Post by Amplify_Borba »

Hello, thank you for getting in touch and for your support!

Could you please elaborate on the effect?
How exactly would offsetting the texture UV's influence opacity? What would make it increase or decrease?

A screenshot or video example would be great, just so that we can better help you achieve it.
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!
CharlesDoan
Posts: 7
Joined: Fri Dec 07, 2018 7:21 pm

Re: Transparency on mesh

Post by CharlesDoan »

test.jpg
test.jpg (140.03 KiB) Viewed 9892 times
I was watching one of the beginner videos and thought something like this would work, but it doesn't do anything. I'm probably thinking about it in the wrong way. If I plug it into the opacity clip, it'll work but it won't be a soft edge like I want it to be.
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Transparency on mesh

Post by Amplify_Borba »

If you set your shader's Blend Mode to Transparent and test the following setup, it should fade the object in / out as you drag the slider:

Image

Notice that I'm editing the shader in Material Mode and with the float set as a property, so that I can see the results instantly without having to compile every time I change the value through the slider.

Image
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!
CharlesDoan
Posts: 7
Joined: Fri Dec 07, 2018 7:21 pm

Re: Transparency on mesh

Post by CharlesDoan »

test2.jpg
test2.jpg (189.4 KiB) Viewed 9869 times
Hmm, not sure what I'm doing wrong but I get this when I follow the instructions.
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Transparency on mesh

Post by Amplify_Borba »

Apologies if I wasn't fully clear before, but you'll always need to compile your shader after adding or removing any connection, can you confirm that you've compiled it after changing the node setup?
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!
CharlesDoan
Posts: 7
Joined: Fri Dec 07, 2018 7:21 pm

Re: Transparency on mesh

Post by CharlesDoan »

No worries, but yeah I did compile it. I'm going crazy trying to figure out how mine is different and everything looks the same with how yours is setup.

I also just tried starting fresh with a new shader/material and cylinder from Unity but I get the same result.
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Transparency on mesh

Post by Amplify_Borba »

I can't seem to replicate the behavior you're getting, can you confirm that you're using the latest available version from our website?

If so, could you send us the shader so that we can examine the generated code?
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!
CharlesDoan
Posts: 7
Joined: Fri Dec 07, 2018 7:21 pm

Re: Transparency on mesh

Post by CharlesDoan »

Ok, I'll try updating. I just checked and I'm on version 1.58.
CharlesDoan
Posts: 7
Joined: Fri Dec 07, 2018 7:21 pm

Re: Transparency on mesh

Post by CharlesDoan »

test3.jpg
test3.jpg (188.17 KiB) Viewed 9855 times
I still get the same result... :cry: How do I send you my shader?
Post Reply