OSGText Issues

From FlightGear wiki
Revision as of 10:47, 11 November 2020 by Hooray (talk | contribs) (long-standing issue: https://forum.flightgear.org/viewtopic.php?f=87&t=37429&p=376110#p376110)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This article is a stub. You can help the wiki by expanding it.

we need to do some Real Work (TM) to support Canvas with osgText 3.6 and upwards, unfortunately.[1]

OSGText doesn't play nice with shaders.[2]

some developers have switched to canvas /because/ of the always white OSGText problem[3]

The OSGText issue is more that the world is moving forwards, and our text-animation element has not. (Shaders required, can’t rely on OpenGL 1.1 built-in lighting)[4]

It’s caused by OSG using a shader to render text now, but this bypasses the built-in emissive/diffuse/ambient material properties, which is what our <text> animation uses to set colours of text.

It should happen ‘everywhere’ that a shader is used to render text - Canvas doesn’t care about it since it sets the text color directly.[5]

The breaking change was introduced with OSG 3.6.5, and was also recently merged into OSG 3.7.[6]

References

References