[osg-users] massive text rendering.

Robert Osfield robert.osfield at gmail.com
Mon Jul 9 09:07:10 PDT 2018

Hi Igor,

You can implement your own texture using osg::Geometry and reuse the
osg::Font's ability to generate the texture atlas.  It's a bit
involved to get all the alignment etc. issues right but it's perfectly
doable and does perform very well.

However, before you dive off in a complicated but of work I would
suggest testing out OSG-3.6.2 if you haven't already, the internal
implementation is completely different and uses shaders rather than
multi-pass to implement the fonts so should be lightweight.  If this
doesn't perform well enough then fall back to your own custom

On Mon, 9 Jul 2018 at 13:24, Igor Spiridonov <igwasm at rambler.ru> wrote:
> Hello.
> Is it possible to render a lot of text in one batch? For polygons we have vbo which is huge performance improvement for massive geometry. Do we have anything similar for text? I have about 4000-5000 text messages(same font  but different color) and it's very slow to have 4000-5000 dips.
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=74290#74290
> _______________________________________________
> 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