Read canvas image by HTTP: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 35: Line 35:
   |script_version = 0.40  
   |script_version = 0.40  
   }}</ref>.
   }}</ref>.
Many of these avionics/graphics are created by FlightGear's 2D drawing [[Canvas]] system internally.


In addition there, are a number of other use-cases where being able to obtain a Canvas from fgfs using a network protocol like http may be desirable (e.g. imagine getting a tilemap based on actual scenery from FlightGear <ref>{{cite web
In addition there, are a number of other use-cases where being able to obtain a Canvas from fgfs using a network protocol like http may be desirable (e.g. imagine getting a tilemap based on actual scenery from FlightGear <ref>{{cite web
Line 57: Line 60:
   |added  =  Sep 22nd, 2014  
   |added  =  Sep 22nd, 2014  
   |script_version = 0.40  
   |script_version = 0.40  
   }}</ref>
   }}</ref>.
.


Many of these avionics/graphics are created by FlightGear's 2D drawing [[Canvas]] system internally.


This article provides a patch to FlightGear for downloading any canvas image from a running FlightGear process by HTTP by serializing it to a raster image and serving that via the built-in mongoose based httpd server <ref>{{cite web
This article provides a patch to FlightGear for downloading any canvas image from a running FlightGear process by HTTP by serializing it to a raster image and serving that via the built-in mongoose based httpd server <ref>{{cite web
Line 79: Line 79:
   }}</ref>.
   }}</ref>.


== Problem ==
== Problem ==
a modern biz jet will need to be able to display certain MFDs - fgpanel is not too useful for that (unless you are primarily dealing with steam gauges) - the most useful search terms for the forum/wiki will be '''Phi''' and '''FGCanvas''' - the latter of which is a special startup mode of FlightGear itself that can render Canvas based MFDs in a separate instance.
a modern biz jet will need to be able to display certain MFDs - fgpanel is not too useful for that (unless you are primarily dealing with steam gauges) - the most useful search terms for the forum/wiki will be '''Phi''' and '''FGCanvas''' - the latter of which is a special startup mode of FlightGear itself that can render Canvas based MFDs in a separate instance.

Navigation menu