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,
Best
Lanz
the easiest is probably to enable @capture 1 on you gl.camera, and send the output texture directly to the gl.cornerpin.
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!
Best
Lanz
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.
Thanks for your fast reply Rob, perfect all working great.
Best,
Lanz