1
0
Fork 0
Commit graph

485 commits

Author SHA1 Message Date
Christian Schmitt
785c4afcda Move the whole genapts over to the metric system.
Now we calculate with metric values internally, however, the
fixed feet values in the source will have to be converted or
be used with SG_FEET_TO_METER for now.
2012-03-25 23:52:10 +02:00
Christian Schmitt
2fff6d803e Work on supporting 850 light definitions.
This is still WIP, but lots of stuff already working.
2012-03-25 23:52:09 +02:00
Christian Schmitt
0bffde0f2d Make stopways work again, too 2012-03-25 23:52:09 +02:00
Christian Schmitt
66fc88c666 Implement individual runway markings for both ends.
Simplified code a lot, removed runway-specific files with
a lot of duplicate code. Put marking logic into
functions.
2012-03-25 23:52:09 +02:00
Christian Schmitt
8ac29ac8a8 Implement two runway end designations for precision runway 2012-03-25 23:52:00 +02:00
Christian Schmitt
0e83e180fc Introduce 2nd variable for other runway end designation.
Some cleanup, too.
2012-03-25 23:51:38 +02:00
Christian Schmitt
83144f66a3 get runway center calculation right 2012-03-25 23:51:38 +02:00
Christian Schmitt
0dddd26b91 first work on reading apt.dat 8.50 2012-03-25 23:50:22 +02:00
PSadrozinski
1eae25d17a removing automake files - just updating cmake build files from now 2012-03-25 23:37:26 +02:00
Christian Schmitt
17dbaffadd Remove all plib deps completely. TG is now plib-free :) 2011-10-25 16:20:31 +02:00
Christian Schmitt
89ca2ae1e4 Add cmake install targets 2011-10-24 18:07:35 +02:00
James Turner
4e39bff58a Linux fixes for Cmake support. 2011-10-24 13:46:15 +02:00
James Turner
83e6225460 CMake support for TerraGear, and PLIB/OSG/OpenGL removal. 2011-10-24 13:46:15 +02:00
Christian Schmitt
81244fb0fe clean up .gitignore files. Entries are applied recursively 2011-10-24 12:57:53 +02:00
Christian Schmitt
2186e2b89e remove all .cvsignore files 2011-10-24 12:57:53 +02:00
Christian Schmitt
6bb0c32ca1 Clean up old files 2011-10-07 17:31:48 +02:00
Martin Spott
f8084b5fdf No CVS in here any more .... 2011-09-25 11:45:07 -07:00
Ralf Gerlich
0fdbcaff63 Adapt to changes in simgear 2011-03-27 10:05:14 +02:00
Ralf Gerlich
c09aeb328e Fahim Dalvi:
add SRTM-1 and SRTM-3 to the list of elevation directories
2010-07-31 19:23:03 +02:00
Ralf Gerlich
4e9a529b1f Adapt to the removal of Point3D from simgear. 2010-07-31 19:21:59 +02:00
Ralf Gerlich
f68f25e0c5 Add remaining WorldScenery processing scripts. 2010-07-17 17:30:51 +02:00
Ralf Gerlich
4f815e8703 Fahim Dalvi:
Allow setting the maximum runway slope on the command line.
2010-07-02 21:02:32 +02:00
Ralf Gerlich
1ad2b2e0e9 Write the last_apt file into the workdir instead of the directory where genapts is started from (closes #12) 2010-01-24 09:01:36 +01:00
Ralf Gerlich
69eb4be737 Ron Jensen: Fix stopway length and order and create proper stopway texture.
Thanks, Ron.
2010-01-11 20:25:52 +01:00
Ralf Gerlich
3bee1edab4 Added --clear-dem-path and --dem-path= options to genapts cmdline to allow custom paths for the DEM data (closes #4) 2009-12-18 21:33:02 +01:00
Ralf Gerlich
1daeb0f99e Added stopways to runways (closes #2) 2009-12-18 20:56:17 +01:00
Ralf Gerlich
7b08557191 John Holden:
Fix runway markings for center runways.

http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net/msg24634.html
2009-11-10 10:11:31 +01:00
Ralf Gerlich
b0a47dfa0e Ron Jensen:
Dirt and grass runways are generated by GenAirports/rwy_simple.cxx.
The runways are divided into two halves, "A" and "B" each consisting of
two triangles.
Runway half "A" is good.
Runway half "B"'s first triangle UV coordinates are a very short line,
and its second triangle's UV coordinates are a point.

[...]

[T]his patch does the Right Thing.  It simply changes the reference
point so the UV coords for the B runway are positive.  They were coming
out negative and getting clipped in build.cxx.
2009-09-24 09:46:27 +02:00
Frederic Bouvier
72cbcac816 Fix warnings under MSVC 2009-06-14 23:36:54 +02:00
Frederic Bouvier
26a787d847 MSVC 7.1 project files - Release build 2009-01-27 08:16:14 +01:00
Ralf Gerlich
521f9e2fc9 Removed remaining "using"-declarations from header-files. 2008-08-08 12:48:08 +02:00
Ralf Gerlich
e4ac5911ae Made sure that any #include-instruction comes before the first "using"-declaration, so that we can spot buggy header-files more easily. 2008-08-08 12:31:02 +02:00
Ralf Gerlich
4a35fedf64 Adapt to changes in simgear/compiler.h (removal of STL_* and SG_USING_STD() macros). 2008-08-08 12:17:43 +02:00
Ralf Gerlich
e813c093fc Adapt to current SimGear version (<iostream> include changes by fredb) 2008-06-17 11:06:35 +02:00
Ralf Gerlich
4a96ed8af2 Revert "Fixed taxiway drawing order. genapts wants them from top to bottom, not from bottom to top, as it was previously fed."
This reverts commit 5a6697b4e0b6e59a727868a912bff4c1fd8c91da.

Not genapts was at fault but the new TaxiDraw version (CVS HEAD). Robin Peel confirmed that the objects in apt.dat are listed top-down, i.e. the topmost element comes first.
2008-04-14 09:18:07 +02:00
Ralf Gerlich
101cae53ad Fixed taxiway drawing order. genapts wants them from top to bottom, not from bottom to top, as it was previously fed. 2008-03-29 13:04:37 +01:00
Ralf Gerlich
f01a1daa7b Fixed criterion for removal of small degenerate polygons. 2008-02-08 22:24:53 +01:00
Ralf Gerlich
e29bdcfe59 Removed test printouts. 2008-02-08 13:52:12 +01:00
Ralf Gerlich
cd90019bbf Intermediate fix for calc_point_inside 2008-02-08 13:52:10 +01:00
Ralf Gerlich
14403c2d8d Made ogr-decode and genapts use their own poly_counter-files in their own directories. 2008-01-01 16:27:46 +01:00
Ralf Gerlich
f99c623a98 Added binary files to .gitignore 2007-12-19 09:29:20 +01:00
Ralf Gerlich
217c111155 Workaround for a buggy apt.dat-file: 00-records start showing up which seem to represent Center-frequencies. 2007-12-12 12:33:33 -08:00
Ralf Gerlich
54e72714c4 Remove the previous static list of material identifiers and replaced them by material names. Only the clipper still has a static list for identifying priorities. 2007-11-22 17:44:29 +01:00
Ralf Gerlich
27dd0a41d8 Fixed the genapts apt.dat parser:
- The VASI GS angle is properly parsed
- Don't assume given column numbers but properly split the lines at whitespaces
- actually make use of the order of taxiways as specified in the apt.dat
- make the min/max lat/lon work (patch provided by Torsten Dreyer on terragear-devel [1])

[1] http://mail.flightgear.org/pipermail/terragear-devel/2007-January/001389.html
2007-11-08 22:27:02 +01:00
Ralf Gerlich
fcb9e6c8ba Fixed the build system 2007-11-08 22:14:02 +01:00
curt
10558113e8 Cygwin patches from Frederic Bouvier. 2005-12-19 16:51:25 +00:00
curt
99da0c21b0 Change SRTM directory names to reflect SRTM v2.0 2005-12-19 15:53:21 +00:00
curt
9ff8e4367d fix typos in comments/debugging output. 2005-12-19 15:52:50 +00:00
curt
a00eb22170 Make the course grid a bit finer. 2005-10-31 18:43:27 +00:00
curt
13e1be6c06 Fix a bug with possible missing skirt nodes. 2005-10-31 18:43:02 +00:00
curt
a42d16fb01 Fix some small bugs. 2005-10-31 18:42:37 +00:00
curt
e78b14e052 Fix glide slope angle parsing for newest x-plane data. 2005-09-28 17:27:07 +00:00
curt
c131a2c572 Fix a small bug that left a missing triangle in airport skirts. 2005-09-28 16:38:50 +00:00
curt
d4ffe52562 Do all the numerical work for surface fitting around 0,0,0 to reduce problems
with floating point roundoff.
2005-09-09 20:47:04 +00:00
curt
3b879d29c2 Fix some bugs in my first attempt at a new airport surface fitting scheme.
The code is now workable but needs some fine tuning.
2005-09-09 20:16:10 +00:00
curt
b8948faf58 This is a first pass at removing the nurbs++ dependency from TerraGear (in
favor of newmat11 which is much simpler, and seems to compile well on modern
OS's.)  I need to do some further testing of genapts and until then, don't
assume the new mechanism is working perfectly.
2005-09-09 15:05:15 +00:00
curt
ade941fb6f Support Robin's new data field in the runway record that lists the glideslope
angle for each end of the runway (affects vasi/papi alignment.)
2005-04-20 18:20:15 +00:00
curt
71c793f9b1 Handle Robin Peel's apt database with dos or unix line endings. 2004-12-10 17:58:18 +00:00
curt
650bbd7e51 Update my mailing address. 2004-11-19 22:25:49 +00:00
curt
fb71b5876c - Chased down a bug that caused threshold lighting to be omitted in some
situations

- Made the code a bit more robust and able to handle the handful of rare
  occasions when the least squares nurbs interpolator fails.

- Add airport surface bases for towers, windsocks, beacons, and vasi/papi
  lighting so they never are buried and never float.  (I'm considering the
  idea of doing this for the approach lighting too ...)
2004-11-11 15:05:13 +00:00
curt
696fa632b4 A few tweaks to better handle newest airport data. 2004-11-09 15:17:52 +00:00
curt
2df4726f33 Do a least squares nurbs approximation to coarse grid when deriving airport
surface.  I think I have this working robustly.

A few miscellaneous tweaks to handle latest X-Plane data (with a few new
runway surface codes we hadn't seen before.)
2004-11-08 21:59:04 +00:00
curt
e711b18d20 Make sure taxiways get generated. 2004-10-15 20:38:56 +00:00
curt
27cfc32e4e First stab at code changes to support the X-Plane data format directly. 2004-10-15 20:14:38 +00:00
curt
08f9a12765 Various changes to match changes in supporting Lib API(s). 2004-05-17 20:43:31 +00:00
curt
80a1b1ef23 A couple small tweaks to the airport generator to try to eliminate
surface artifacts.
2004-05-12 20:08:55 +00:00
curt
ae939e2e44 Fix a small (but potentially confusing) spelling error. 2004-04-26 16:22:21 +00:00
curt
fd0a6e29fc Ok, this change seems to help a lot.
There are quite a few difficult cases where an airport is located on top
of a hill, or in a bowl, or has a significant elevation change near by.
I take the average elevation of the area and clamp the outlyers.  However
these difficult cases "bias" the average elevation because the airport
surface may include much of the surrounding area.

This change to the code computes the airport elevation *only* based on the
actual airport geometry node and ignores all the surrounding nonsense that
might exist.  This doesn't make things perfect, but is a *big* step forward
for airports in areas with significant elevation change nearby.
2004-04-21 17:03:59 +00:00
curt
ac461bda55 - Switch to using doubles for the nurbs library. We were running out of
precision with floats.

- Restructure how the airport surface is sampled just a bit.

- Solving for X,Y given U,V on a nurbs surface is a little bit tricker than
  I first thought.  If you change one demension of U or V, you can change
  both X and Y.  We need to solve for each X, Y axis independently, and
  then iterate in case moving in the other axis has taken us away from the
  solution in the first axis.

- Add a slope constraint on airport surfaces.
2004-04-20 01:14:15 +00:00
curt
29c57d3ff5 Yet another round of airport surface debugging and shuffling. Anyone want
to take bets on whether or not I got it right this time? :-)
2004-04-19 18:45:06 +00:00
curt
66cf156a77 Pass along beacon, control tower, and windsock data. 2004-04-14 14:32:22 +00:00
curt
b5894d473f Track and position beacons, windsocks, and towers. 2004-04-14 14:31:44 +00:00
curt
1399eb9de3 Rename tgSplitPolygon() -> tgChopPolygon() which is slightly more descriptive
and doesn't sound so much like the split long edges function.
2004-04-08 19:47:39 +00:00
curt
65ea77978f Make a couple function calls a bit more "name space friendly".
Expose a polygon function that will split up long edge lines to keep the
  max edge distance below some threshold.  This could be used for instance
  to reduce long lines in polygon area shapes so they can better follow
  the underlying terrain changes.
2004-04-08 19:20:19 +00:00
curt
f6a4951f36 Next attempt to get rid of grass. 2004-04-07 04:34:00 +00:00
curt
87cedc6fdb Oops, revert last change, displaced thresholds are included in overall
reported runway length.
2004-04-07 04:25:35 +00:00
curt
1a69225101 This patch *should* fix the "open grassy" areas at the centers of runways
with displaced thresholds.  (Not fully tested yet.)
2004-04-07 04:05:39 +00:00
curt
c8ded2eda1 Towards better airport surface simplification and smoothing. There were
several bugs in the previous try.  These changes should correct them.
2004-04-06 22:50:00 +00:00
curt
c75fa83c15 Airport lighting arrangement now factors in displaced thresholds. 2004-04-06 16:01:10 +00:00
ehofman
a71d62c859 David Luf:
The attached patches significantly quieten the output from genapts, which in it's current form resembles the universe flying by on a bad hair day   Remember chaps, console output on Windows is slooowwwwww...  Normal service may be resumed using --verbose or -v.  I've also added a short help, obtainable with --help or -h.  I've also added a couple of extra options, --airport=abcd for just generating a particular airport, and --tile=<[we]xxx[ns]xx> for generating a 1x1 degree tile.  We currently have --chunk=<[we]xxx[ns]xx> for generating a 10x10 degree chunk, and I'd like to eventually add --tile as an option to all tools that take --chunk.

This one adds the tile option to
tgvpf.

Erik Hofman:

Some small code changes for IRIX.
2004-02-26 15:33:32 +00:00
ehofman
0ec77c12c5 Make sure both TaxiDraw generated airport files and Robin Peels default database can be used without any problems. 2004-01-30 20:07:29 +00:00
curt
9eec038f19 Bevan Anderson:
Add support for generating Calvert-I/II approach lighting schemes.

Curt Olson: a couple tweaks to compile with latest simgear cvs.
2004-01-08 21:34:44 +00:00
david
30de6cb81a Get a little smarter about guessing what's an apron:
Before:

- if it's a concrete taxiway over 150 ft wide, assume it's an apron
  (confusingly called "tiedown")

After:

- if it's an asphalt or concrete taxiway over 150 ft wide, *or* if
  it has no blue taxiway lights, assume it's an apron
2003-11-30 22:03:06 +00:00
curt
e8bcdaa4d0 Updates to track recent changes in simgear. 2003-11-12 22:16:22 +00:00
curt
d64f5bdf87 Tweak to taxiway lighting names. 2003-09-23 23:08:26 +00:00
david
c4a3dbd26d Ignore generated files. 2003-09-20 11:06:14 +00:00
curt
56dfd0985d Fix a small bug in handling of x-plane data. 2003-09-05 21:03:27 +00:00
curt
53d6419b43 Give sea plane bases and heliports their proper identification. 2003-09-05 20:14:04 +00:00
curt
ff685ced13 - Add support for displaced thresholds on runways with nonprecision and visual
markings.
- Fix a couple very small alignment/sizing problems.
- Use a different texture (similar to rest) before aim points on nonprecision
  runways.  This will potentially make things easier if we want to add
  skid marks to the textures.
- Fix a couple bugs (el stupido) in precision marking generation.
2003-09-05 20:13:29 +00:00
curt
2538ac773f Added support for generating displaced thresholds (finally) :-) 2003-09-05 01:37:04 +00:00
curt
4f2528e8f7 Initial revision. 2003-09-04 02:53:40 +00:00
curt
b3e0d4b5f3 Slightly tweak size of grass area surrounding airports. 2003-09-03 22:10:51 +00:00
curt
d33d445cce Add the Utils directory to the build tree. 2003-09-03 22:10:06 +00:00
curt
028c9af689 Fix a bug that could lead to improperly positioned airports in some cases. 2003-09-03 17:09:05 +00:00
curt
5a84f39f83 Allow additional or non-standard terrain source directories to be specified
on the command line with the --terrain= option.  You can specify as many as you like.  Directories specified on the command line will take precidence over
the default directories and the directories will be searched in the order
specified.
2003-09-03 16:38:50 +00:00
curt
473c4d9b94 - Added support for generating green taxiway center lighting (when called for
in Robin's data.)
- Code adjusted to work with slightly modified input data format (part of
  our move away from metakit.)
- Eliminate some debugging output.
2003-08-29 20:34:46 +00:00
curt
812ab94975 Initial revision of runway.dat generator (tweaks to basic.dat generator) 2003-08-29 13:27:20 +00:00
curt
b8a4a97785 Initial revision of script to generate simple.apt from x-plane's latest
airport database.
2003-08-28 21:14:07 +00:00
curt
e93197d1b5 David Luff:
Attached are patches to Terragear to enable it to compile out of the box on
Cygwin (once all the relavent libraries have been compiled).  Specifically
they fix a conflict with another version of min/max somewhere on the
system.
2003-08-25 19:12:20 +00:00
ehofman
bcb7d5f77f Fix a mistake 2003-08-24 18:59:33 +00:00
ehofman
d8fcc7232a Don't bail out when not finding libnurbs++ but just don't create genairport and end with a warning 2003-08-24 17:27:25 +00:00
curt
83ebd1eba7 Use the correct number of parameters when calling the gen_runway_area()
functions.
2003-08-20 16:52:43 +00:00
curt
5937926a0b Ok, big oops here. I was passing 3 parameters to a 4 parameter function,
but because of the use of default arguments, the compiler wasn't flagging
this as an error.  This caused a) much stupidity and b) additional stupidity.

I also found a case where I passed in a length and width extention parameters
but, used the length parameter twice ignoring the width parameter.  This
yields much more sensible and expected results when building the grass buffer
zone around a runway.
2003-08-20 16:52:04 +00:00
curt
9e9a13bbdf Do some additional processing on the airport surface grid to try to clip
out spikes and other wierdness and generally keep a reasonable bounds
on how much the surface can vary.
2003-08-20 16:49:12 +00:00
curt
af6dc9bb0d Various parameter tweaks. 2003-08-19 02:23:25 +00:00
curt
0cbbe80488 Changes to track libArray api tweaks. 2003-03-19 22:52:04 +00:00
david
077f32fc60 Ignore generated files. 2003-03-19 00:28:49 +00:00
curt
06985ebabd Changes corresponding to API changes in libArray.a 2003-03-17 04:50:40 +00:00
curt
aa37052182 Check point ... 2003-03-14 01:51:18 +00:00
curt
9c85f16b5f Working towards the ability to specify elevations for a polygon in it's
intermediate mode.  The goal then is that these elevations would be
preserved throughout the tile construction process and the surrounding
geometry would fill in without gaps.  This has potential applications for
airports and runways of course as well as roads, rivers, streams, railroads,
or any other object where we might want to control the final elevation in
advance.
2003-03-12 18:23:31 +00:00
curt
ea58728f5c With the latest version of the libnurbs++, the include file extension has
changed from .hh -> .h
Generate a complete enclosing area around the airport including taxiways,
  not just runways.
2003-03-11 20:17:57 +00:00
curt
6c26352508 Avoid telling the nurbs library to do something it can't do (resulting
in a segfault.)
2003-03-10 15:01:08 +00:00
curt
bf96033516 Tweaking parameters. 2003-03-10 03:00:59 +00:00
curt
c986802faa The resulting airport surfaces still had too much undulation from the noise
in the DEM data.  Coarsen the nurbs grid and average some surrounding data
to hide the noise.
2003-03-09 19:19:19 +00:00
curt
846473a424 Make each representative grid point the average of a larger set of points. 2003-03-09 18:51:00 +00:00
curt
c170e77854 Switch to calculating node elevations based on the nurbs surface rather
than raw dem data.
2003-03-09 18:13:53 +00:00
curt
abd30e0352 Initial revsion of testnurbs.cxx which exercises some basic capabilities of
the nurbs++ library.
2003-03-09 18:12:25 +00:00
curt
15ae058d4a First stab at code to build a nurbs surface that approximates the surface
of an airport.
2003-03-09 18:11:29 +00:00
curt
e55881e063 More informative output. 2003-03-09 17:21:47 +00:00
curt
887297d8d0 A slightly more flexible way to find the best elevation data. 2003-03-08 03:25:05 +00:00
curt
e483bf0a34 Switch to using .arr as the intermediate height elevation array file extension. 2003-02-27 21:13:17 +00:00
curt
61764b286d Renamed FGTexParms -> TGTexParams. 2003-02-26 21:20:43 +00:00
curt
0e4f17ad51 Rename FGRunway -> TGRunway. 2003-02-26 21:16:43 +00:00
curt
62a3a1936c Rename FGSuperPoly -> TGSuperPoly 2003-02-26 21:09:39 +00:00
curt
bd1b254506 Rename: FGPolygon to TGPolygon 2003-02-26 20:59:34 +00:00
curt
61445e9af6 Renaming:
- FGContourNode -> TGContourNode
 - FGTriNodes    -> TGTriNodes
 - FGTriSeg      -> TGTriSeg
 - FGTriSegments -> TGTriSegments
2003-02-26 20:25:29 +00:00
curt
0a1108e494 Rename: FGArray -> TGArray 2003-02-26 19:59:25 +00:00
curt
8b269dc000 Erik Hofman:
A big honkin' set of minor tweaks to bring TerraGear into Irix compliance.
2003-01-07 22:46:51 +00:00
curt
27a068f721 Various fixes and tweaks. 2003-01-07 19:48:32 +00:00
curt
bb4c4f6b13 First stab at a utility to fetch scenery based on the current flightgear
position.

Terrasync runs as a separate process and accepts the --atlas=port format.
The fgfs output tells the terrasync util where FlightGear is currently flying.
Terrasync will then issue the appropriate commands to rsync the surrounding
areas to your local scenery directory.

As you fly, terrasync will periodically refresh and pull any new scenery tiles
in the vicinity.

This also works if the scenery on the scenery server is update.  Rsync will
pull any missing files, or any updated files.

There is a chicken/egg problem when you first start up in a brand new area.
FlightGear is expecting the scenery to be there *now* but it hasn't been
fetched yet.  I suppose without making a more complex protocol, the user
will need to be aware of this.  The user could restart flightgear after the
initial rsync completes, and then after that everything should be good,
assuming the user has the necessary bandwidth to keep up with flight speeds.

Final notes:

At the moment Alex Perry has a partial rsync server, but I don't know it's
status.  I hope to have a full server up and running at some point soon.

Currently the terragear utility just echos the commands it would run to
rsync the data, it doesn't actually run the commands.  This is a work in
progress.
2002-11-23 03:17:47 +00:00
curt
58bd28bb03 Make centerline light generation more robust for ultra short runways.
This keeps us from generation a bogus output file that could crash fgfs.
2002-11-22 22:00:08 +00:00
curt
8c992abfa4 Julian Foad:
- In runway error message, say which runway.
2002-11-11 15:19:56 +00:00
curt
c76dff0abf Fix a stupid bug in flattening approach lighting (used "i" rather than "j"
for the indexing variable.)
2002-11-09 17:02:10 +00:00
curt
ab5ae52e7d Force each light in an approach lighting groups to have the same elevation
equal to the elevation of the highest light.
Approach lighting systems don't rise and fall with the prevailing terrain.
This prevents portions of the approach lighting system from dipping below
ground level in cases where the surrounding terrain is simplified and doesn't
perfectly match the DEM data.
2002-11-08 20:36:18 +00:00
curt
5f502fc76b This falls under the oops category or perhaps I was uncharacteristically
confused by the alphabet soup.

- Forgot to impliment the SALS(F) version of SALS approach configuration.
- Was generating SSALS when the system was requesting SALSF.
2002-11-04 20:04:24 +00:00
curt
00f4c61073 - Implimented ODALS.
- Added threshold lights to runways that have edge lights but no other
  approach configuration that would have caused threshold lights to be
  created.
2002-11-04 16:30:26 +00:00
david
9af342a033 Patch from Frederic Bouvier:
I had a segfault in case result.size() is 0 because result[i] is used
before knowing it exists. I inverted the test and it now goes well.
2002-11-01 10:49:49 +00:00
curt
276ad45d0e Fix runway "0" problem.
Fix problem with skirt node not being found in node list.
Other various tweaks.
2002-11-01 04:44:26 +00:00
curt
9f6fdee612 Use wgs_84 math to layout runways. My original method was a little backwards,
it involved creating a 2d runway object of the right size, rotating it and then
trying to back solve for the actual lon/lat.  This and a few other problems was
causing problems with subsequent texture coordinate calcs for the runway
surface textures.  It also could have contributed to runways/lighting being
slightly misaligned with the ILS's.  Then lots of minor cascading changes as a
result.
2002-10-31 19:59:37 +00:00
david
9d44a4ae64 Commented out unqualified cout statement. 2002-10-26 16:54:07 +00:00
curt
cb30b2d474 Oops, missed a needed change. 2002-10-26 01:22:44 +00:00
curt
51287d6785 Taxiways look a bit better if we insert them in sorted order from larger
to smaller.
2002-10-25 17:17:34 +00:00
curt
53a2f9c347 Simplify runway texture coordinate generation. 2002-10-25 16:52:01 +00:00
curt
8817ba7454 First pass at new runway layout. 2002-10-25 14:46:09 +00:00
curt
7368effd9e First crack at generating taxiway lights (with a normal vector of up.) 2002-10-22 03:56:12 +00:00
curt
a20c93b301 Added support of SALS (being phased out, but there are still a few
installations around in the US and Europe.)
2002-10-22 01:57:12 +00:00
curt
37f5d14616 Caution, check point, alsf 1/2 airport generation may not work correctly at the moment. 2002-10-22 01:14:54 +00:00
david
a240a50954 Corrected a typo. 2002-10-19 15:46:12 +00:00
david
aaaa59235b Added --chunk argument to simplify generating airports for a specific
chunk (like w130n30).
2002-10-19 15:42:50 +00:00
david
3a4ee63f3f Fix cout and endl not in the std:: namespace. 2002-10-18 22:26:13 +00:00
curt
b2ee8d6fa3 Add ALSF-1, MALS, MALSF, and MALSR. 2002-10-18 18:29:18 +00:00
curt
c2f620744a Added support for generating SSALS, SSALF, and SSALR approach lighting schemes. 2002-10-18 02:55:41 +00:00
curt
e58523db01 Make ALSF-II lighting scheme. 2002-10-17 23:09:44 +00:00
curt
6ebfa5d3b7 Threshold lights. 2002-10-17 15:52:00 +00:00
curt
1e15eae599 Added touchdown zone lights and reil lights. 2002-10-17 02:46:47 +00:00
curt
49ba2555d9 The center line lights are packed closer together so they look brighter.
I'm going to make them less intense than the edge lighting.
2002-10-16 22:38:47 +00:00
curt
5e9e89596a Update edge lighting so last 2000' are yellow.
Impliment center line lighting.
2002-10-16 22:23:34 +00:00
curt
c9584384d3 Better fix reciprical runway heading for vasi too. 2002-10-09 16:46:16 +00:00
curt
66bacda3ba Added support for PAPI, and oh yeah, definitely smoking crack on the
reciprical runway heading calculation.
2002-10-09 16:40:12 +00:00
curt
69c741fd64 Added necessary infrastructure to manage runway light generation. 2002-10-09 03:37:35 +00:00
curt
4fb0ca1e2b Beginning work on generating/placing VASI lights.
Ooops, I noticed my light infrastructure is insufficient, I need to add
support for creating multiple groups of lights with different types.
2002-10-08 22:25:01 +00:00
curt
43a271c396 Fixed a horrendous bug with generating runway lighting direction vectors. 2002-10-06 03:45:43 +00:00
curt
65d6f9c623 Tweaks to bring the automake/conf scripts into compliance. 2002-08-29 22:12:43 +00:00
david
8b990aa02a Changed exception to a warning when building skirt. 2002-08-03 12:45:23 +00:00
david
3357337946 Modified to add a cleared area around every runway, 200ft to each side
and 500ft off each end.
2002-08-02 20:51:40 +00:00
curt
6bd8a08f8b Additional tweaks to runway lighting (these have been sitting around
for a couple weeks ... I must have forgotten to commit.)
2002-06-15 13:39:45 +00:00
david
58634b2dfc - use SG_LOG throughout instead of cout/cerr
- in main.cxx, make the default log level SG_INFO rather than SG_DEBUG
  (developers can easily change it back during testing)

- replace all instances of exit() with an exception throw, caught in
  main.cxx, so that the program can go on processing the rest of the
  airports; to restore the old behaviour, just add an exit() to the
  catch clause

(Unfortunately, this still does not guarantee a full processing run,
because triangle.c in the library can invoke exit() when it gets
hopelessly confused.)
2002-03-22 15:05:54 +00:00
david
f42cdc4578 Added --min-lat, --max-lat, --min-lon, and --max-lon arguments to
build airports for a limited area.
2002-03-20 22:52:26 +00:00
curt
82f409ba67 Oops, fixed some 'typo' type bugs I missed in the first go around. 2002-03-13 05:08:21 +00:00
curt
a22b83516b More incremental work towards automatically generating runway lights. 2002-03-13 03:51:39 +00:00
david
5c19f61da1 Fixed namespace bugs that kept G++ 3.0 from compiling (mostly improper
use of namespaces with cout/cerr/endl).
2002-02-28 15:34:12 +00:00
curt
750437b242 Extremely *alpha* start at generating sample runway lights. 2002-02-27 23:08:15 +00:00
curt
8f07f918ae Roughing in some initial structure to facilitate runway lighting. 2002-02-27 18:58:06 +00:00
curt
c5f9e48267 Add a skirt around airport as a first line defense against pixel
wide border gaps.
2002-02-25 15:22:32 +00:00
curt
af24dc6d24 Did a bit of code restructuring. Hopefully to open things up to add
runway lighting.
2002-02-25 05:11:55 +00:00
david
a4e1215761 Ignore files for autogenerated files. 2001-12-30 02:16:03 +00:00
curt
7a4bac978e Various Irix fixes. Thanks Erik! 2001-07-31 20:14:54 +00:00
curt
f4d1b34776 Added support for tie down areas (width > 150 feet) and support for lakebed
taxiway types.
2001-07-31 20:13:56 +00:00
curt
f9a8370433 Tweak size of grass area surrounding taxiways. 2001-07-16 01:57:46 +00:00
curt
19d9392863 Renamed libgpc to libgenpolyclip to avoid a conflict with the gnu pascal
compiler.
2001-07-11 00:43:55 +00:00
curt
6c28c81180 Add support for generating taxiways.
Airport area is no longer the convex hull, but is instead just the area that
surrounds the runway and taxiways.
2001-06-22 19:26:09 +00:00
curt
d517af9042 Initial revision. 2001-04-28 13:24:04 +00:00
curt
483708977a Various reshufflings of directory layout. 2001-04-25 18:55:19 +00:00
curt
f6e553a1b6 SGD_PI. 2001-03-25 12:10:21 +00:00
curt
56745955f3 FG_ to SG_ changees. 2001-03-25 12:07:07 +00:00
curt
9acc48acce SG-ified logstream. 2001-03-24 05:06:35 +00:00
curt
f92570b07b SG_ namespace. 2001-03-24 03:56:19 +00:00
curt
0e8b7763b1 SG_ name space additions. 2001-03-24 03:34:04 +00:00
curt
29f155ae4a Teaks ... 2001-03-24 02:55:07 +00:00
curt
7ad217b1f1 FG_ to SG_ namespace changes. 2001-03-23 23:18:18 +00:00
curt
0b31b493d3 FG_ to SG_ namespace changes. 2001-03-23 21:59:33 +00:00
curt
234e707b2d Tweaks to eliminate gaps between runway sections. 2001-01-13 22:41:09 +00:00
curt
9ceccae99c Tweaks. 2001-01-12 22:22:00 +00:00
curt
c702807a9b Tweaks for new SGBinObject interface. 2001-01-06 04:31:57 +00:00
curt
23c60b8b54 Write only the binary object. 2001-01-05 00:05:49 +00:00
curt
8743f4591c Moved higher level output routines to simgear. Created a binary format. 2001-01-04 20:37:45 +00:00
curt
43f544d7df Tweaks/fixes for building airports. 2000-12-22 19:17:02 +00:00
curt
d44401402e Chasing down a bug in building the contour tree. Also tweaked the remove_dups()
routine in the process.
2000-12-22 02:33:37 +00:00
curt
583af21f9f Renamed FGBucket -> SGBucket. 2000-12-13 20:06:36 +00:00
curt
c8cc7e2a61 Contributed by Bruce Finney:
The following files have been changed to enable the latest Terragear CVS
to compile with MSVC++ 5.0

.\construct\clipper\clipper.cxx
        for( int i - lots of places

.\construct\genoutput\genobj.cxx
        fix directory logic for windows, line 320 and following

.\construct\main\main.cxx
        windows does not have an opendir function
        added code for windows directory functions
        disabled the mem allocation limit code - windows does not
        have similar functions
        for ( int i - several places

.\construct\match\match.cxx
        moved the definition of file and command outside of the ifdef line 420

.\lib\e00\e00.cxx
        for( int i  - several places

.\lib\e00\e00.cxx
        use simgear/compiler.h constructs

.\lib\geometry\contour_tree.hxx
        removed a cout statement

.\lib\geometry\poly_support.cxx
        added float.h  changed 1.0e+999 to DBL_MAX, windows doesn't go that big
        lots of for ( int i changes
        lines 193 and 208 no != operator defined - changed logic
        line 801 flag should be int, not bool, get_hole_flag returns int

.\lib\landcover\landcover.cxx
.\lib\landcover\landcover.hxx
        add include simgear/compiler.h
        see comments

.\lib\optimize\genfans.cxx
        function canonify added return at end, windows complains
        added using std  for cout and endl

.\lib\optimize\genstrips.cxx
        function tgGenStrips no return value, moved by_node into outer scope
        fix for ( int i ...

.\lib\poly2tri\construct.c
        added include <memory.h> for windows
        remove unused variables lines 435 & 437

.\lib\poly2tri\misc.c
        added HAVE_SYS_TIME_H logic for sys/time.h include file
        added logic to uses windows functions for time and rand

.\lib\poly2tri\monotone.c
        added include <memory.h> for windows
        lines 286-288 remove unused variables

.\lib\poly2tri\tri.c
        remove sys/time.h - no time functions called
        added include <memory.h> for windows

.\lib\polygon\polygon.cxx
        function polygon_to_tristrip will not compile I don't think the
        logic is complete, no returned data  added if else endif around
        function and polygon_to_tristrip_old, renamed _old function.
        Search of code reveals that function is not called by anyone.

.\lib\polygon\superpoly.cxx
        changed include <superpoly.hxx> to "superpoly.hxx"

.\lib\polygon\superpoly.hxx
        add include <windows.h> for windows before include <gl.h>
        needed for definitions used in Microsoft version of opengl

.\lib\shapelib\dbfopen.c
        added include files for windows
        lines 195-197 271-272 515-517 removed unused variables

.\lib\shapelib\shpopen.c
        added #include <stdlib.h> for malloc() and friends
        added include files for windows
        line 279 527 813 1127 removed unused variables
        line 827 cast result to int

.\lib\win32\mkdir.cpp
        documented function, remove debug lines

.\prep\demraw2ascii\main.c
        lines 46-50 remove unused variables

.\prep\demraw2ascii\rawdem.c
        line 47 changed logic to compile with MSVC
        line 244-256 set real constants to float, windows complains with
                double constants

.\prep\genairports\build.cxx
        lots of for ( int i  changes

.\prep\genairports\main.cxx
        fix mkdir logic for windows

.\prep\genairports\output.cxx
        added  using std  cout endl
        lots of for ( int i  changes
        fix mkdir logic for windows

.\prep\genairports\runway.cxx
        for ( int i  changes
        lines 117-118 161-162  remove default values for function parameters

.\prep\gshhs\main.cxx
        added using std cout

.\prep\shapefile\noaa_decode.cxx
.\prep\shapefile\shape_decode.cxx
        added using std  for cout
        lines 45-49 moved unused variables inside #if 0 block
2000-11-25 19:39:46 +00:00
curt
9162b789f5 Landcover/landuse changes by david megginson to group like chunks together into a single polygon.
Additional degeneracy and bad polygon screening.
Updates to ShapeDecode to handle NOAA landuse/cover shape files.
2000-11-13 15:19:39 +00:00
curt
25034ea180 Tweaks to track some minor naming changes in simgear. 2000-10-13 16:33:27 +00:00
curt
79d86a25ac Many changes to support airport modeling approach. 2000-09-20 21:44:59 +00:00
curt
683325ae42 Switched how textures were applied a bit (rotated by 90 degrees) since this
is a more sensible alignment.
2000-09-13 01:28:04 +00:00
curt
c1c1b59fae Updated runway texture layout in designator block. 2000-09-11 00:36:59 +00:00
curt
5606d93796 Fixed "rest" texture application. 2000-09-11 00:35:59 +00:00
curt
c9930e784e Whups, write out the AirportArea that has been segmented so it fits the
airport to go in the hole.
2000-08-30 14:04:34 +00:00
curt
3802a0385f Updates ... 2000-08-29 21:16:54 +00:00
curt
ef22db9c3a More tweaks as I work through the airport database. 2000-08-27 16:22:26 +00:00
curt
a72efe39c6 More updates and tweaks to make the genairport tools more robust. 2000-08-27 04:47:12 +00:00
curt
373ed3990d Ironing out bugs ... 2000-08-26 01:23:58 +00:00
curt
b6fc19c0bc Handle too-short visual runways for now by converting them to simple runways. 2000-08-26 01:19:13 +00:00
curt
e2ab3bff48 Ahh, there is a runway type "G" ... 2000-08-26 01:02:30 +00:00
curt
de4f235115 Tweaked to handle concrete textures as well as turf and dirt runways. 2000-08-26 00:52:07 +00:00
curt
4a68b387df Does proper runway designators now. 2000-08-25 21:55:30 +00:00
curt
11a577a079 Added non-precision and visual runway markings as well. 2000-08-24 22:15:25 +00:00
curt
05dd9aa7b3 Added more precision runway sections. 2000-08-24 16:09:49 +00:00
curt
33ea616de8 Added debugging output ... on the hunt of a T intersection problem. 2000-08-24 13:15:15 +00:00
curt
de2a9a21a8 A bit more debugging ... 2000-08-24 04:38:39 +00:00
curt
c2c4feb872 More work on runway markings. 2000-08-24 03:49:05 +00:00
curt
29910a6fe3 Initial revision. 2000-08-23 22:07:30 +00:00
curt
3d4c9c9c25 Started work on precision runway markings. 2000-08-23 22:07:14 +00:00
curt
d70c4eca1c Added code to chop up extra long line segments. 2000-08-22 22:06:47 +00:00
curt
c490afd971 Modifications towards doing more sensible runway surfaces and markings. 2000-08-22 21:23:07 +00:00
curt
e2c3b06d59 More bug fixes for airport generation. 2000-06-09 03:25:47 +00:00
curt
7e7fe8347c Updates and bug fixes; first complete pass through data set. 2000-06-07 02:33:33 +00:00
curt
a6675a1d5a Initial revision. 2000-06-05 22:34:12 +00:00
curt
43491f4ec0 Progress, we are now generating really crude airports. 2000-06-05 22:34:00 +00:00
curt
b7d76af6c1 Minor rearrangements. 2000-05-31 01:34:44 +00:00
curt
c54e5e8adc MSVC5 combatibility tweaks contributed by Bruce Finney. 2000-05-30 21:11:15 +00:00
curt
f6392100ac More work on triangulation and finding a point inside of each contour/hole
of a polygon.
2000-05-09 12:07:24 +00:00
curt
7e21f8b28f Working on polygon triangulation/tesselation. 2000-05-09 00:24:41 +00:00
curt
13cbdf7ecc More reorg. 2000-02-16 22:01:47 +00:00
curt
c687e7563b Restructuring directories/layout. 2000-02-14 17:38:44 +00:00
curt
b20be51d65 Initial revision 2000-02-09 19:51:45 +00:00