jit.gl.model: using vertex color values

Mattijs's icon

Heya,

Does anyone know whether it is possible to show the color values from a .ply file with jit.gl.model?

I have a .ply model file here: http://www.arttech.nl/MeshedReconstruction.ply

When I open this file in MeshLab (http://meshlab.sourceforge.net/), I see the vertex colors as expected (see screenshot), but when I open this in the jit.gl.model help file and choose material_mode 2, I don't see these colors. I guess that means that they don't count as a material.

Any insights would be great :)

Thanks,
Mattijs

Rob Ramirez's icon

jit.gl.model does not support loading vertex color values.

however if you can load your color value data into a matrix, you can use gl.model matrixoutput with gl.mesh, and send in the color-matrix to gl.mesh.

Mattijs's icon

Hi Rob,

I hadn't thought of it that way, getting the color values into a matrix should be do-able ;)

Thanks!
Mattijs