Forums > Jitter

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

April 7, 2013 | 5:58 pm

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]


April 7, 2013 | 6:00 pm

Patch in copy/paste way :

– Pasted Max Patch, click to expand. –

April 8, 2013 | 7:05 pm

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. –

Viewing 3 posts - 1 through 3 (of 3 total)