3D Model gets Label Node's Color #2048
Unanswered
nebsar
asked this question in
Support Q&A
Replies: 1 comment 1 reply
-
I had similar effects once in another context (without osgEarth, but with osg). Do you have 3D objects in the scene that use transparency? If you have the option, I would take the transparency out and see if the effect still occurs. If it's because of that, you have to adjust the order of rendering of some objects, as far as I know. You can adjust that via the osg::StateSet class in osg. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use GL3 built of OSG and osgEarth master branch.
I load an .obj 3D Model, and I observe a strange behavior. 3D model gets the color of the closest text's color. You may see the behavior in the video. There is a blue colored Label Node below the aircraft, and another Label Node which is far away and white colored. When the blue Label Node is visible, aircraft gets the blue color. When blue Label Node is out of view, aircraft gets white color of the distant Label Node. Most probably shader of the text overrides color of the 3D Model. What can I do to prevent this?
Media1.mp4
Beta Was this translation helpful? Give feedback.
All reactions