jit.gl.cornerpin & jit.gl.node : coordinates

Apr 7, 2013 at 5:58pm

jit.gl.cornerpin & jit.gl.node : coordinates

Hi there,
Thanks to the 'screentoworld' message you can get openGL coordinates from a jit.window. But if a drawing (i.e. from jit.gl.sketch) is sent to jit.gl.node, then sent to jit.gl.cornerpin, the drawing's coordinates are still OK considering jit.gl.render, but wrong considering jit.gl.sketch.
Is it possible to get the right coordinates for jit.gl.sketch ?
A capture and the patch to explain.
Many thanks,
Eric

[attachment=220342,5383]

#67586
Apr 7, 2013 at 6:00pm

Patch in copy/paste way :

– Pasted Max Patch, click to expand. –
#243226
Apr 8, 2013 at 7:05pm

if i understand you correctly, you want to get the click coordinates prior to the gl.cornerpin distortion?
this not possible.
perhaps a workaround is to create a preview gl-context, that displays the scene without the cornerpin, and use that to obtain your coordinates.

– Pasted Max Patch, click to expand. –
#243227

You must be logged in to reply to this topic.