Re: [osg-users] Bug in osgText::drawForegroundText

2009-01-13 Thread Robert Osfield
HI Vincent, You only need to set the DataVariance to DYNAMIC on StateSet and Drawables that change, you don't need to do this for Nodes as they don't make it through into the rendering backend. Do a search for DrawThreadPerContext to background reading on this topic. Robert. On Tue, Jan 13, 200

Re: [osg-users] Bug in osgText::drawForegroundText

2009-01-13 Thread J.P. Delport
Hi, Vincent Bourdier wrote: If DYNAMIC is a state , I can assume that it is an inherited property. Assuming that can be good solution, I would be sufficient to set it on a root node, isn't it ? (I will not do that of course) Yes, if you set the whole scene to dynamic, you might as well run

Re: [osg-users] Bug in osgText::drawForegroundText

2009-01-13 Thread Vincent Bourdier
If DYNAMIC is a state , I can assume that it is an inherited property. Assuming that can be good solution, I would be sufficient to set it on a root node, isn't it ? (I will not do that of course) Is it different to set it on a Geometry ? or on its Gode / Group / PAT parent ? I'll check is the go

Re: [osg-users] Bug in osgText::drawForegroundText

2009-01-13 Thread J.P. Delport
Hi, sorry, I should have been a bit clearer. If using multithreaded modes you must make sure that the DataVariance on the objects you are changing dynamically is set to DYNAMIC, something like: stateset->setDataVariance(osg::Object::DYNAMIC); Also have a search on the mailing list for "setDa

Re: [osg-users] Bug in osgText::drawForegroundText

2009-01-13 Thread Vincent Bourdier
Hi J.P, I have no crash in singleThreaded mode. It is a random crash so I can not be 100% sure, but it seems to be the problem. So, what can cause a crash with Dynamic settings ? I have some, I'll check them, but I'm not sure of what to search... Thanks, Vincent. 2009/1/13 J.P. Delport > Hi,

Re: [osg-users] Bug in osgText::drawForegroundText

2009-01-13 Thread J.P. Delport
Hi, can you make it crash in singlethreaded mode? If not, check all settings of "dynamic" on text nodes. jp Vincent Bourdier wrote: Hi, I allow myself to Up this topic... Thanks, Regards, Vincent. 2009/1/12 Vincent Bourdier > I think there is a

Re: [osg-users] Bug in osgText::drawForegroundText

2009-01-13 Thread Vincent Bourdier
Hi, I allow myself to Up this topic... Thanks, Regards, Vincent. 2009/1/12 Vincent Bourdier > I think there is a real bug in the rendering of OsgText. (2.6.1 release) > > The bug does appear randomly... I get it with simple text in a Hud, updated > each frame. > > The bug is there : > > >

[osg-users] Bug in osgText::drawForegroundText

2009-01-12 Thread Vincent Bourdier
I think there is a real bug in the rendering of OsgText. (2.6.1 release) The bug does appear randomly... I get it with simple text in a Hud, updated each frame. The bug is there : *void Text::drawForegroundText(osg::State& state, const GlyphQuads& glyphquad, const osg::Vec4& colorMultiplier) co