Hi Robert,
 
Thanks, got it working.
 
Regards,
CG

________________________________

From: [EMAIL PROTECTED] on behalf of Robert Osfield
Sent: Fri 9/14/2007 5:29 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] getProjectionRectangle



Hi CG,

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.

  viewer.getCamera()->getViewport();

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.

Robert.

On 9/14/07, #POH CHENG GUAN# <[EMAIL PROTECTED]> wrote:
> Hi,
>
> 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?
>
> Regards,
> CG
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


<<winmail.dat>>

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to