Re: [osg-users] Using MVPW in a Resizeable Window.

2011-01-18 Thread David Glenn
Skylark wrote: Hi David, You don't recall by chance any fixes that were made after the OSG 2.8.1 release based on resizing issues? Not off the top of my head, no. It might be interesting to set a breakpoint in the resize event handler and see if it ever gets there when it

Re: [osg-users] Using MVPW in a Resizeable Window.

2011-01-11 Thread David Glenn
Skylark wrote: Hi David, Well, I got something working for now! What I had to do was to call hudCamera-setProjectionMatrixAsOrtho2D(0, windowWidth ,0, windowHeight ); for every time I resize the OSG window. Fortunately I have a resize command for the window to do just

Re: [osg-users] Using MVPW in a Resizeable Window.

2011-01-11 Thread Jean-Sébastien Guay
Hi David, You don't recall by chance any fixes that were made after the OSG 2.8.1 release based on resizing issues? Not off the top of my head, no. It might be interesting to set a breakpoint in the resize event handler and see if it ever gets there when it should. But anyways, if you've

Re: [osg-users] Using MVPW in a Resizeable Window.

2011-01-10 Thread David Glenn
Skylark wrote: Hi David, BTW: does anyone remember what is the Default setting for the projection resizing policy? Yes, I mentioned in my previous post it was HORIZONTAL :-) I think it means it will use the resized horizontal values and the new aspect ratio to calculate the

Re: [osg-users] Using MVPW in a Resizeable Window.

2011-01-10 Thread Jean-Sebastien Guay
Hi David, Well J-S when I got to the code today I did find out that I has set the setProjectionResizePolicy to FIXED and I did commented that code out, but when I tried it, it has no effect on the problem - when I resize the window I still get a delta that moves to the right and up! Can't

Re: [osg-users] Using MVPW in a Resizeable Window.

2011-01-10 Thread David Glenn
Skylark wrote: Hi David, Well J-S when I got to the code today I did find out that I has set the setProjectionResizePolicy to FIXED and I did commented that code out, but when I tried it, it has no effect on the problem - when I resize the window I still get a delta that moves to

Re: [osg-users] Using MVPW in a Resizeable Window.

2011-01-10 Thread Jean-Sébastien Guay
Hi David, Well, I got something working for now! What I had to do was to call hudCamera-setProjectionMatrixAsOrtho2D(0, windowWidth ,0, windowHeight ); for every time I resize the OSG window. Fortunately I have a resize command for the window to do just that. I had to add the function

Re: [osg-users] Using MVPW in a Resizeable Window.

2011-01-07 Thread David Glenn
Skylark wrote: Just wondering, do you use this: hudCamera-setProjectionResizePolicy(osg::Camera::FIXED) It all depends on how you've set things up and how you want things to behave. If you set as above, the projection will not change even if your viewport changes size. This won't

Re: [osg-users] Using MVPW in a Resizeable Window.

2011-01-07 Thread Jean-Sébastien Guay
Hi David, BTW: does anyone remember what is the Default setting for the projection resizing policy? Yes, I mentioned in my previous post it was HORIZONTAL :-) I think it means it will use the resized horizontal values and the new aspect ratio to calculate the new vertical values (i.e. it

[osg-users] Using MVPW in a Resizeable Window.

2011-01-06 Thread David Glenn
Greetings All! This I bet should be an easy one for you all! I'm using the MVPW routine to convert a point 3D perspective so I can display a marker on to my Ortho2D heads up display camera: Code: osg::Matrix MVPW( camera-getViewMatrix()* camera-getProjectectionMatrix() *

Re: [osg-users] Using MVPW in a Resizeable Window.

2011-01-06 Thread Jean-Sébastien Guay
Hi David, I'm using the MVPW routine to convert a point 3D perspective so I can display a marker on to my Ortho2D heads up display camera: Just wondering, do you use this: hudCamera-setProjectionResizePolicy(osg::Camera::FIXED) It all depends on how you've set things up and how you want