Thanks.  Turns out we didn't have a transform--the Projection was a workaround 
for some bug that has since been fixed.  Apparently the near and far clipping 
planes weren't correct at some point, and for some reason having this 
Projection node helped.  I've removed it, and all seems well.

thanks
andy

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield
Sent: Wednesday, May 21, 2008 8:37 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Projection vs Camera

Hi Andy,

On Wed, May 21, 2008 at 1:11 PM, Andy Skinner
<[EMAIL PROTECTED]> wrote:
> I found a dusty part of our code where we have a Projection and a Camera.
> I've found an old email (2006) from this list about how the Projection is
> deprecated in favor of the Camera.  I just wanted to check-is this correct?
> If we've got a Camera, we don't need a Projection?

osg::Projection existed before the days of osg::Camera, with the
arrival of the later two summers ago the former became a bit obsolete,
but is kept around for backwards compatibility.   osg::Camera is
effectively an osg::Projection + an osg::MatrixTransform all round
into one class, plus a buck load of other Camera related features.

So it's likely you won't be removing an osg::Projection node, but a
osg::Projection node and a Transform placed above or below this
osg::Projection node as Projection node on its own it's really that
useful.

Robert.
_______________________________________________
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

Reply via email to