Hello,

I've been reading through a lot of the TerraGear code after I've read the 
center line problem but I'm interested in tackling a different problem. It 
doesn't help I don't have an intimate knowledge of C++, nor have I ever 
properly compiled TerraGear on Linux... so please bear with me.

Runway precision markers have an international flair to them. The UK uses a 
different set of aiming point bars, for instance. There are a lot of countries 
which use solid single stripes instead of having three- and two-bars, too - 
from Canada to the UK to Germany.

I've sent in a new UK aiming point texture to Martin to have him include that 
in the CVS (thank you in advance, Martin). Still, I need to create the code to 
get it into TerraGear so the texture can actually be used. A screenshot of what 
I'm trying to achieve can be found here: 
http://flightgear.org/forums/viewtopic.php?f=6&t=6338

Ideally, Heathrow would have all solid stripes as well instead of the 3-aim-2-2 
setup it currently has, but I want to make sure I have this correct first.

Right now I have this in rwy_prec.cxx, but there are a couple things I'm not 
sure about. Does airport_id get passed down into this subroutine from 
build.cxx? Am I calling airport_id correctly if it is? And did I even define 
texture_name correctly? Any help would be appreciated.


// Check to see if ICAO code merits UK-style aiming stripe
// Otherwise, load normal aiming stripe

string texture_name = "aim";

if(airport_id.substr(1,2) == "EG") { texture_name = "aim_uk"; }

    //
    // Aiming point
    //

    start1_pct = end1_pct;
    end1_pct = start1_pct + ( 400 / length );
    gen_runway_section( rwy_info, runway_a,
                        start1_pct, end1_pct,
                        0.0, 1.0,
                        0.0, 1.0, 0.0, 1.0,
                        rwy_info.heading,
                        material, texture_name,
                        rwy_polys, texparams, accum );

    start2_pct = end2_pct;
    end2_pct = start2_pct + ( 400 / length );
    gen_runway_section( rwy_info, runway_b,
                        start2_pct, end2_pct,
                        0.0, 1.0,
                        0.0, 1.0, 0.0, 1.0,
                        rwy_info.heading + 180.0,
                        material, texture_name,
                        rwy_polys, texparams, accum );


Cheers
John

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to