Is it possible to render a lot of text in one batch? For geometry 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). It's very slow to have 4000-5000 dips.

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.

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.

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.

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou cannot download files in this forum