1
0
Fork 0
Commit graph

515 commits

Author SHA1 Message Date
curt
d723504e94 Curt's script for processing VMAP0 data. 2004-05-17 20:12:19 +00:00
curt
cd7ee31c7e Frequently our beloved polygon clipper will generate polygons with a wierd
branch.  Kind of an out and back.  node[n] == node[n+2] where there is some unique point in between.  Our triangulator is usually robust to this, but not in
100% of all cases.  So I had some code to catch and eliminate this weirdness.
However, a key piece of code was commented out (?!?) rendering it a no-op.
I fixed this and tile building is more robust now.
2004-05-13 21:34:25 +00:00
curt
341079f103 Fiddle with some debugging output temporarily.
Remove some #ifdef'd out code.
Reduce verbosity.
2004-05-13 21:29:17 +00:00
curt
a25776b4a6 Update for new scenery version. 2004-05-13 21:28:34 +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
de27ab5bf7 Change corresponding to a change in simgear. 2004-04-26 16:17:45 +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
f3db2e778c Skip short towers or we end up with way too many. 2004-04-18 17:28:41 +00:00
curt
d77acbd863 Doh! 2004-04-14 20:57:34 +00:00
curt
668aed0e1e Add some information about radio towers. 2004-04-14 18:38:58 +00:00
curt
2e93d6c7a6 Add a script to preprocess a USA radio tower database into something we
can use.
2004-04-14 18:16:25 +00:00
curt
1b769f02b9 Update some of my scenery building notes. 2004-04-14 14:35:51 +00:00
curt
eea57f81b8 Add some end time estimation code to keep myself entertained while I wait
for the program to finish.
2004-04-14 14:35:09 +00:00
curt
9c43f4785e Add a routine to place a "shared" object into the Work tree so the tile
builder can pick it up later in the final assembly process.
2004-04-14 14:34:13 +00:00
curt
35f324ddaa Some of the prep tools can define objects to go into the final .stg files.
Enhance the build tiles utility to handle a larger variety of cases.
2004-04-14 14:33:22 +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
92650b6ded Need to #include <stdio.h> if we are using printf() 2004-04-10 14:22:08 +00:00
curt
e779c45679 Output a % done periodically. 2004-04-09 15:55:07 +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
b6be77e5da Add an option to subdivide polygon edges so that no single edge segment is
longer than the specified length (in meters).  Defaults to no edge subdividing.
2004-04-08 19:36:43 +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
david
4d3cbc5f55 Added more generated files. 2004-04-04 14:23:49 +00:00
ehofman
791b1bb4fc David Luff:
The patches deal with three separate issues, all rolled up into one
tarball:

Currently, arrayfit always appends .arr.gz onto the name passed on the
command line, meaning that only tile names can be passed.  The patch strips
off .arr or .arr.gz if present prior to it's appending, meaning that tile
names or filenames can be passed on the command line.

The interface to the OSGB36 conversion functions is cleaned up a lot.  I
can't believe I originally wrote it in such an ugly manner!

A lot of console output (> 5000 lines per tile) is removed from the final
construction process, meaning that the output left can actually be read.
2004-03-08 09:47:42 +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
d0c14eef21 Tweak error thresholds. 2004-01-08 21:36:18 +00:00
curt
da71823a3e Tweak to build with latest simgear cvs. 2004-01-08 21:35:56 +00:00
curt
8214fa2ccc Tweaks to build scripts. 2004-01-08 21:35:38 +00:00
curt
3fa11a9348 Fix to build with latest simgear cvs. 2004-01-08 21:35:23 +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
curt
b635ee443d (running tgvpf --chunk=e020n40 --work-dir=Lakes --material=Lake /home/romosan/scenery/vmaplv0 eurnasia hydro inwatera).
It looks like the program gets into an infinite loop while findind
edges for a contour (inserting the same edge over and over until the
program runs out of memory). i am not quite sure i understand the code
but the following patch solved the problem for me:
2003-12-18 17:38:05 +00:00
curt
a27a7d9367 Updated to track a minor file naming change. 2003-12-15 16:44:27 +00:00
curt
a4ae777cf2 Add an example usage: 2003-12-15 16:34:09 +00:00
curt
ee4451de4d Initial revision. 2003-12-15 16:30:04 +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
f2382f77a1 Various changes and updates. 2003-11-12 22:16:03 +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
467e70faa0 Updates. 2003-09-16 19:32:11 +00:00
curt
56dfd0985d Fix a small bug in handling of x-plane data. 2003-09-05 21:03:27 +00:00