Login  Register

Re: 2D Picking with Jogl

Posted by gouessej on Sep 27, 2012; 8:31am
URL: https://forum.jogamp.org/2D-Picking-with-Jogl-tp2594712p4026284.html

Hi

Use glOrtho when the perspective matrix is active and don't forget to select the model-view matrix before drawing the object. Ensure your object is in the viewing frustum or you won't see anything. Look at the man:
http://www.manpagez.com/man/3/glOrtho/
Julien Gouesse | Personal blog | Website