Changed the "Cessna" text so that it is sized according to OBJECT_COORDS rather

than SCREEN_COORDS as the later was causing problems with the pixel size based LOD selection.
This commit is contained in:
Robert Osfield 2005-10-13 10:29:40 +00:00
parent 5f3ec7dbcb
commit 5d1b46d25f

View File

@ -95,7 +95,7 @@ osg::Node* createMovingModel(const osg::Vec3& center, float radius)
text->setAlignment(osgText::Text::CENTER_CENTER);
text->setAxisAlignment(osgText::Text::SCREEN);
text->setCharacterSize(40.0f);
text->setCharacterSizeMode(osgText::Text::SCREEN_COORDS);
text->setCharacterSizeMode(osgText::Text::OBJECT_COORDS);
osg::Geode* geode = new osg::Geode;
geode->addDrawable(text);