Skip to content

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

Open

Description

@XianranZ

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions