Transparency for Mesh Colors

Hi all,

I have a spherical mesh, which I have given color by using deconstruct mesh and construct mesh. I want to add transpareny to the mesh with the same colors.

I tried doing it with create material component but the end mesh doesn’t have the same colors. Can anyone help me with this?

Regards,
Kedar

meshColor.gh (7.3 KB)

Hope this helps

meshColor-re.gh (4.6 KB)

Hi, Thank you for the reply. But I am looking for the same array of colors as seen in the construct mesh component, just the transparency needs to be reduced.

As far as I know, mesh vertex colors do not show transparency. It looks like it’s on McNeel’s radar though.
https://mcneel.myjetbrains.com/youtrack/issue/RH-49604

1 Like

The only way I know is to save mesh vertex colors as a bitmap, then create a transparent material with this bitmap.

While certainly not perfect, I was messing around with the gradient hatch in Rhino WIP, and got something kind of close. Unfortunately, in the current build, the baking of the gradient hatch is broken. But it is pretty awesome!

1 Like

Hi Chris,
Thank you for the reply. Yeah the mesh vertex don’t show transparency, I had even tried adding the alpha value by remapping the color output from the mesh color, but it didn’t work out.

I see this looks interesting, unfortunately I don’t have access to Rhino 7 WIP and the Gradient Hatch Component is available only in Rhino 7 is it?

Hi @Petras_Vestartas ,

Thank you for the reply. I don’t exactly know how to make a bitmap from mesh vertex, if you don’t mind can you explain it to me?

This looks amazing, thank you so much Chris. So, definitely need Rhino 7 for this :slight_smile: This opens up a lot of different ways to visualize meshes.

Definitely looks promising! And yes, it is Rhino 7 WIP only. Maybe support for transparency will get added to mesh vertices soon! :crossed_fingers:
Lastly, as I’m sure you know, hatches only work on planar regions/boundaries, so if you are using meshes, you will need to consider a workflow that results in planar faces. (one example might be simply triangulating the mesh. This will mean that all face boundaries are planar).

Yes, I hope transparency for meshes gets added soon :slight_smile:

Yes, I realized that the mesh needs to be planar for transparency to work. I will work out a workflow, or simply triangulate them as you said. Thank you so much for all the help Chris :slight_smile: