jit.phys.world to jit.gl.cornerpin

Lanz's icon

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,

Best
Lanz

Rob Ramirez's icon

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

Lanz's icon

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,

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

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!
Best
Lanz

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

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.

Lanz's icon

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