:? 

I'm trying to put together a camera manipulator for first-person viewing of a 
scene. I want to use the WASD keys to move around, and use the mouse for 
looking.

I've managed to adapt the FirstPersonManipulator to use the WASD keys for 
moving, and modified the look logic so I don't need to hold the mouse button 
down to look around, however I'm having some trouble centering the cursor to 
prevent it from leaving the frame of the window.

I set my manipulator up uusing requestWarpPointer (via 
centerMousePointer(ea,us)) to center the cursor on the screen every time the 
cursor moves. The only problem with this approach is that after centering the 
cursor, it's a good half second or so before the next move event is picked up. 
This results in letting the cursor get half way across the screen before 
realizing there's a move and jumping the camera to the left or right 
appropriately.

Am I doing something wrong, or is this just a limitation of the 
requestWarpPointer functionality? Is there some other way I should attempt this?

Thanks,
talyn

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





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

Reply via email to