Transparency\alpha in meshes and other elements - SOLVED

Hello!

I have recently discovered Cables and I’m loving it!

I’m having a hard time, however, understanding how the alpha\transparency works.

As an example, I have attempted to recreate a quick doodle I had made in Three: https://ermanno.xyz/portrait/

For reference, the model is composed of two meshes (the face and the outer part of the eyes) and a sphere (the eyeball), where the face meshhas the highest z position and the sphere the lowest.

In the patch I created ( https://cables.gl/p/5dd9c98677be7738f5cb4300?s=6c26o7hDDnItkcVS ) the sphere can be seen through the transparent parts of the face mesh, but not through those of the outer eye.

Attempting to add an Opacity Texture has no effect.

Additionally, the face texture seems to have jagged edges in the transparent part (the texture itself is not jagged - it’s the same used in the Three doodle). For reference, all meshes are power of two - this is not a resizing issue.

I know I must be doing something wrong, but I can’t figure out what D:

Any feedback would be truly appreciated :slight_smile:

Hi quHCcGSrI,

I took a quick look at your patch and took the liberty of overwriting it :slight_smile:
I added comments to all the relevant changes that I made.
I didn’t try to get it exact but just to show you how to use the texture opacity input of the basic material op.
Hopefully this will help you further.
Your patch currently isn’t set to public which means that others won’t be able to learn from the help that you received. Would you consider clicking patch settings and putting it to public?

Hey Andro! That’s amazing - you really went above and beyond, I truly appreciate that :slight_smile:

I cleaned up the patch, slapped a CC attribution license to it, gave it a more relevant title and made it public - here it is: https://cables.gl/p/g5vgMW

Your more than welcome.
And a massive thank you for sharing your patch and work with the rest of the community!