Re: [osg-users] osgText setColor problem

2016-11-11 Thread Robert Osfield
On 11 November 2016 at 06:58, Rambabu Repaka wrote: > Hi,Iam new to osg can anyone help me in setting a color to the 2d text. Just look at the code. The osgtext example for instance. It was written *exactly* for this purpose. ___ osg-users mailing list

Re: [osg-users] osgText setColor problem

2016-11-11 Thread Rambabu Repaka
Hi,Iam new to osg can anyone help me in setting a color to the 2d text. ... Thank you! Cheers, Rambabu -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69316#69316 ___ osg-users mailing list osg-use

Re: [osg-users] osgText setColor problem

2011-03-10 Thread Robert Osfield
Hi Matthew, On Thu, Mar 10, 2011 at 3:56 PM, Matthew Parry wrote: > Ok, I tried attaching it to the root node and the color now works, previously > it was attached to a ShadowedScene node which was itself attached to the > root. So obviously something in that ShadowedScene node is causing the

Re: [osg-users] osgText setColor problem

2011-03-10 Thread Matthew Parry
Ok, I tried attaching it to the root node and the color now works, previously it was attached to a ShadowedScene node which was itself attached to the root. So obviously something in that ShadowedScene node is causing the problem, I still don't know what it is as I don't do set anything in the s

Re: [osg-users] osgText setColor problem

2011-03-10 Thread Robert Osfield
Hi Matthew, On Thu, Mar 10, 2011 at 3:23 PM, Matthew Parry wrote: > I just tried running the example and the color works correctly. I'm now even > more confused! Might you have a StateSet higher up in the scene graph that decorates the Text drawable and override it's state, such as adding multi

Re: [osg-users] osgText setColor problem

2011-03-10 Thread Matthew Parry
Hi Robert, I just tried running the example and the color works correctly. I'm now even more confused! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=37509#37509 ___ osg-users mailing list osg-users

Re: [osg-users] osgText setColor problem

2011-03-10 Thread Robert Osfield
Hi Mathew, I now idea what might amiss. What happens when you run the osgtext example? Robert. On Thu, Mar 10, 2011 at 2:46 PM, Matthew Parry wrote: > Hi, > > I've got a simple function which creates a text object and attaches it to a > Geode: > > osg::ref_ptr > drawLabels() > { >        osg:

[osg-users] osgText setColor problem

2011-03-10 Thread Matthew Parry
Hi, I've got a simple function which creates a text object and attaches it to a Geode: osg::ref_ptr drawLabels() { osg::ref_ptr geode = new osg::Geode; osg::ref_ptr font = osgText::readFontFile("fonts/forte.ttf"); osg::ref_ptr text1 = new osgText::Text; text1->s