jit.phys.world to jit.gl.cornerpin

Feb 25, 2013 at 5:42pm

jit.phys.world to jit.gl.cornerpin

Hey guys I’m sure this is straight forward but i just can’t figure it out correctly.

I’m looking at jit.phys.world with a jit.gl.camera,
now how do i send the camera view to jit.gl.cornerpin?
Any help would be great,


Feb 25, 2013 at 7:00pm

the easiest is probably to enable @capture 1 on you gl.camera, and send the output texture directly to the gl.cornerpin.

Feb 25, 2013 at 7:27pm

Hey Rob thanks for your reply,

Ive done what you said but it didn’t have the result i expected. it gave a grey screen,

here I’ve pasted my patch with camera capture set to 0 so you can see what I’ve got going on,
It is the world i am trying to attach the cornerpin to, to map it onto a real object.
Hope you can help me out!

– Pasted Max Patch, click to expand. –
Feb 25, 2013 at 7:43pm

ok, in this case it’s probably better to use jit.gl.node.
simply add all your opengl objects to the jit.gl.node sub-context (by conntecting the middle outlet, or by providing the sub-context name to as the first argument to your opengl object).
then enable capturing on the gl.node, and send to the cornerpin.

– Pasted Max Patch, click to expand. –
Feb 25, 2013 at 8:40pm

Thanks for your fast reply Rob, perfect all working great.


You must be logged in to reply to this topic.