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 

Having issue with osgText rendering on OsgEarth.


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


Joined: 12 Oct 2017
Posts: 1

PostPosted: Mon Apr 16, 2018 4:16 am    Post subject:
Having issue with osgText rendering on OsgEarth.
Reply with quote

Hi,
I am trying to render some text on my OsgEarth based rendering window.
However, my texts are crappy, showing a black artifact around it. It looks like, the text aren't anti-aliasing at all. We recently upgraded our application to Osg 3.4.5 and osgEarth to 2.9. Previously, text was rendering smooth. I am attaching old text and new text to compare.

This is how the text is added in the scene graph:

Code:
 label_ = new osgText::Text;

    label_->setFont("fonts/arial.ttf");
    label_->setFontResolution(40,40);
    label_->setCharacterSize(40.0);

    geode_->addDrawable(label_.get());



Thank you!

Cheers,
Mahmud
Code:
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 osgText 3.6.3 crash Trajce Nikolov NICK General 2 Wed Sep 12, 2018 12:25 pm View latest post
No new posts osgText: two thread-safety issues gwaldron General 1 Tue Jul 31, 2018 2:54 pm View latest post
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 [Crash issue] no error info even set ... pwang General 1 Sun Jul 29, 2018 1:20 pm View latest post
No new posts [Crash issue] How to add&remove d... pwang General 2 Thu Jul 26, 2018 10:10 am 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