Hi Robert,

here is my code so far:

_font = osgText::readFontFile( "fonts/arial.ttf" );

_text = new osgText::Text;
_text->setFont( _font );
_text->setAxisAlignment( osgText::Text::XZ_PLANE );

_textGeode  = new osg::Geode;
_textGeode->addDrawable( _text );
_textGeode->getOrCreateStateSet()->setMode( GL_DEPTH_TEST, 
osg::StateAttribute::OFF );

addChild( _textGeode );

_text->setDataVariance( osg::Object::DYNAMIC );

I think I tried everything I found about this topic: different bins, different 
GlyphImageMargins, etc.. It looks like a problem with the alpha values in 
combination with small text. Text three times the size does not show this 
"dirt"...

Thanks,
Tim.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=54607#54607





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to