3D Matrix with jit.gl.multiple
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.
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.
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:
Thank You so much Rob and Andro, this was really helpful !