OpenSceneGraph icon indicating copy to clipboard operation
OpenSceneGraph copied to clipboard

A question about controlling the visibility of the text created by osgText::Text on an earth generated by osgEarth

Open XianranZ opened this issue 1 year ago • 0 comments

Hi, everyone. I created an earth with osgEarth2.7.0 and OSG3.4.0 on the Qt platform. When I add some text on the earth using osgText and try to control their visibility, some strange phenomenon occurred. it seems that the visibility is controlled by the scale of the earth. Although I set the visibility to true, I should zoom the earth into a smaller scale to see the text. I don't know why? Anyone knows? Here is my code for adding text: default (1) default (2) default (3) default (4) Here is my code for controlling the visibility: default (5) Thanks a lot if you can give me some hints!

XianranZ avatar Sep 25 '24 15:09 XianranZ