jit.gl. objects communication with syphon

Anton Harsh's icon

hi! i 'm a begginer in max so i need some help in my project.
First of all i am trying to send video data to syphon using gl objects and especially the ''jit.gl.slab'' object. I have read some other topics about other gl objects communication with syphon and the only thing that i found out is every guy suggest to use some objects such us ''jit.gl.node'' to communicate with syphon.

If there is anyone could give me a peace of advise, i will appreciate it.
Thanks.

mmake's icon

Hey!

Jit.gl.node @capture1, captures every gl object you connect to the center port. Gl.node then outputs everything connected as a texture, from the left port. You can send that texture to a slab, or straight to Syphon.

Max Patch
Copy patch and select New From Clipboard in Max.

Anton Harsh's icon

OK! i opened the patch but the jit.gl.node is missing, perhaps i don't have it.
I use max 5, i was wondering if that object is contained only in max 6.
let me know...
cheers!

Anton Harsh's icon

ok guys i searched about some gl objects tha are missing from my max 5 library and my problem is all the objects i want is for max 6.
If anybody could help to make an alternative way to manage the gl.slab communication with syphon with max 5, it would be great.
thanks a lot...!

mmake's icon

Maybe with jit.gl.texture...

Max Patch
Copy patch and select New From Clipboard in Max.

mmake's icon

Oh, and i've got anim.drive there also. That wont work...wait a sec...

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

mmake's icon

I have not used Max5, but i think you can use jit.gl.texture if you want to capture gl-objects. With a videostream it's even easier, because you can just stream that baby straight into Syphon, or through a slab.

Max Patch
Copy patch and select New From Clipboard in Max.

mmake's icon

Here's a picture of the patches, just in case somethings not working in Max5.

dtr's icon

In Max5 you can use the 'to_texture' message to jit.gl.render to render the whole scene to a texture. These things are a lot easier with jit.gl.camera/node in Max6.

@Anton: please keep in mind that Syphon works with openGL textures. It can only receive the output of an object if that output is a texture. A matrix sent into jit.gl.slab/texture is converted to a texture. Not sure if you can send a matrix straight into the syphon object.