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 

strange behaviour with osgText::Text


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


Joined: 10 Jul 2014
Posts: 19

PostPosted: Wed Jul 18, 2018 12:06 pm    Post subject:
strange behaviour with osgText::Text
Reply with quote

Hi,

I have a strange effect with osgText::Text. My original goal was to have a constant pixel-sized Text close to the starting point of a line. Using dummy values everthing is fine. But using real values the textsize changes!

See the attached source. The wrong behaviour could be seen by setting USE_WRONG_VALUES to 1 and the right behaviour could be seen by setting it to 0.

Maybe it's worth to open e separate post, but it's related to my current findings:
Adding vertex shader stuff has no effect Sad
In the example I try to move the first text to the left and the second one to the right using the uniform 'offset'. But the text stays at the same place.

Any ideas?

I use OSG 3.6.1 under opensuse.

Thank you!

Cheers,
Christoph
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 add text in osgviewer application jaisingla General [forum] 0 Mon Apr 15, 2019 10:44 am View latest post
No new posts Colored Bounding Box over osgText::Text dhhabyc General 1 Fri Apr 05, 2019 12:43 pm View latest post
No new posts osgText::Text dissapears when reparen... dhhabyc General 0 Wed Mar 27, 2019 1:48 pm View latest post
No new posts Cannot pick HUD text bclay General 3 Thu Feb 28, 2019 3:34 pm View latest post
No new posts Working with osg::Text on animation dhhabyc General 5 Thu Dec 20, 2018 1:39 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