How to Access Vertex Colors in jit.gl.mesh?

DaSheng Hen's icon

I can successfully get vertex color data using jit.gl.model (it loads them by default without extra setup).

Now, I want to add some animation, so I'm trying to use:

jit.gl.model @matrixoutput 2 → jit.gl.mesh

But jit.gl.mesh doesn’t seem to receive the vertex color information anymore.

How can I pass the vertex colors from jit.gl.model to jit.gl.mesh?

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

just need to grab the color planes (8- 12) and send them to the color_matrix input of jit.gl.mesh

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

DaSheng Hen's icon

@ROB RAMIREZ

Thanks for your help!
I can run it smoothly, but I still don't understand the logic. I will study it carefully!