Discussion:
[osg-users] massive text rendering.
Igor Spiridonov
2018-07-09 12:14:47 UTC
Permalink
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
Robert Osfield
2018-07-09 16:07:10 UTC
Permalink
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
solution.

Cheers,
Robert.
Post by Igor Spiridonov
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.
------------------
http://forum.openscenegraph.org/viewtopic.php?p=74290#74290
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Igor Spiridonov
2018-07-11 12:57:50 UTC
Permalink
Hi Robert.

Unfortunately I can only use osg 3.2. Your advice to implement a texture with all texts included sounds very promising.

Thank you a lot.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74306#74306
Robert Osfield
2018-07-11 13:41:38 UTC
Permalink
Post by Igor Spiridonov
Unfortunately I can only use osg 3.2. Your advice to implement a texture with all texts included sounds very promising.
We are now on 3.6.2, so 3.2 is pretty out of date, there many feature
improvements and bug fixes in 3.6.2 that aren't in 3.2 so valuable in
it's own right.

For helping support you using a up to date release it's far easier for
us and for you, it could be the case that upgrading fixes all your
problems in which case it's crazy for any of us to be spending time
supporting and potentially already solved problem.

Robert.

Loading...