Hi Ben,

Text has an autoscale functin built into it.

Robert.

On 11/17/06, Benoît Poulard <[EMAIL PROTECTED]> wrote:
Hi,
I have a problem to use osg::AutoTranform with osg::Text, rotation works
well but autoscale don't;

[code]
osg::ref_ptr<osg::AutoTransform> tx = new
osg::AutoTransform();
osg::ref_ptr<osg::Geode> geode = new osg::Geode();
osg::ref_ptr<osgText::Text> text=new osgText::Text();

tx->addChild(geode.get());
geode->addDrawable(text.get());

tx->setAutoRotateMode(osg::AutoTransform::ROTATE_TO_CAMERA);
tx->setAutoScaleToScreen(true);
[/code]

I must use OSG 0.9.9

How can I have an autoScale with osg::Text?

Thank's

Ben

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to