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 manchwari.la...@gmail.com:
 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 around a given coordinate.
 Or is there another method to find the nearest points around a given point 
 (range is also given)

 Thank you!

 Cheers,
 Lalit

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=38919#38919

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 around a given coordinate.
Or is there another method to find the nearest points around a given point 
(range is also given)
 

Thank you!

Cheers,
Lalit

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=38919#38919





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[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 osg version 2.8.2 .
Is there any method for flush the event stack?

Thank you!

Cheers,
Lalit

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=38906#38906





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 
 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 osg version 2.8.2 .
 Is there any method for flush the event stack?

 Thank you!

 Cheers,
 Lalit

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=38906#38906

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org