Transparency Question

ardaksoy's icon

Hello,

I am trying to make the mesh object transparent in the positions where the values going in to the mesh are equal to 0. However I want to keep the gradual transparency I have at the moment. In other words, I don't want to see the black plane where there are no deformations but keep the fade out effect I have. It feels like this suppose to be an easy thing to do but couldn't seem to work it out.

Max Patch
Copy patch and select New From Clipboard in Max.

Thank you.

Rob Ramirez's icon

you can do something like multiply your color matrix alpha-plane by the vertex displacement matrix.

ardaksoy's icon

Excuse my ignorance but what is "vertex displacement matrix"?

Wetterberg's icon

your vertices are the ones in jit.gl.mesh. The matrix that displaces them is the output of jit.catch~ - but I think it's the output of the "flow" matrix you're supposed to use for this, too.

Multiply that matrix with your alpha channel inside the colorselect patcher, and you should be close.

ardaksoy's icon
Max Patch
Copy patch and select New From Clipboard in Max.

I tried what you told me. I am closer to what I want but not quite there yet. I think I need to get the positions where displacement is zero then multiply it with my alpha channel but I don't know how to do that.

ardaksoy's icon

Ok, I managed to get all the 0 values from a matrix but that didn't work as I hoped. Any other ideas?

ardaksoy's icon

anyone?

Rob Ramirez's icon

no need to bump a thread after one day, on a weekend.

the patch you posted looks to me like exactly what you're asking for.
what's not working for you?

ardaksoy's icon

I am sorry for the bump. I have a deadline to meet for my university class, I guess I just panicked a little bit.

I am trying to get rid of the black plane while keeping other parts unchanged. I know the the black plane is disappeared right now but some parts of the displaced mesh is also transparent.