Re: [osg-users] massive text rendering

2018-07-11 Thread Robert Osfield
On Wed, 11 Jul 2018 at 14:34, Igor Spiridonov  wrote:
> 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.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] massive text rendering

2018-07-11 Thread Igor Spiridonov
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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] massive text rendering.

2018-07-09 Thread Robert Osfield
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.
On Mon, 9 Jul 2018 at 13:24, Igor Spiridonov  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@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org