FlightGear Newsletter October 2016: Difference between revisions

Jump to navigation Jump to search
Line 147: Line 147:


Continue reading at [[Howto:Canvas Path Benchmarking]] ...
Continue reading at [[Howto:Canvas Path Benchmarking]] ...
=== Live-Streaming a Canvas via HTTP ===
[[File:Canvas-ND-live-streaming-via-httpd.png|thumb|Screenshot showing a single Canvas texture ([[NavDisplay]]) streamed to firefox via httpd at 2hz <ref>https://forum.flightgear.org/viewtopic.php?f=71&t=30642&p=297716#p297716</ref>]]
There are situations, e.g., for home cockpit builders <ref>{{cite web
  |url    =  https://forum.flightgear.org/viewtopic.php?p=296448#p296448
  |title  =  <nowiki> Canvas remote drawing </nowiki>
  |author =  <nowiki> ThomasS </nowiki>
  |date  =  Oct 10th, 2016
  |added  =  Oct 10th, 2016
  |script_version = 0.40
  }}</ref>, where it is useful to display instruments like a [[PFD]], [[ND]], EICAS or any [[MFD]] externally from the FlightGear 3D main window in a separate window or on a separate monitor, computer or a mobile device <ref>{{cite web
  |url    =  https://forum.flightgear.org/viewtopic.php?p=214980#p214980
  |title  =  <nowiki> Need to Create a Standalone PFD </nowiki>
  |author =  <nowiki> deena102 </nowiki>
  |date  =  Jul 18th, 2014
  |added  =  Jul 18th, 2014
  |script_version = 0.40
  }}</ref> <ref>{{cite web
  |url    =  https://forum.flightgear.org/viewtopic.php?p=199428#p199428
  |title  =  <nowiki> Re: TQ/Panel for FG made with Kivy </nowiki>
  |author =  <nowiki> pommesschranke </nowiki>
  |date  =  Jan 31st, 2014
  |added  =  Jan 31st, 2014
  |script_version = 0.40
  }}</ref> <ref>{{cite web
  |url    =  https://forum.flightgear.org/viewtopic.php?p=169150#p169150
  |title  =  <nowiki> Re: using FGpanel to display various instruments and electri </nowiki>
  |author =  <nowiki> someguy </nowiki>
  |date  =  Oct 23rd, 2012
  |added  =  Oct 23rd, 2012
  |script_version = 0.40
  }}</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
  |url    =  https://forum.flightgear.org/viewtopic.php?p=203495#p203495
  |title  =  <nowiki> Re: Atlas still in use ? </nowiki>
  |author =  <nowiki> Torsten </nowiki>
  |date  =  Mar 17th, 2014
  |added  =  Mar 17th, 2014
  |script_version = 0.40
  }}</ref>) <ref>{{cite web
  |url    =  https://forum.flightgear.org/viewtopic.php?p=192817#p192817
  |title  =  <nowiki> How to simulate capturing an image using a camera </nowiki>
  |author =  <nowiki> roy111 </nowiki>
  |date  =  Oct 29th, 2013
  |added  =  Oct 29th, 2013
  |script_version = 0.40
  }}</ref><ref>{{cite web
  |url    =  https://forum.flightgear.org/viewtopic.php?p=219105#p219105
  |title  =  <nowiki> FGWebPanel aka FGPanel 2.0 or: FGPanel goes html </nowiki>
  |author =  <nowiki> Torsten </nowiki>
  |date  =  Sep 22nd, 2014
  |added  =  Sep 22nd, 2014
  |script_version = 0.40
  }}</ref>.
ThomasS has created a patch for 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 created by Torsten <ref>{{cite web
  |url    =  https://forum.flightgear.org/viewtopic.php?p=213146#p213146
  |title  =  <nowiki> Serializing a  </nowiki>
  |author =  <nowiki> Hooray </nowiki>
  |date  =  Jun 22nd, 2014
  |added  =  Jun 22nd, 2014
  |script_version = 0.40
  }}</ref> <ref>{{cite web
  |url    =  https://forum.flightgear.org/viewtopic.php?p=203550#p203550
  |title  =  <nowiki> Re: Atlas still in use ? </nowiki>
  |author =  <nowiki> Hooray </nowiki>
  |date  =  Mar 18th, 2014
  |added  =  Mar 18th, 2014
  |script_version = 0.40
  }}</ref>.
This could be considered the groundwork needed for more sophisticated use-cases such as e.g. actually streaming a live video of a certain MFD to a browser.
Continue reading at [[Read canvas image by HTTP]]


== In the hangar ==
== In the hangar ==

Navigation menu