Hi Robert

Congratulations on 2.0 by the way!

This is under Windows (xp). I've done some digging in osgViewer and osgGA and found a problem in GraphicsWindowWin32::requestWarpPointer() - it is applying the coordinates relative to the window, not the client area - so works for a window without decorations, but is a little off if the window has a frame. I have a fix that at least fixes the flying cow bug, which I'll send to osg-submissions

But I've also found what looks like another bug - because the client area I am seeing (in osgviewer) is 790 pixels wide, whilst the entire window is 800, I will investigate this further, but it leads to the question:

GraphicsWindow::setWindowRectangle(x,y,width,height) - should it operate in client or window coordinates? On win32 windowed mode it is handling them as window coordinates - ie setWindowRectangle(0,0,width,height) puts the window in the corner of the screen, with the top and left borders on screen. Without a window border if works for doing fullscreen.

Should it be that the (x,y) refer to the window position, but the (width,height) refer to the desired client area - not window's size?

best

Mike



Robert Osfield wrote:
Hi Mike,

I've just tested under Linux and its OK, cursor goes to center of
screen in full screen and windowed mode.

What platform are you on? I do wonder if the dimensions of the window
haven't be updated correctly.

Robert.

On 6/20/07, Mike Connell <[EMAIL PROTECTED]> wrote:
Hi all,

I've recently upgraded to 2.0 and found an odd problem - has anyone else
seen this?

osgviewer cow.osg
hit 'f' for a window (with frame)
hit '2' for the fly manipulator. The cursor jumps to (roughly) the
center of the window, but perhaps not exactly, and the cow is rapidly
ejected stage right. If I leave it in fullscreen the position is OK and
the scene remains perfectly still until I nudge the mouse.

I'm not sure yet if it's that the cursor position isn't taking into
account the window borders when it is set, or if it is when the position
is retrieved.

best wishes

Mike



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

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


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

Reply via email to