No description
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). |
||
---|---|---|
docs-mini | ||
examples/netfdm | ||
man | ||
package | ||
scripts | ||
src | ||
tests | ||
utils | ||
.cvsignore | ||
acinclude.m4 | ||
am2dsp.cfg | ||
AUTHORS | ||
autogen.sh | ||
ChangeLog | ||
configure.ac | ||
FlightGear.dsp | ||
FlightGear.dsw | ||
Makefile.am | ||
NEWS | ||
README | ||
Thanks |
Welcome to the FlightGear Flight Simulator project. =================================================== The primary web page for this project is: http://www.flightgear.org For basic installation instructions see the "INSTALL" file. Before you can run FlightGear you will also need to download and install the "base" package which is a collection of textures, sounds, sample scenery, and other data files need by the sim. For additional install help for specific platforms please browse the "docs-mini/" subdirectory. More complete documentation is available from our web page as a separate distribution. Please take a look at the "Thanks" file for a list of people who have contributed to this project. If you have contributed something but don't find your name in this file. Please send a polite reminder to curt@flightgear.org For a summary of changes/additions by version see the "NEWS" file. This project is GPL'd. For complete details on our licensing please see the "COPYING" file. For information on available mailing lists, mailing list archives, and other available source code and documenation, please visit our web site. FlightGear is a product of the collaboration of large international group of volunteers. FlightGear is a work in progress. FlightGear comes with no warrantee. We hope you enjoy FlightGear and/or find it of some value!