20,741
edits
m (→Early HLA Experiments: begin de-quoting, changing 1st person speech to 3rd person) |
|||
Line 43: | Line 43: | ||
=== Early HLA Experiments === | === Early HLA Experiments === | ||
{{DeQuote}} | {{DeQuote}} | ||
Stuart Buchanana has started looking at the [[HLA]] (High-Level Architecture) integration for FG, after some very useful discussion with Mathias Froehlich. This is just a note to say what he's looking at and how he's thinking of developing it. Any comments/advice is welcome. | |||
As background, we currently have a partial HLA implementation in SimGear which has a dependency on [[OpenRTI]]. As the name suggests, OpenRTI is an open-source RTI, which is developed by Mathias himself. | |||
This is all very well, but the HLA world has moved on since this code was written, and the code doesn't support some of the modern constructs. | |||
Mathias has been working on a toolkit that provides a lot of the "plumbing" required for a HLA client, in a much nicer package. This toolkit doesn't yet have a name, but would allow us to ditch most/all of the SimGear HLA code. (Note that like the current HLA dependency, this is completely optional and only required if one is compiling with the ENABLE_RTI boolean cmake option.) | |||
As a first use-case Stuart expects to start looking at a very basic AI integration so other aircraft in the federation are displayed within FG (see [[Decoupling the AI Traffic System]]). That doesn't really leverage the power of HLA, but should at least allow us to get to grips with the problems and architecture before moving onto more ambitious plans, including the Holy Grail of separating the viewer from the FDM. | |||
A lot of the challenge is likely to be in designing the data to be shared across the RTI, which will require a lot more thought than one might naively assume. <ref>http://sourceforge.net/p/flightgear/mailman/message/34600516/</ref>. | |||
Stuart has now successfully replaced the HLA implemented in SimGear with SimKit (the name of Mathias' abstracting layer). This has allowed Stuart to replace ~ 17000 lines of code in simgear/flightgear with 500 in flightgear alone. Stuart also has successfully joined an OpenRTI HLA federation, and received updates from an external source, which are displayed as an MP aircraft in the property tree<ref>http://sourceforge.net/p/flightgear/mailman/message/34622571/</ref>. | |||
{{FGCquote | {{FGCquote |