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

Aug 28, 2012 at 1:57pm

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

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?

Attachments:
  1. TESTPATCH.maxpat
#64125
Aug 28, 2012 at 5:31pm

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

Attachments:
  1. TESTPATCH.maxpat
#231306
Aug 28, 2012 at 7:14pm

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.

– Pasted Max Patch, click to expand. –
#231307
Aug 28, 2012 at 7:59pm

Thanks, Wesley!

#231308
Aug 28, 2012 at 8:07pm

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?

#231309
Aug 28, 2012 at 8:20pm

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

#231310
Aug 28, 2012 at 8:56pm

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

#231311

You must be logged in to reply to this topic.