3D Matrix with jit.gl.multiple

ferrumsidereum's icon

I need a 3D Matrix for visualizing data. Something like a cube made from many dots at least 70x70x70. In the attached file there is a solution with jit.gl.multiple I read about in the forum. But when i try to expand the matrix to "jit.matrix 3 float32 70 70 70" the system is getting slow and crashing. Is there an alternative way to do it? I am using a MacBook Pro OS X Yosemite 2.3GHz with a NVIDIA GeForce GT 750M 2048 MB.

3D_Cube.maxpat
Max Patch
Andro's icon

Not behind the computer but try lowering the dim count of the cube from 20 20 to 8 8.
Turn back face culling on.
That should help.

Rob Ramirez's icon
Max Patch
Copy patch and select New From Clipboard in Max.

to visualize point clouds, you should use jit.gl.mesh @drawmode points. depending on your machine specs, you should be able to handle 70x70x70 points. play with antialias and point_size attributes to get your desired results. gl.mesh only accepts 1D or 2D matrices, so i modified your patch with a jit.gen to demonstrate how to create a cube volume using a 1D matrix:

ferrumsidereum's icon

Thank You so much Rob and Andro, this was really helpful !