#POH CHENG GUAN#
timpcg at pmail.ntu.edu.sg
Sat Sep 15 07:56:46 PDT 2007
Thanks, got it working.
From: osg-users-bounces at lists.openscenegraph.org on behalf of Robert Osfield
Sent: Fri 9/14/2007 5:29 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] getProjectionRectangle
The core OSG uses osg::Viewport rather than ProjectionRectangle,
Viewport is a direct mapping to OpenGL's glViewport. You can get the
Viewport from the Camera i.e.
The ProjectionRectangle is really just a viewport, but Don decided he
didn't like the use of the word viewport for glViewport and that
ProjectionRectangle was somehow more intuitive.
The core OSG by contrast follows OpenGL naming.
On 9/14/07, #POH CHENG GUAN# <timpcg at pmail.ntu.edu.sg> wrote:
> In version 1.2, I used the Producer's function: getProjectionRectangle to get my projected x, y, width and height for picking purpose. In version 2, how do I get the projected x, y, width and height?
> osg-users mailing list
> osg-users at lists.openscenegraph.org
osg-users mailing list
osg-users at lists.openscenegraph.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 4871 bytes
Desc: not available
More information about the osg-users