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
5384.coordinatescornerpin.maxpat
Max Patch
Max Patch
Copy patch and select New From Clipboard in Max.
Patch in copy/paste way :
Max Patch
Copy patch and select New From Clipboard in Max.
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.