Coloured PLY Mesh with interior material? #1520
-
Hi all, am new to Mitsuba so if this is a dumb question, apologies. I have a long, snaking tubular mesh (approximated with typically thousands of short linear segments) defined in a PLY file with per-vertex colour. I can colour the surface of it in a Mitsuba scene using the "vertex_color" mesh attribute, and that works for diffuse, principled and thin-principled plug ins. What I don't seem to be able to do is to define a glass interior alongside that surface colour - where I'm trying to get to is long, thin, coloured glass tubes where there's a colour gradient along the tube. Have looked at the medium and volume options as well as per-vertex colour and I can't see my way through, but that might just be me missing something. Any and all suggestions welcomed - should add this is for fun, the future of mankind is not at stake if it can't be done. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
As usual the act of asking the question leads to a sudden insight - turns out with the principled BSDF, setting base_color from the mesh's vertex colour, setting spec_trans high, and dropping the roughness to 0.0, produces exactly the glassy tubes I'm after. |
Beta Was this translation helpful? Give feedback.
As usual the act of asking the question leads to a sudden insight - turns out with the principled BSDF, setting base_color from the mesh's vertex colour, setting spec_trans high, and dropping the roughness to 0.0, produces exactly the glassy tubes I'm after.