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() *
camera->getViewport
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 th
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 w
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 gi
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 ca
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
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
Greetings!
One last thing! I've heard that if I take the Inverse of MVPW that I can use
that to go from Ortho to perspective, has anybody done that?
Thank you!
D Glenn
D Glenn (a.k.a David Glenn) - Moving Heaven and Earth!
--
Read this topic online her
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 functi
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 th
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 go
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
>
12 matches
Mail list logo