FlightGear Newsletter June 2014: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
(Canvas cleanup/restructuring - more to come...)
mNo edit summary
Line 7: Line 7:
{{Newsletter-cover-item|Canvas GUI: Layouting, Widgets and MessageBoxes}}<br/>
{{Newsletter-cover-item|Canvas GUI: Layouting, Widgets and MessageBoxes}}<br/>
{{Newsletter-cover-item|Preview: Aircraft Center - get it on the fly}}<br/>
{{Newsletter-cover-item|Preview: Aircraft Center - get it on the fly}}<br/>
{{Newsletter-cover-item|Canvas/MapStructure Updates}}<br/>
{{Newsletter-cover-item|Logo proposal}}<br/><br/>
{{Newsletter-cover-item|Logo proposal}}<br/><br/>
{{Newsletter-cover-header|Addons and mods}}<br/>
{{Newsletter-cover-header|Addons and mods}}<br/>
Line 100: Line 101:
[[File:Fglogoforum.png]]
[[File:Fglogoforum.png]]


{{Newsletter-article-start|MapStructure stress-testing|By [[User:Hooray|Hooray]]}}
{{Newsletter-article-start|Canvas/MapStructure Updates|By [[User:Hooray|Hooray]] and [[User:Philosopher|Philosopher]]}}
 
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. 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.
 
For more info, I suggest to check out: [[MapStructure#Porting the map dialog]]
 
<gallery mode=packed>
MapStructureDialog.png|You can basically create arbitrary layers, even for custom objects/positions
Map-canvas-chain-home-editor.png|The same method can be used for creating a "live" radar display
MapStructure-TFC-Troubleshooting.png|
Map-canvas-dialog-storms-overlay.png|But maps and layers can be fairly sophisticated, too - all 100% scripted
</gallery>
 
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.
 
 
[[File:Map-canvas-mapstructure-performance.png|thumb|stress-testing [[MapStructure]] using the ufo @ KSFO circling at 2000 kts in a climb, see [http://forum.flightgear.org/viewtopic.php?f=71&t=21509&p=211611#p211611] ]]
[[File:Map-canvas-mapstructure-performance.png|thumb|stress-testing [[MapStructure]] using the ufo @ KSFO circling at 2000 kts in a climb, see [http://forum.flightgear.org/viewtopic.php?f=71&t=21509&p=211611#p211611] ]]


Line 166: Line 182:
Canvas-mfd-framework-prototyping-with-mapstructure-with-kln89-skin.png|This screen shot shows the texture of the hard-coded KLN89 instrument used as a skin/theme for the MFD instrument, with a MapStructure-powered map shown.
Canvas-mfd-framework-prototyping-with-mapstructure-with-kln89-skin.png|This screen shot shows the texture of the hard-coded KLN89 instrument used as a skin/theme for the MFD instrument, with a MapStructure-powered map shown.
</gallery>
</gallery>
{{Newsletter-article-start|Canvas System|By [[User:Hooray|Hooray]]}}
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. 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.
For more info, I suggest to check out: [[MapStructure#Porting the map dialog]]
<gallery mode=packed>
MapStructureDialog.png|You can basically create arbitrary layers, even for custom objects/positions
Map-canvas-chain-home-editor.png|The same method can be used for creating a "live" radar display
MapStructure-TFC-Troubleshooting.png|
Map-canvas-dialog-storms-overlay.png|But maps and layers can be fairly sophisticated, too - all 100% scripted
</gallery>
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.


{{Newsletter-article-start|Damage and disintegration|By [[User:Algernon|Algernon]]|FlightGear addons and mods}}
{{Newsletter-article-start|Damage and disintegration|By [[User:Algernon|Algernon]]|FlightGear addons and mods}}

Navigation menu