[osg-users] BUG?: mouse coordinate changes after window move

André Garneau andre at pixdev.com
Thu Sep 27 14:48:13 PDT 2007

Hi Anders,


FYI, I’ve submitted a fix for this issue. Once merged by Robert, let me know
if you still have issues doing these operations.




From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Anders
Sent: September-20-07 2:55 AM
To: osg-users at lists.openscenegraph.org
Subject: [osg-users] BUG?: mouse coordinate changes after window move


Im using a recent svn version (a few weeks old) of osg under windows (both
VISTA and XP).

I have noticed that if I:

1. Start osgviewer cow.osg
2. press 'f' to get into windowed mode
3. if I now move the whole window and release it, I can see that the
view/projection changes slightly. 

Another illustration:

A small app that output the coordinates of a mouse click in the window

1. start that application and make it windowed 'f'
2. click on a specific point in the scene, ea.getX (), ea.getY() reports:
(132, 171)
3. move the window a little bit, click in the same point in the scene
ea.getX(), ea.getY() reports:  (139 ,121)
4. move the window again to any position on the screen, and now ea.getX (),
ea.getY() reports consistent results.

So to me it seems that the first move-window messes (or corrects) the

Now I tried this on a ubuntu machine, but on that one the windowed mode did
not work at all. 
Pressing 'f' results in a brief flicker of the window, and I can for a
fraction of a second see a smaller cow, no window decoration in the lower
left corner of the display.

Anyone else noticed these two problems? 


Anders Backman               Email:    andersb at cs.umu.se
HPC2N/VRlab                  Phone:    +46 (0)90-786 9936 
Umea university              Cellular: +46 (0)70-392 64 67
S-901 87 UMEA SWEDEN         Fax:      +46 90-786 6126

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20070927/f6fc4d5f/attachment-0003.htm>

More information about the osg-users mailing list