62df58d4f8
Aaron says: I just got the virtual runway hud projection working on all views and 2D & 3D HUDs. It is working awesome(see below). I have attached every file that was modified (hud.hxx, hud.cxx, and the default.xml for the hud) and every file that was added (hud_rwy.cxx and runwayinstr.xml). Just a quick overview of how the instrument works. The virtual runway is projected by getting the "cockpit view" of the runway in 3D and projecting the points on to the 2D HUD. Therefore, the virtual runway will be displayed the same in every view. For example, you can land an aircraft from the "Tower View" by flying the HUD. Also if you're in "Cockpit View" and it is centered then the virtual runway lines will perfectly outline the actual runway. I am getting the active runway via the wind like done in the ATC classes, which may need changed. Also, I made the assumption the view 0, in view manager, is always the cockpit view, which may need changed as well. The runway configuration file will allow you to specify a center offset (x,y) and a bounding box (width,height). You can also configure the line stipple pattern for the outside and the center line. For instance, if you wanted a 0xFAFA pattern, then specify 64250 as the value. If you want a solid line, you can specify -1 or 65535 (0xFFFF) and zero will turn the line off. It also draws a runway indication arrow when the runway is not in the HUD or it can be drawn all the time if arrow_always is true. The arrow will point in the direction of the runway (2D) by rotating around the center at a radius of arrow_radius. If you wish to turn the arrow off, you must set the arrow_scale <=0. The arrow really should be 3D arrow that points to the runway (or points in the direction of the aircraft-to-runway vector). |
||
---|---|---|
.. | ||
AIModel | ||
Aircraft | ||
Airports | ||
ATC | ||
Autopilot | ||
Cockpit | ||
Controls | ||
Environment | ||
FDM | ||
GUI | ||
Include | ||
Input | ||
Instrumentation | ||
Main | ||
Model | ||
MultiPlayer | ||
Navaids | ||
Network | ||
Objects | ||
Replay | ||
Scenery | ||
Scripting | ||
Server | ||
Sound | ||
Systems | ||
Time | ||
Traffic | ||
.cvsignore | ||
Makefile.am |