Re: [osg-users] update of zNear and zFar during drawing

2009-04-24 Thread Gianluca Natale
Thank you again, Robert. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: venerdì 24 aprile 2009 11.54 To: OpenSceneGraph Users Subject: Re: [osg-users] update of zNear and zFar during

Re: [osg-users] update of zNear and zFar during drawing

2009-04-24 Thread Robert Osfield
HI Gianluca, Arggghhg... You can't use orthographic projects in the same way that you use perspective projections, it simply doesn't work. Use orthographic projections for external views of the scene where clipping is not used. Do *not* use it for internal views where clipping is critical. Try

Re: [osg-users] update of zNear and zFar during drawing

2009-04-24 Thread Gianluca Natale
...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: venerdì 24 aprile 2009 11.02 To: OpenSceneGraph Users Subject: Re: [osg-users] update of zNear and zFar during drawing HI Gianluca, Arggghhg... You can't use orthographic projects in the same way that you

Re: [osg-users] update of zNear and zFar during drawing

2009-04-24 Thread Robert Osfield
On Fri, Apr 24, 2009 at 10:39 AM, Gianluca Natale gianluca.nat...@adstorino.it wrote: Thank you Robert, I apologize for my ignorance. Actually I don't want to make any zoom in, I just want to clip objects behind the camera (is there any problem in clipping a sphere against a rectangular box?)

Re: [osg-users] update of zNear and zFar during drawing

2009-04-24 Thread Gianluca Natale
Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Gianluca Natale Sent: venerdì 24 aprile 2009 12.29 To: 'OpenSceneGraph Users' Subject: Re: [osg-users] update of zNear and zFar during drawing Thank you again, Robert

Re: [osg-users] update of zNear and zFar during drawing

2009-04-24 Thread Robert Osfield
On Fri, Apr 24, 2009 at 2:42 PM, Gianluca Natale gianluca.nat...@adstorino.it wrote: Robert, is there a quick way to simply update near and far clipping planes for perspective projection, without calling an explicitly redraw (I mean, some visitor that computes for example the bounding box of