[osg-users] Aircraft Getting Invisible ?
Gordon Tomlinson
gordon.tomlinson at sensor.com
Mon May 5 08:07:46 PDT 2008
I would guess its small feature culling
See http://www.vis-sim.com/osg/osg_faq_1.htm#f22
Gordon
-----Original Message-----
From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Zoltán
Sent: Monday, May 05, 2008 4:44 AM
To: OpenSceneGraph Users
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
osg-users at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
More information about the osg-users
mailing list