Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
XianranZ opened this issue Sep 25, 2024 · 0 comments

Comments

@XianranZ
Copy link

XianranZ commented Sep 25, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant