OSGText Issues: Difference between revisions

Jump to navigation Jump to search
m
→‎Investigation: https://sourceforge.net/p/flightgear/mailman/message/36113197/
m (→‎Investigation: https://sourceforge.net/p/flightgear/mailman/message/36624316/)
m (→‎Investigation: https://sourceforge.net/p/flightgear/mailman/message/36113197/)
Line 26: Line 26:


(The text animation assumes that setting all of emissive/ambient/diffuse/specular works on an osgText, and it no longer does - for some cases we could map the emissive color to the text color, but this would break some other cases…. and text still won’t receive normal lighting in that case)<ref>https://sourceforge.net/p/flightgear/mailman/message/36703340/</ref>
(The text animation assumes that setting all of emissive/ambient/diffuse/specular works on an osgText, and it no longer does - for some cases we could map the emissive color to the text color, but this would break some other cases…. and text still won’t receive normal lighting in that case)<ref>https://sourceforge.net/p/flightgear/mailman/message/36703340/</ref>


== Investigation ==
== Investigation ==
{{Note|As a workaround, using a canvas for this is actually not that bad - it eats some memory equal to the size of the canvas (so make it as small as possible) but in terms of performance, it will end up about the same. <ref>https://sourceforge.net/p/flightgear/mailman/message/36113197/</ref> To be clear it’s 100% a bug that can be fixed, just that given the effort to fix it, I’d recommend going with the canvas solution instead.<ref>https://sourceforge.net/p/flightgear/mailman/message/36113508/</ref> }}
The osgText is probably (or at least, possibly, there’s a few other options besides) being ignored by the effect system, this is fixable but fairly unpleasant work. <ref>https://sourceforge.net/p/flightgear/mailman/message/36113197/</ref>
Back in 2017, the issue seemed that we now set a shader program on the font state-set, which is tripping up something (the effects system or otherwise), but we need to investigate further to fix anything. <ref>https://sourceforge.net/p/flightgear/mailman/message/36141064/</ref>
James tested current OSG (3.7.x) and we still have the same issue to fix on our side.
James tested current OSG (3.7.x) and we still have the same issue to fix on our side.


Navigation menu