Hi Y'all
 
 
Were in the process of upgrading our applications from OSG 1.2 to the
current 2.3.x and most of all the upgrade is not going to badly apart from
some issue I'm having osgText 
 
I have some simple code that basically draws a little hud with text that is
updated every frame, this is being down right after the update traversal,
which basically update the text to be displayed using ::setText,  this does
update the text and you see the updates, but after several seconds  or even
minutes I'm getting continually crashes in the draw of the text at the line
XXXXXX  below... 
 
Is there a new requirement to updating text on an osgText instance that is
different to how 1.2, does osgText have any new dependencies we may have
missed.
 
Any idea why I would be crashing ? ( is this some threading bug in 2.3x
where running on multproc machines )
 
Thanks in advance for any pointers
 
 
void Text::drawForegroundText(osg::State& state, const GlyphQuads&
glyphquad, const osg::Vec4& colorMultiplier) const
{
    unsigned int contextID = state.getContextID();
 
    const GlyphQuads::Coords3& transformedCoords =
glyphquad._transformedCoords[contextID];
    if (!transformedCoords.empty()) 
    {
 
                   state.setVertexPointer( 3, GL_FLOAT, 0,
&(transformedCoords.front())); 

 XXXXX       state.setTexCoordPointer( 0, 2, GL_FLOAT, 0,
&(glyphquad._texcoords.front()));
 
[snip]
 
 
 

__________________________________________________________
Gordon Tomlinson 

Email   : [EMAIL PROTECTED]
YIM/AIM : gordon3dBrit
MSN IM  : [EMAIL PROTECTED]
Website : www.vis-sim.com www.gordontomlinson.com 

__________________________________________________________


"Self defence is not a function of learning tricks 
but is a function of how quickly and intensely one 
can arouse one's instinct for survival" 
-Master Tambo Tetsura 

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

Reply via email to