On 9/29/06, Jeremy Moles <[EMAIL PROTECTED]> wrote:
I commented out just this line as well and things seem to be working
okay. Would dividing by the max size for each value do the trick then?
(Well, probably not, since there's a floor value of -1, which kinda'
confuses me)

Please try my fix, its the proper solution.  I checked in my changes to osgGA in on Monday, but missed this little tweak required to osgProducer.

The -1 to 1 range is Producer's default range for mouse input, the idea is that the mouse input range is non-dimensional, just like OpenGL clip space.  The useful thing about using non dimensional coords is that you can write code that doesn't need to know the window size.

osgGA::GUIEventAdapter changes now allow the window size and the input range to be specified, allowing it map to Producer's flexibility much better.  There is still a bit more to do in this journey such as specification of what window produced the event.

Robert.


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to