Loading .ply model

Jonny Fuller-Rowell's icon

Does anyone know if it's possible to load .ply files. I have a point cloud file that unfortunately as it is not a mesh, cannot be converted into an .obj for the jit.gl.model object. But wondered if there was another way?

Rob Ramirez's icon

.ply files are supported by jit.gl.model, however they must contain faces. If all you have is vertex data (e.g. from a point cloud), it would be pretty trivial to simply parse out that data and load it directly into a matrix for jit.gl.mesh to render as @draw_mode points, since the files are simply text files.