[osg-users] osgText color

Robert Osfield robert.osfield at gmail.com
Thu Sep 6 09:56:24 PDT 2007

HI Cedric,

osgText::Text has its own colour Vec4 for performance and easy of use
reason.  There are some types of usage when this can be inconvenient,
but for the most users it doesn't exactly what they need.   This isn't
something that is bug, its very much a designed feature.

Now for the small minority of users who won't to define the colour
separately this is of little comfort, but if you can still do it by
use osg::Material is you switch off the color mode in the Material so
glColor doesn't override the material settings.


On 9/6/07, Cedric Pinson <mornifle at plopbyte.net> wrote:
> Hi Robert,
> I would like what do you think about osgText color behaviour.
> here the structure:
>     Geode
>           osgText::Text
>           Geometry
> The geode has a StateSet with a Material (to set the color of the
> geometry), but the color by default in osgText override
> the color defined in the Material. I understand the behaviour but it
> seems to me strange because even if osgText use its own
> color it should not break the Material color for the geometry.
> I could fix it like putting the Material in a StateSet in the Geometry
> but what do you think if we fix this in osgText ?
> Cedric Pinson
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

More information about the osg-users mailing list