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
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
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
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
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
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
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
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
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
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() *
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
11 matches
Mail list logo