Hi Zoltan, I have tried
viewer.getCamera()->setComputeNearFarMode( osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR ); std::cout<<"Far Mode : "<getComputeNearFarMode()< setComputeNearFarMode( osgUtil::CullVisitor::DO_NOT_COMPUTE_NEAR_FAR ); and result is same :S Aircraft is still invisible. I don't understand why Far Mode : 0 result was given by viewer. Thanks so much. ÜMİT UZUN ---------------------------------------- > From: [EMAIL PROTECTED] > To: [email protected] > Date: Mon, 5 May 2008 10:43:34 +0200 > Subject: Re: [osg-users] Aircraft Getting Invisible ? > > This looks like a culling issue. You might try such a code: > > viewer.getCamera() -> setComputeNearFarMode( > osgUtil::CullVisitor::DO_NOT_COMPUTE_NEAR_FAR ); > > bye > > Zoltán > > > ümit uzun wrote on Monday 05 May 2008: >> Hi all, >> >> I have an aircraft. I resize it and add scene on the >> earth but it get invisible when I resized much smaller >> like that, >> >> float size = 0.0005f / mAircraftModel.get( )->getBound( >> ).radius( ); >> >> mAircraftTransform->setDataVariance( osg::Object::STATIC >> ); mAircraftTransform->setMatrix( osg::Matrix::scale( >> size, size, size ) * osg::Matrix::rotate( >> osg::DegreesToRadians( 90.0f ), 1.0f, 0.0f, 0.0f ) * >> osg::Matrix::rotate( osg::DegreesToRadians( -90.0f ), >> 0.0f, 0.0f, 1.0f ) * osg::Matrix::rotate( >> osg::DegreesToRadians( 5.0f ), 1.0f, 0.0f, 0.0f ) ); >> >> Earth size is, >> >> float size = 2000.0f / mTerrainModel.get( )->getBound( >> ).radius( ); >> >> mTerrainTransform->setDataVariance( osg::Object::STATIC >> ); mTerrainTransform->setMatrix( osg::Matrix::scale( >> size, size, size ) ); >> >> What can I do for protect the aircraft visibility? >> >> Thanks so much! >> >> >> ÜMÝT UZUN >> >> _________________________________________________________ >>________ Þimdi aileye katýlmanýn tam zamaný - Yeni nesil >> Ücretsiz Windows Live Hizmetlerini þimdi edinin! >> http://get.live.com > > > > -- > > ________________________ > > Zoltan > ________________________ > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _________________________________________________________________ Gelen kutunuzda hiç yer kalmamasından bıktınız mı? Windows Live Hotmail şimdi size 5GB ÜCRETSİZ depolama alanı sunuyor! Ücretsiz Windows Live Hotmail hesabınızı buradan alın! http://get.live.com/mail/overview _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

