I've traced the root of my camera manipulator woes to the values coming to it 
from the GUIEventAdapter parameter.

If I breakpoint any handler in my custom camera manipulator (or the Doom and 
FirstPerson manipulators from the boards I based it off of) that takes a 
GUIEventAdapter as a parameter, examining the EA's contents shows zeros for the 
mouse position and ranges of -1 to 1 for the min and max values.

Event type, time, and some other values look correct. However when I first 
start my application (MFC with OSG in a view), the window x and y values are 
zero and the window width and height are wrong. Resizing the view fixes these 
values, but not the mouse results.

I'm thinking that it's the max and min values being left to their default -1 to 
1 ranges that is causing the mouse position to be zero. However I've been 
unable, as yet, to trace where these values should be getting set... Since they 
aren't.

The Doom and FirstPerson manipulators have worked for other people, so I don't 
think the fault lies solely there, or in my derivative manipulator. However 
other manipulators (that come with OSG) work correctly, so I'm not sure that my 
view setup is at fault either.

I'm hoping someone can point me in the right direction as to why the 
GUIEventAdapter's min and max x and y values wouldn't be getting correctly set.

 ~ Chris Innanen
 ~ Nonsanity

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





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

Reply via email to