Hi,
Currently making my billboard node, I add an osgText on it. I need this text
to be in node's coordinate, but in constant pixel size on screen.
When the billboard move or rotate, the text will follow it. The only thing
the text can change is caracter size.
I use this code :
*
Hi Vincent,
I've never used osgText in conjunction with osg::Billboard before. I
can image the mix of on the fly compute matrices might cause problems.
osgText has support for billboard behaviour so I'd recommend not
adding the text to the billboard, instead just add it as sibling to
the
Hi Robert,
I did it from the past for a simple OSG text on a billboard node,
without constant screen pixel size management and it works well.
I'll try to get the text out from the billboard, hoping this won't
be so difficult to obtain the same result...
Thanks for this explanation.
Regards,
Hi,
I've tried what you propose : put the rotated text on a separate geode (and
not the billboard) ... The result is the same : text do not update
correctly.
I don't know what to change... I've tried to set the rotation before the
translation, whatever be the order of the instructions : is the
Do you use text-setAutoRotateToScreen(true)?
On Tue, Jan 13, 2009 at 1:36 PM, Vincent Bourdier
vincent.bourd...@gmail.com wrote:
Hi,
I've tried what you propose : put the rotated text on a separate geode (and
not the billboard) ... The result is the same : text do not update
correctly.
I
No.
I just want the size of the text to be updated.
I would control the position/orientation myself.
*osg::ref_ptrosgText::Text d = new osgText::Text;
d-setColor(osg::Vec4(NEW_OBJECT_COLOR_TXT,1.0f));
d-setRotation(osg::Quat(-osg::PI_2, osg::Vec3f(1,0,0)) *
osg::Quat(-osg::PI_2,
6 matches
Mail list logo