Re: [osg-users] Origin of pixel coordinates?

2012-02-21 Thread Jen Hunter
Hi Paul, oh ok, my fault. I should have thought of that. Thank you very much for your reply, now it's clear. :) -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=45632#45632 ___ osg-users mailing list

[osg-users] Origin of pixel coordinates?

2012-02-17 Thread Jen Hunter
Dear community, I use the OpenCV Library to collect feature points in an image and I need to do intersection testing through the 2D-coordinates of these feature points with osg. The origin of the opencv image data structure is top left. The topmost pixel on the left side is 0,0 and the

Re: [osg-users] Origin of pixel coordinates?

2012-02-17 Thread Paul Martz
Your code is simply taking the results of the GUIEventAdapter's mouse position conversion from the window system to osgGA. Since the mouse moves in integer increments, I'm not surprised that you're getting confusing results. A knowledge of how OpenGL coordinate systems work would save you a