changing render contexts in GL, with slab and nodes..

ABHoffman's icon

hi everybody -

i am trying to figure out how to create multiple GL nodes that can be activated/deactivated and sent to one render window..
i'm not sure the best way to do this.. can anyone help?

4345.TESTPATCH.maxpat
Max Patch
ABHoffman's icon

Oops, sorry, I didn't include an important part of that test.. Now included.

4346.TESTPATCH.maxpat
Max Patch
Wesley Smith's icon
Max Patch
Copy patch and select New From Clipboard in Max.

You can use the @enable attribute for both the jit.gl.node and jit.gl.videoplane to disable rendering and final display. See the patch below for how to toggle different "scenes" on and off.

ABHoffman's icon

Thanks, Wesley!

ABHoffman's icon

Now, if I wanted to render these discrete sections in subpatchers, would there be a way to do that also? Or would they all require individual instances of jit.gl.render?

Wesley Smith's icon

You can simply put the node, gridshape and videoplane in a subpatcher. You don't need a gl.render except at the top level.

ABHoffman's icon

Thanks again, Wesley...I appreciate the generosity greatly..