jit.gl.model | matrix output

capob's icon

Hi there,

I am pretty new to jitter. And I would like to understand how the data of a 3D model is collected by the jit.gl.model object.

is this right :

-First plane of the matrix : X coordinates
-2nd plane : Y coordinates
-3rd : Z coordinates
-4th : ????????WHAT IS STORED IN THIS PLANE? ???????

On top of this I would like to know in whick order the points of the 3D model are being processed? Is it from bottom to top and left to right?

Here is a little patch I made trying to understand how this works, but I believe I need some more explanation :

Thank you very much

readobj_asmatrix.maxpat
Max Patch
Graham Wakefield's icon
capob's icon

Thank you very much,

but this document still doesn't tell me in which order the vertices are getting collected, do you have any idea? It doesn't seem to follow any of the X, Y or Z axis, so what defines the order in which the vertices are getting collected?

Thanks!

Rob Ramirez's icon

the model file loaded by jit.gl.model determines the order of the vertices.