Hi,

 

I am trying to make an FPS style motion model using OSG.  Every frame I
calculate the mouse translation and then reset the mouse back to the
center of the screen.  The problem is if I call
osgViewer::View::requestWarpPointer() to re-center the mouse I seem to
flood the system with input events and the end result is that I seem to
get much fewer mouse movement updates.  I changed my code to only
re-center the mouse if the mouse moved, but even still I am only getting
a mouse moved event about every third frame with continuous mouse
movement.  This leads to a very choppy feeling mouse any ideas? Until
the upgrade to OSG 2.0 the motion model worked fine, ever since it's
seemed as though we are not re-centering it properly.  Is there a better
way to re-center the mouse?

 

Brad

 

Senior Software Engineer

Alion Science & Technology Corporation

BMH Operation - A CMMI Maturity Level 3 Organization

5365 Robin Hood Road, Suite 100

Norfolk, VA 23513

Desk:  (757) 857-5670 x257

Fax:  (757) 857-6781

www.alionscience.com <http://www.alionscience.com/> 

 

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to