1
0
Fork 0
flightgear/src
curt 62df58d4f8 I have added Aaron Wilson's virtual 3d runway projection to the HUD.
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).
2004-11-19 18:31:02 +00:00
..
AIModel Mathias Fröhlich: 2004-11-19 12:33:08 +00:00
Aircraft Remove an unneeded #include. 2004-09-10 18:30:24 +00:00
Airports Often, the elevation of an ILS component is not listed in our nav database. 2004-06-09 03:13:13 +00:00
ATC Migrate FlightGear code to use "#include SG_GL*" defined in 2004-11-18 19:53:00 +00:00
Autopilot Roy Vegard Ovesen: 2004-10-14 09:19:44 +00:00
Cockpit I have added Aaron Wilson's virtual 3d runway projection to the HUD. 2004-11-19 18:31:02 +00:00
Controls Mathias FröhlichMathias Fröhlich: 2004-11-19 12:33:53 +00:00
Environment More fixes to get the code working when threads are disabled. 2004-09-10 07:54:45 +00:00
FDM Roy Vegard Ovesen: 2004-10-24 11:05:14 +00:00
GUI Migrate FlightGear code to use "#include SG_GL*" defined in 2004-11-18 19:53:00 +00:00
Include Frederic Bouvier: 2004-10-03 08:20:54 +00:00
Input Fix some warnings. 2004-10-26 12:09:31 +00:00
Instrumentation Roy Vegard Ovesen: 2004-11-13 15:00:00 +00:00
Main Migrate FlightGear code to use "#include SG_GL*" defined in 2004-11-18 19:53:00 +00:00
Model Finish what was committed in a broken state yesterday. 2004-09-20 13:21:51 +00:00
MultiPlayer Finish what was committed in a broken state yesterday. 2004-09-20 13:21:51 +00:00
Navaids Make distance penalty math for opposite oriented navaids more correct. 2004-07-20 00:59:17 +00:00
Network Migrate FlightGear code to use "#include SG_GL*" defined in 2004-11-18 19:53:00 +00:00
Objects Comment out the rest of the Makefile to make the compierl happy 2003-12-02 17:57:21 +00:00
Replay Make separate left/right flap surface positions in the net_fdm.hxx 2004-10-29 00:13:32 +00:00
Scenery Frederic Bouvier: 2004-10-17 17:23:19 +00:00
Scripting Melchior caught a missing return value that is now an error on newer gcc versions 2004-11-15 18:15:33 +00:00
Server Multiplayer client/server system -- Message base class, "hello" message, and message class test harness 2003-11-08 20:11:14 +00:00
Sound Make use of cached pointers instead of the hash table. 2004-09-19 12:29:07 +00:00
Systems Roy Vegard Ovesen: 2004-11-13 15:00:00 +00:00
Time Migrate FlightGear code to use "#include SG_GL*" defined in 2004-11-18 19:53:00 +00:00
Traffic Rearrange ID related code. The (this) pointer is now the unique ID of the AIModel which fixes a number of problems along the way. 2004-09-08 13:21:40 +00:00
.cvsignore -Removed .cvsignore from itself, since .cvsignore is now in the CVS 2001-12-12 04:15:23 +00:00
Makefile.am Add the AIModel based air traffic subsystem from Durk Talsma. 2004-06-03 17:59:14 +00:00