osg::Camera subclasses from osg::CullSettings so you can do: viewer.getCamera()->setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR);
On 9/10/07, 方之 <[EMAIL PROTECTED]> wrote: > Hello Mr Wang: > I want to know how to use cullingsetting class, can you gave me a simple > example? > PS:Are you in China/ > > ShiTou > > 2007 9 10 > > />May be you need to disable autoComputeNearFar for a camera. > />Don't apologize for your poor en , cause they may also poor in CH...hehe > /> ----- Original Message ----- > /> From: ?? > /> To: [email protected] > /> Sent: Sunday, September 09, 2007 11:57 PM > /> Subject: [osg-users] How to implemente this simple function? > /> > /> > /> Hello all : > /> I want to implemente this function, only to render the fixed distance > from the viewer current />position, and I can't use the > getProjectionMatrixAsFrustum function correct: > /> > /> I use the following codes, but the result is very strange: > /> > /> viewer ->getCamera() > ->setProjectionMatrixAsFrustum(-10,10,-10,10,100,200) ; > /> > /> I want the viewer only to render the distance between 100 and 200 from > the viewer current position. > > />/> I will gratitude for giving me some Tutorials > /> ......... Sorry for my poor EN. > /> > ShiTou > /> > 2007.9.9 > > > > > > ________________________________ > 独有"账号保险柜"保护密码,"瑞星08版"开始免费 > _______________________________________________ > 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

