OSGText Issues: Difference between revisions

Jump to navigation Jump to search
m
→‎Investigation: https://sourceforge.net/p/flightgear/mailman/message/36624316/
m (→‎Mapping to Canvas: https://sourceforge.net/p/flightgear/mailman/message/36624574/)
m (→‎Investigation: https://sourceforge.net/p/flightgear/mailman/message/36624316/)
Line 28: Line 28:


== Investigation ==
== Investigation ==
James tested current OSG (3.7.x) and we still have the same issue to fix on our side.
The issue is using a <material> animation to set the colour of the text no longer works, because osgText no longer uses the OpenGL materials, and hence ignores the material properties in the StateSet. The only control we have over the colour of the text is the osgText::Text::setColor method - which is what Canvas uses of course.<ref>https://sourceforge.net/p/flightgear/mailman/message/36624316/</ref>
The issue seems many aircraft could be changed to do something simpler (use decal text with no lighting), or use Canvas, but masking a fully generic replacement for what <text> used to do is quite difficult - for correctness it should use the full lighting model / ALS / etc so that painted text on a panel / tail / etc is lit correctly.
The issue seems many aircraft could be changed to do something simpler (use decal text with no lighting), or use Canvas, but masking a fully generic replacement for what <text> used to do is quite difficult - for correctness it should use the full lighting model / ALS / etc so that painted text on a panel / tail / etc is lit correctly.


Navigation menu