OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

massive text rendering


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
OmegaDoom
Newbie


Joined: 25 Jun 2018
Posts: 16

PostPosted: Mon Jul 09, 2018 12:14 pm    Post subject:
massive text rendering
Reply with quote

Hello.

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.
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12093

PostPosted: Mon Jul 09, 2018 4:08 pm    Post subject:
massive text rendering.
Reply with quote

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:
Quote:

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








------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
OmegaDoom
Newbie


Joined: 25 Jun 2018
Posts: 16

PostPosted: Wed Jul 11, 2018 12:57 pm    Post subject:
Reply with quote

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.
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12093

PostPosted: Wed Jul 11, 2018 1:42 pm    Post subject:
massive text rendering
Reply with quote

On Wed, 11 Jul 2018 at 14:34, Igor Spiridonov <> wrote:
Quote:
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.


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

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

Similar Topics
Topic Author Forum Replies Posted
No new posts How to speed up rendering in this case. pwang General 3 Tue Jul 31, 2018 3:00 am View latest post
No new posts Volume rendering issues... tommwilliamson General 4 Wed Jul 25, 2018 12:19 pm View latest post
No new posts strange behaviour with osgText::Text christoph General 0 Wed Jul 18, 2018 12:06 pm View latest post
No new posts Why is osgText::Text very slow when i... OmegaDoom General 1 Wed Jul 04, 2018 5:31 am View latest post
No new posts setAxisAlignment(osgText::Text::SCREE... OmegaDoom General 1 Tue Jun 26, 2018 9:40 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP