mesh into matrix

Dec 6, 2010 at 5:49pm

mesh into matrix


I’ cant find any info about this in the archives and I’m really stuck.
I want to process my mesh with some shaders and then pass everything into a videoplane, but I cant find the way to put all the content from my mesh into a matrix. Matrixoutput doesn’t work for

Any help will be much appreciated!!

Dec 6, 2010 at 6:55pm

try [] then feed the output matrix again into a

– Pasted Max Patch, click to expand. –
Dec 6, 2010 at 7:59pm

perfect, thanks a lot! :)

Dec 6, 2010 at 8:15pm

mmm, one little issue.. I’m processing the mesh with slab and then I pass everything inside a videoplane, but the original mesh is still visible and if I turn automatic to 0 (on the mesh) I get a black screen..

Dec 7, 2010 at 10:46am

here is a small example patch to show what I mean, if I put the mesh to automatic 0 the output of the videoplane also disappears.
sure I’m missing something.


– Pasted Max Patch, click to expand. –
Dec 7, 2010 at 6:18pm

while your method does work, you really only want to readback opengl to a matrix if you want to do further matrix processing or recording to disk.

the “proper” way to do what you’ve described is to capture to texture with the @capture attribute on your gl.mesh.

here’s your patch modified to demonstrate capturing to texture. it will be much more efficient than using asyncread.

– Pasted Max Patch, click to expand. –
Dec 7, 2010 at 10:03pm

Robert – thanks for this example. Any reason why @capture is not documented in the help or reference files for or the generic OB3D?

Dec 8, 2010 at 6:28pm

none i can think of. thanks for the report.


You must be logged in to reply to this topic.