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 the model and updates near and far
clipping plane also)?

Thanks,
Gianluca


-----Original Message-----
From: [email protected]
[mailto:[email protected]] 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.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] 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 drawing

On Fri, Apr 24, 2009 at 10:39 AM, Gianluca Natale
<[email protected]> 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?)

You can do what you want with the near + far clipping planes in
orthographic and perspetive projections simply by switch off the
automatic compute of the near and planes via

   camera->setComputeNearFar(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR);

But this won't make othrographic magically appropriate for doing internal
views.

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

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.0.238 / Virus Database: 270.12.4/2077 - Release Date: 04/23/09
19:21:00

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

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.0.238 / Virus Database: 270.12.4/2077 - Release Date: 04/23/09
19:21:00

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

Reply via email to