matrix out of gl.sketch

conor's icon

Hi, I'm having trouble getting a matrix out of my gl.sketch, can anyone give me any pointers. I have created a point cloud in gl.sketch with glvertex and I am hoping to be able to export it as an .obj file. should I be writing my glvertex commands into a 3 x 3 matrix,and if so how do I know how large to make the matrix. Or is there a simpler way?
Any help would be greatly appreciated. Conor

Rob Ramirez's icon

sketch does not support matrixoutput.
however, you should be able to pack the matrix yourself using the exact same data you give to sketch for drawing no?

post a basic example of your patch if you need some pointers.

conor's icon

Thanks very much, I'll give that a go.