[osg-users] Using osg::Matrix::ortho2D as ViewMatrix

Werner Modenbach Werner.Modenbach at modenbach-ac.de
Thu Feb 11 03:01:22 PST 2021

Hi all!

I used to set
when creating RTT-Cameras.

In my SSAO-Module I need to retrieve the projection matrix but
    if (cam->getProjectionMatrixAsOrtho(left,right,bottom,top,zNear,zFar)) ...
seems to return true but the values retrieved look strange.

So two questions:
1) Do I have to assign osg::Matrix::ortho insted to RTT-Cameras? What is the difference?
2) Can I retrieve correct values when ortho2D is used?

Many thanks for any assistance.

- Werner -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20210211/af955f37/attachment.html>

More information about the osg-users mailing list