On 05/01/12 18:25, Robert Osfield wrote:
Hi Juan,
osgText::Text is a special case in that the way the text is rendered
is using textures and to for best performance and memory usage you
need to share these textures, and also share the rest of the text
state as well.
OK, I see, I didn't think of the textures.
If you want to decorate the Text with your custom StateSet than it's
best to place it on a Geode above the Text object.
Does that mean that if I use a StateSet created by myself for each text
style and then do setStateSet in each text object, the textures will be
duplicated for each StateSet?
I'm asking because currently I have more drawables in the geode that
holds the text and I prefer not having to change that.
Thanks,
Juan
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org