Permalink
Browse files

Fix for the feature labels example. Removed setInitialBound call in B…

…uildTextOperator.
  • Loading branch information...
Jason Beverage
Jason Beverage committed Feb 22, 2011
1 parent 7476e34 commit 53b997c0837ca73aaab2a80760611f0de287198e
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/osgEarthFeatures/BuildTextOperator.cpp
@@ -211,13 +211,15 @@ osg::Node* BuildTextOperator::operator()(const FeatureList& features,
}
float size = symbol->size().isSet() ? symbol->size().get() : 32.0f;
t->setCharacterSize( size );
+ /*
+ //TODO: We need to do something to account for autotransformed text that is under a LOD. Setting the initial bound works sometimes but not all the time.
if (rotateToScreen)
{
//Set the initial bound so that OSG will traverse the text even if it's under an LOD.
osg::BoundingBox bb;
bb.expandBy( osg::BoundingSphere(position, size));
t->setInitialBound( bb);
- }
+ }*/
//t->setCharacterSizeMode( osgText::TextBase::OBJECT_COORDS_WITH_MAXIMUM_SCREEN_SIZE_CAPPED_BY_FONT_HEIGHT );
//t->setCharacterSize( 300000.0f );
t->setPosition( position );

0 comments on commit 53b997c

Please sign in to comment.