jit.gl.mesh to matrix or texture or 2D graphics?

visualpaco's icon

Dear all,
is it possible to send the geometries created by a jit.gl.mesh object into a matrix which could then be used for videomapping or for syphon communication with other softwares?

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

You don't need to send to matrix, but you can capture your mesh to texture using jit.gl.node

visualpaco's icon

many tnx LSKA!
I did something like that. The problems are 2 now: in the render I use to erase_color with an alpha which leaves traces on the backround (0.06+ screenshot attached), effect which I lost passing to a matrix (either through jit.gl.asyncread).
The second issue is the quality of the output I get out from the gl.node framework... it loses a lot of detail respect to the original dynamic mesh...
do you have any suggestion about quality loseless solutions?
Thanks a lot!

Rob Ramirez's icon

check out Max 6.1/examples/jitter-examples/gen/smear.o.vision.maxpat for a solution to the erase_color problem.

as far as detail, by default the gl.node renders at the exact resolution as your drawing destination window, so there should be no difference.
you're sending the output through a gaussian blur slab, which may be what you're noticing as loss of detail.

visualpaco's icon

Tnx a lot Rob!
Nice to discover the things and object you quoted.
The problem I'm still getting, also using the smear.o.vision solution (which is great!), is that passing through syphon into resolume arena or mad mapper I get a low resolution image respect to the Max render...
Any cue about a better resolution for Max renders via syphon?

It would be really great and relaxing to know that :)
Many thanks!!!
P.