[osg-users] problem with color change in osgText
mogumbo at gmail.com
Thu Mar 12 15:20:48 PDT 2009
Thanks Jason. That did the trick. The geometry that was having
trouble had no color array, but it had a Material applied to it. I
don't know why the Material color was being replaced by another
object's vertex color, but I'll try to figure it out in 6 weeks after
my project is done and there is more time....
Terry Welsh / mogumbo 'at' gmail.com
www.reallyslick.com / www.mogumbo.com
> Message: 13
> Date: Thu, 12 Mar 2009 17:50:16 -0400
> From: Jason Beverage <jasonbeverage at gmail.com>
> Subject: Re: [osg-users] problem with color change in osgText
> To: OpenSceneGraph Users <osg-users at lists.openscenegraph.org>
> <2c4bbbeb0903121450i2dc2904m79d2ee6a039a4ef7 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> Hi Terry,
> I'm not sure if this is your issue, but make sure that any Geometry objects
> you are rendering have a color array associated with them. If you just
> specify a vertex array for instance and forget to set a color array, you can
> see that type of issue.
> On Thu, Mar 12, 2009 at 5:32 PM, Terry Welsh <mogumbo at gmail.com> wrote:
>> I have one of those obscure state problems that's probably related to
>> lazy state sorting. Some of my objects on screen take the color of
>> the text that is on screen. If I comment out line 1732 in
>> osgText/Text.cpp the problem goes away:
>> I tried fixing the problem by adding state.haveAppliedMode(GL_COLOR);
>> right after this line, but that has no effect. Is there another way
>> to fix this?
>> Terry Welsh / mogumbo 'at' gmail.com
>> www.reallyslick.com / www.mogumbo.com
More information about the osg-users