Re: [osg-users] Flush event stack

2011-05-03 Thread Sergey Polischuk
Hi, Lalit You can transform point to screen coordinates by multiplying with correct camera view matrix(if your coords in world space) and camera perspective projection matrix. Cant help much with finding nearest points tho. Cheers, Sergey. 02.05.2011, 14:39, Lalit Manchwari

Re: [osg-users] Flush event stack

2011-05-02 Thread Lalit Manchwari
Thanks for reply, I have some another question. Using osgUtil::PolytopeIntersector we get the x, y, and z coordinates at current mouse position. Can I do opposite of it, means if I have x, y and z coordinate then, can I calculate the screen coordinate. Actually I have to find points

[osg-users] Flush event stack

2011-04-30 Thread Lalit Manchwari
Hello friends, I am working on 3-D point data and using osgUtil::PolytopeIntersector to get the x, y, and z coordinates on mouse move event and show it on status bar. But my program becomes very slow. I had make a class: class CMousePickHandle : public osgGA::GUIEventHandler and working on

Re: [osg-users] Flush event stack

2011-04-30 Thread Sergey Polischuk
Hi, Lalit You can get event queue from osgViewer viewer or view and use takeEvents method, it leave current queue empty. Cheers, Sergey. 30.04.2011, 10:26, Lalit Manchwari manchwari.la...@gmail.com: Hello friends, I am working on 3-D point data and using osgUtil::PolytopeIntersector to get