Hello OSG users,

I am making an "Compass" (x,y,z axis arrows) node to show current rotation of
the scene (model). Arrows are OK, but i have problem to set osgText into
Billboard node (to show label on each axis).
I cannot see the text, but it's processed, because the bounding box of the scene
is changed.

The code:
---------------------------------
osg::Billboard* x_label = new osg::Billboard();
x_label->setMode(osg::Billboard::POINT_ROT_EYE);

osg::ref_ptr<osgText::Text> mi = new osgText::Text;
mi->setText("X axis");
mi->setCharacterSize(2.0f);
mi->setFont("fonts/arial.ttf");
mi->setColor(osg::Vec4(0.5f,0.5f,0.5f,1.0f));
mi->setPosition(osg::Vec3(0.0f,0.0f,0.0f));
x_label->addDrawable(mi.get(),osg::Vec3(11.0f,0.0f,0.0f));

----------------------------

Any ideas, what's wrong?

many thanks for help in advance,
Tomas


+------------------------------ 
| Sent through IMP Web client.
| Provided by  WebStep, s.r.o.
| WebStep, a step to the Web.
+------------------------------
| web: http://www.webstep.net
| mailto: info @ webstep . net
+------------------------------

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

Reply via email to