Hi Yigang,

The CVS version of the OSG has a fixed version of osg::Viewport.

Robert.

On 6/4/06, Yigang Wang <[EMAIL PROTECTED]> wrote:
Hi, all,

I found there is a function  in osg::Viewport as follows:

       inline const osg::Matrix computeWindowMatrix() const
        {
            return 
osg::Matrix::translate(1.0f,1.0f,1.0f)*osg::Matrix::scale(0.5f*width(),0.5f*height(),0.5f);
        }

It seems that the Matrix is computed with no x(), y() Parameters.  When I put viewport 
with x!=0 && y!=0, the pick computation is not correct!
Is this a bug?

Thanks for your reply.

Yigang
_______________________________________________
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