Page 1 of 1
Make An Object Partially Invisible
Posted: Sat Mar 02, 2019 5:54 am
by mirkojpn
Hello!
I'm Trying to make an Object Partially invisible, and chose in runetime by material property witch part to show, but right now i have some transparent stuff but not totally invisible... anyone can help me to do this?
i'm pretty new with shader stuff so i'm getting confused...
https://ibb.co/4pwFKfB
Re: Make An Object Partially Invisible
Posted: Sat Mar 02, 2019 9:49 am
by mirkojpn
just did it by setup opacity, now i need to
Find the angle of the fragment based on the vector that goes from center to the fragment
Then check the angle against your criteria
any help?
Re: Make An Object Partially Invisible
Posted: Sat Mar 02, 2019 10:28 am
by mirkojpn
Actually this is what i have actually, i want to be able to set the opacity to 1 from a specific point to an other then set to 0 all the other part
https://ibb.co/hZphS69
Re: Make An Object Partially Invisible
Posted: Sat Mar 02, 2019 2:20 pm
by mirkojpn
i almost there.... just i must to be able to chose from where to mask it....anyone can help me?
https://ibb.co/pfp26wX
Re: Make An Object Partially Invisible
Posted: Thu Mar 07, 2019 12:13 pm
by Amplify_Borba
Hello, thank you for getting in touch and for your support!
You can either use Opacity or Opacity mask, the difference being that through Opacity you can have different transparency values while when using the Opacity Mask, the object will either be fully visible or fully invisible ( a good example for this is chain fences ).
Can you please elaborate on how you're planning the effect to behave?
Here's a simple example using the Vertex Position node and a slider to produce the opacity mask, that hides the object through the Y axis:
