Forums > Jitter

jit.gl.model: using vertex color values

November 8, 2013 | 4:00 am

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


November 27, 2013 | 2:16 pm

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.


November 27, 2013 | 2:39 pm

Hi Rob,

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

Thanks!
Mattijs


Viewing 3 posts - 1 through 3 (of 3 total)