Canvas news: Difference between revisions

Jump to navigation Jump to search
2,100 bytes added ,  15 February 2022
m
Line 4: Line 4:


Everybody is invited to help contribute to maintain this page and provide up-to-date information. Also, quoting/referincing devel/forum list talks is actively encouraged, too - to help provide the corresponding pointers back to the original discussion threads: [[Instant-Cquotes]].
Everybody is invited to help contribute to maintain this page and provide up-to-date information. Also, quoting/referincing devel/forum list talks is actively encouraged, too - to help provide the corresponding pointers back to the original discussion threads: [[Instant-Cquotes]].
== 2022 ==
=== Core Profile support / replacing ShivaVG ===
[[File:ShivaVG.jpg|thumb|Here is a comparison between ShivaVG and ShaderVG.Look at the Canvas Dialog top left and particularly the vertical airspeed bars <ref>https://sourceforge.net/p/flightgear/mailman/message/37610774/</ref>]]
[[File:ShaderVG.jpg|thumb|Here is a comparison.Look at the Canvas Dialog top left and particularly the vertical airspeed bars<ref>https://sourceforge.net/p/flightgear/mailman/message/37610774/</ref>]]
{{Main article|Shiva Alternatives}}
We need to remove [[PUI]] and change the [[Canvas]] not to use ShivaVG ([[Canvas Path]] back end), to be ES2 compatible or Core-profile compatible.<ref>https://sourceforge.net/p/flightgear/mailman/message/36194973/</ref>
To support [[Canvas]] on [[OpenGL]] [[FlightGear and OpenGL ES|Core profile]], the plan is to migrate from [[Shiva]] to ‘something else’ which implements the required drawing operations. Unfortunately two of the probable solutions (Skia from Chrome and Cairo from Gtk) are both enormous and a pain to deploy on macOS and Windows.
{{See also|Unifying the 2D rendering backend via canvas}}
As part of the Core profile migration, we need to replace ShivaVG (which is the functional guts of Path.cxx) with a shader based implementation, ideally NanoVG, although Scott has indicated this might not be as easy as originally hoped. <ref>https://sourceforge.net/p/flightgear/mailman/message/37605458/</ref>
Early experiments (patch [https://sourceforge.net/p/flightgear/mailman/message/37610741/]) in 02/2022 with ShaderVG were promising and suggest, that it ‘kind of sort of’ works, that’s already less work than integrating NanoVG.<ref>https://sourceforge.net/p/flightgear/mailman/message/37610750/</ref>
For the time being, it's not a one on one drop in replacement  but it works quite nicely:
* For one the x,y positions are off comapared to ShivaVG making things  slightly bigger (maybe too big for the screen).
* and one issue with the "title bar" being opaque.<ref>https://sourceforge.net/p/flightgear/mailman/message/37610740/</ref>


== 2021 ==
== 2021 ==

Navigation menu