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:
parent
72cbcac816
commit
b0a47dfa0e
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Reference in a new issue