curt [Sun, 13 Jun 1999 05:58:02 +0000 (05:58 +0000)]
Created an FGTileMgr class to encapsulate the high level tile management
tasks.
Created a tile load queue. When we init, or cross a tile boundary, we
stuff the new tiles to be loaded on a load queue, and then only load
one tile per frame. This will need further refinement, but it is better
than what we had.
curt [Sat, 12 Jun 1999 21:11:21 +0000 (21:11 +0000)]
Renamed fgTILE -> FGTileEntry.
Started working on dynamic tile cache.
Started working on dynamic tile entries (for drawing entirely in immediate
mode.)
curt [Thu, 10 Jun 1999 02:01:09 +0000 (02:01 +0000)]
Reversing the order of points causes the area calculation to return a
negative number. Polygon holes are wound opposite of non-holes. I was
throwing out holes with area < epsilon (i.e. all holes) ... enough said.
curt [Mon, 7 Jun 1999 03:40:33 +0000 (03:40 +0000)]
Sliver detection and elimination:
After I clip a polygon against the more important stuff, I
check the area and minimum interior angle of each of it's contours.
If both (area and min interior angle) are below some threshhold I'm
calling it a sliver. Then I go and look for another polygon such that
result = polygon_union( poly, sliver ) yields a result that doesn't
have anymore contours than the original poly. This means the sliver
is adjacent to poly. So I replace poly with result (the union) and
keep going.
curt [Sun, 6 Jun 1999 02:31:34 +0000 (02:31 +0000)]
Rewrote the polygon.[ch]xx class to save actual point data, rather than
indices to points.
Then with that in place I added wrapper functions for the libgpc calls so
I could ensure that I was always deallocating any allocated memory (which
was a concern before.)
This was all done in order to facilitate sliver detection and elimination
which is my next order of business.
These changes then were propogated through out the construction tools.
curt [Thu, 20 May 1999 04:27:20 +0000 (04:27 +0000)]
Fixed a bad bug which was showing itself with tiny triangles which caused
the region point to be calculated outside the region which caused things to
be colored improperly. Fixed by only evaluating the points of the current
contour (rather than the whole polygon) when generating the region points.
curt [Thu, 13 May 1999 19:01:29 +0000 (19:01 +0000)]
Fixed a problem with texture loading and mipmap building where the lower
mipmap levels were coming out hosed.
Adding a call to xglPixelStorei(GL_UNPACK_ALIGNMENT, 4); restores it to the
default setting which was getting set to something else in other parts of
the code.
curt [Wed, 12 May 1999 04:24:55 +0000 (04:24 +0000)]
Major shuffling to push basic material management out into FlightGear/Lib/
so it can be accessible from the scenery tools.
Also implimented JIT texture loading to save start time and memory.
curt [Wed, 12 May 1999 02:09:02 +0000 (02:09 +0000)]
Start of support for precalculating texture coordinates.
Try to avoid a situation where you cycle between too many nodes and two few
nodes with just a single increment of error level.
curt [Wed, 12 May 1999 02:07:21 +0000 (02:07 +0000)]
Changes to support plib-1.0.7's font code.
GUI improvements contributed by Norman Vine.
3dfx.sh wrapper script now sets voodoo2 variables as well.
Start of support for user defined texture scale.
Start of support for precalculated texture coordinates.