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

Reply via email to