1
0
Fork 0

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.
This commit is contained in:
Ralf Gerlich 2009-09-24 09:38:47 +02:00
parent 72cbcac816
commit b0a47dfa0e

View file

@ -98,7 +98,7 @@ void gen_simple_rwy( const TGRunway& rwy_info,
rwy_polys->push_back( sp );
SG_LOG(SG_GENERAL, SG_DEBUG, "clipped_b = " << clipped_b.contours());
*accum = tgPolygonUnion( runway_b, *accum );
tp = TGTexParams( runway_b.get_pt(0,0),
tp = TGTexParams( runway_b.get_pt(0,2),
rwy_info.width * SG_FEET_TO_METER,
rwy_info.length * SG_FEET_TO_METER / 2.0,
rwy_info.heading + 180.0 );