[osg-users] Aircraft Getting Invisible ?
ümit uzun
cush_umit at hotmail.com
Mon May 5 01:19:22 PDT 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AircraftGettingInvisible.png
Type: image/png
Size: 180140 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080505/646932f8/attachment-0001.png>
More information about the osg-users
mailing list