I'm really sorry for that, and I will pay more attention next time.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joakim Simonsson Sent: Saturday, June 23, 2007 11:25 AM To: osg users Subject: Re: [osg-users] weird view after upgrade to osg2.0 Personally, I would recommend everyone to compress screenshots, into jpg or png, before sending them to the mailing list. This mail ate 3,2 MB of my available harddrive space. It seems that the 100 KB limit is no longer active. On Sat, 23 Jun 2007 04:20:45 +0200, Shuxing Xiao <[EMAIL PROTECTED]> wrote: > Hi, all: > > I was using simplerviewerQT4, and everything works fine. but after > upgrade > to osgviewerQT(without changing anything else), the default aspect ratio > of > project matrix seem incorrect. But I don't know where to set it, I tried > to > add the following code in the initializeGL() and resizeGL() method in the > ViewerQT class, but nothing changes. > > "getCamera()->setProjectionMatrixAsPerspective(30.0f, > static_cast<double>(width)/static_cast<double>(height/2), 1.0, 1000.0);" > > > The attachments are the result of before and after the upgrade. > > > PS: the status and help handler in the osgviewerQT are really cool. > > > > ---------------------------------------------------------------------------- > -- > > Shuxing Xiao > > 3rd Floor, First Teaching building, > > State Key Lab of CAD&CG, Zhejiang University, Hangzhou, China > > TEL: 86-13588493677 > > Email & MSN: <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] > > -- Joakim Simonsson _______________________________________________ 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/
