Simviation Forum
/yabb
Design Forums >> Scenery & Panel Design >> aircraft.cfg coordinate help
/yabb?num=1318987399

Message started by gtirob01 on Oct 18th, 2011 at 9:23pm

Title: aircraft.cfg coordinate help
Post by gtirob01 on Oct 18th, 2011 at 9:23pm
Im quite familiar with editing the aircraft.cfg for various things, but there is one part I never quite messed with.

For something like the afterburner entry... how are the numbers broken down. Or should I say, what does each number correlate to? Foe example;

light.8= 6, -37.00, -0.00, 1.05, fx_aniburnerTu22M1
light.9= 6, -49.00, -0.00, 0.85, fx_21um_ab.burner1.fx

I get the first section, what Im wondering about are the numbers starting to the right of the first comma. Any help would be appreciated!

Title: Re: aircraft.cfg coordinate help
Post by Webb on Oct 18th, 2011 at 10:50pm
Download the SDK from Microsoft for full explanations - this is from FS2002 SDK.

light.n = 3,  -3.03, -18.11, 3.58, fx_navred

Each “special effect” light has a line like the one above, where n is the index number of the light, 0,1,…  The first entry of the line defines which circuit, or switch, the light is connected to.  See the codes below.  Multiple lights may be connected to a singe switch.  The next three entries are the longitudinal, lateral, and vertical positions of the light in feet.  The final entry is the special effect file name that is triggered (e.g. fx_navred).  These files have .fx extensions and should be placed in “effects” folder in Flight Simulator’s root directory. 

Switches (first element of each line):
1 – Beacon
2 – Strobe
3 – Navigation or Position
4 – Cockpit

The switch (or circuit) code, longitudinal, lateral, and vertical position (in feet), and effect file.

Title: Re: aircraft.cfg coordinate help
Post by gtirob01 on Oct 18th, 2011 at 11:01pm
Thanks, I do understand the first set of coordinates. I'm trying to figure out the coordinates that come to the right of that. Or should I say, the actual position coordinates.

Title: Re: aircraft.cfg coordinate help
Post by todayshorse on Oct 19th, 2011 at 6:54am
Hey Rob, dont know if this helps but its about positioning a tailhook (using a light) but mentions the co-ords. As stated above, in feet i believe :-

"This piece of information is vital to creating a working definition. This offset represents the location of the end of the hook. This is used to calculate when the aircraft engages a wire. The easiest way to find this information, if the source model is not available, is to use a light effect to find the correct position. In the aircraft.cfg file of the model to be defined, add a light to the [lights] section by copying and pasting the following line:
light.N = 3, X, Y, Z, fx_navred ,
replace N with the next number in the sequence of lights, and the values X, Y and Z with a guess at the location of the hook. Load up a flight in FSX using the aircraft model, turn on the lights and lower the hook. Through trial and error, edit the X, Y and Z coordinates of the light so that it is positioned on the end of the hook (map a key to the Aircraft (Reload) event to update the light position in FSX). The X, Y and Z coordinates can then be copied directly into the 3wirex model definition.

Title: Re: aircraft.cfg coordinate help
Post by Fr. Bill on Oct 19th, 2011 at 1:18pm

gtirob01 wrote on Oct 18th, 2011 at 9:23pm:
light.8= 6, -37.00, -0.00, 1.05, fx_aniburnerTu22M1


Simple:

-37 is aft of the reference point position (fore/aft)
-0.00 is the centerline (left/right)
1.05 is above the centerline (up/down)

Title: Re: aircraft.cfg coordinate help
Post by gtirob01 on Oct 19th, 2011 at 1:39pm

Fr. Bill wrote on Oct 19th, 2011 at 1:18pm:

gtirob01 wrote on Oct 18th, 2011 at 9:23pm:
light.8= 6, -37.00, -0.00, 1.05, fx_aniburnerTu22M1


Simple:

-37 is aft of the reference point position (fore/aft)
-0.00 is the centerline (left/right)
1.05 is above the centerline (up/down)


Thats exactly what I was looking for! Thanks Bill!

Title: Re: aircraft.cfg coordinate help
Post by IronHand on Oct 31st, 2011 at 7:07am
this is it.
http://msdn.microsoft.com/en-us/library/cc526949.aspx

Simviation Forum » Powered by YaBB 2.5 AE!
YaBB Forum Software © 2000-2010. All Rights Reserved.