FlightGear Newsletter June 2014: Difference between revisions

Jump to navigation Jump to search
m
Line 90: Line 90:


=== Canvas System ===
=== Canvas System ===
{{FGCquote
  |The upcoming FlightGear version (3.2) will contain a canvas-based map dialog, including a modular "plugin" system for creating custom map layers and charts with roughly ~50 lines of code, most of it boilerplate. <br><br>This is entirely XML/Nasal based (scripted) - symbols can be pretty much anything, raster or vector images (png or svg), but even animated. Styling can be customized, too.<br><br>For more info, I suggest to check out:<br><br>[[MapStructure#Porting_the_map_dialog|http://wiki.flightgear.org/MapStructure ... map_dialog]]<br>[[File:MapStructureDialog.png|250px]] <br><br>You can basically create arbitrary layers, even for custom objects/positions:<br>[[File:Map-canvas-chain-home-editor.png|250px]]<br><br>The same method can be used for creating a "live" radar display:<br>[[Canvas_Radar|http://wiki.flightgear.org/Canvas_Radar]]<br>[[File:MapStructure-TFC-Troubleshooting.png|250px]]<br><br>But maps and layers can be fairly sophisticated, too - all 100% scripted:<br>[[FlightGear_Newsletter_May_2014#A_Canvas-based_Map_dialog|http://wiki.flightgear.org/FlightGear_N ... Map_dialog]]<br>[[File:Map-canvas-dialog-storms-overlay.png|250px]]<br><br>As long as you use the MapStructure framework, all layers can be easily used in dialogs AND instruments<br><br>Coding-wise, there isn't too much involved these days, all the details are covered in the MapStructure article.
  |{{cite web |url=http://forum.flightgear.org/viewtopic.php?p=212558#p212558
    |title=<nowiki>Re: Get objects to show up on Map/Radar</nowiki>
    |author=<nowiki>Hooray</nowiki>
    |date=<nowiki>Sat Jun 14</nowiki>
  }}
}}
[[File:Aircraft-center-prototype.png|500px|thumb|Canvas dialog showing the prototype for an [[Aircraft Center]] for directly installing/managing aircraft from within FlightGear, an upcoming feature scheduled for FlightGear 3.2, currently being developed by TheTom and Zakalawe]]
[[File:Aircraft-center-prototype.png|500px|thumb|Canvas dialog showing the prototype for an [[Aircraft Center]] for directly installing/managing aircraft from within FlightGear, an upcoming feature scheduled for FlightGear 3.2, currently being developed by TheTom and Zakalawe]]


Navigation menu