Page 1 of 1

separate gauge lighting from landing lights???

PostPosted: Mon Jun 08, 2009 10:01 pm
by brantmacga
Can anyone tell me how you separate the gauge lighting from the landing lights.

On the aircraft in question, the gauge lights are controlled by the landing lights switch; the landing lights are on the gear, and when its retracted, they shut off.


below is the electrical and lighting section of the aircraft.cfg file.


i just assume its in that part, but have no idea really. if its somewhere else, please tell me. thanks!



[electrical]
;BusType, MaxAmpLoad, MinVoltage       BusTypes:0=MainBus,1=AvionicsBus,2=BatteryBus,3=HotBatteryBus,4-7=Generator/AlternatorBus(1-4)
flap_motor=0, 5 , 17.0
gear_motor=0, 5 , 17.0
autopilot=0, 5 , 17.0
avionics_bus=0, 10, 17.0
avionics=1, 5 , 17.0
pitot_heat=0, 2 , 17.0
additional_system=0, 20, 17.0
marker_beacon=1, 2 , 17.0
gear_warning=0, 2 , 17.0
fuel_pump=0, 5 , 17.0
starter1=0, 20, 17.0
light_nav=0, 5 , 17.0
light_beacon=0, 5 , 17.0
light_landing=0, 5 , 17.0
light_taxi=0, 5 , 17.0
light_strobe=0, 5 , 17.0
light_panel=0, 5 , 17.0







[lights]

//Types: 1=beacon, 2=strobe, 3=navigation, 4=cockpit, 5=landing


light.0=3, -2.77, -13.0, -0.75, Fx_shockwave_navred
light.1=3, -2.77, 13.0, -0.75, Fx_shockwave_navgre
light.2=2, -2.9, -13.0, -0.75, Fx_shockwave_strobe_2
light.3=2, -2.9, 13.0, -0.75, Fx_shockwave_strobe_2
light.4=3, -3.81, 0, -1.87, Fx_shockwave_strobe
light.5=4, -3.9500,0.000,2.0, fx_vclLegacy
light.6=5, 0.7, -5.7, -2, Fx_shockwave_landing_light_small_xenon // Shockwave light

Re: separate gauge lighting from landing lights???

PostPosted: Mon Jun 08, 2009 11:55 pm
by madbrit
The panel lights control the gauge lighting.

Looks like all your lights are set the same =0, 5 , 17.0
Don't know what you need to change them to in the config file but they can be set to different commands in the key assignments to switch them on and off manually.

Re: separate gauge lighting from landing lights???

PostPosted: Tue Jun 09, 2009 1:10 am
by Travis
It might have something to do with the Shockwave lights not being entirely compatible with the way the aircraft is set up.  Or I could just be blowing smoke . . .

Although you might try looking at this page.

If that doesn't work, try changing "fx_vclLegacy" to either "fx_vclight" for the regular lighting or "fx_shockwave_vclight_l" to see if that helps.

Re: separate gauge lighting from landing lights???

PostPosted: Tue Jun 09, 2009 1:10 am
by brantmacga
i don't know what those "5, 17.0" numbers in the electrical mean.


the panel lights are linked to the landing lights, so when they shut off, I lose them.


any idea on how to put them on a separate key command? i'd be satisfied having them controlled by the nav lights switch.

Re: separate gauge lighting from landing lights???

PostPosted: Tue Jun 09, 2009 1:12 am
by brantmacga

Although you might try looking at this page.


i noticed that link is for the fsX sdk. is it identical to fs9?


thanks.

Re: separate gauge lighting from landing lights???

PostPosted: Tue Jun 09, 2009 1:16 am
by Travis
You can't really get them to operate on a light switch keystroke that isn't the panel switch.  But you could try just a panel switch.

Go into the control assignments menu and click on the left drop-down menu.  Find "lights" or "lighting" and look through it until you find "panel lights switch" or the equivalent.  Set it to whatever keystroke you would like and then try it.

Did it do this before you installed the Shockwave lighting on it?

Re: separate gauge lighting from landing lights???

PostPosted: Tue Jun 09, 2009 9:49 am
by Fr. Bill
i don't know what those "0, 5, 17.0" numbers in the electrical mean.


Those numbers indicate the Bus type, max amp, min voltage...

0 = Main Bus (most components connected here)
5 amps
17 vdc minimum

They also have nothing at all to do with your question.

the panel lights are linked to the landing lights, so when they shut off, I lose them.

any idea on how to put them on a separate key command? i'd be satisfied having them controlled by the nav lights switch.


Which "panel lights?" The overhead flood or the backlighted gauges? These are created by two completely separate methods...

The "overhead flood lights" are created by the entry in the [Effects] section of your aircraft.cfg file. Since they are assigned to Type=5 which is panel lights, clearly this is not your problem!

The emissive gauge backlighting however is generated by a lightmap (xxx_L.bmp) file located in the ..\texture folder. Since your gauge lighting fails with the landing light switch, then all you need to do is change the color of the Alpha channel on the relevant xxx_L.bmp files!

pure white Alpha = landing light controlled
pure black Alpha = any other light switch control

Look in your panel.cfg file for the [VCockpitnn] sections and note the name of the texture= entry is, for example:

texture=$vc_01

Normally the associated lightmap will be the same name, but without the $ and with an _L suffix, such as:

vc_01_L.bmp

Once you've identified the filename(s), open it (them) with DXTBMP.exe and change the Alpha channel from white to black. Export as DXT3 and overwrite the original file(s).

Re: separate gauge lighting from landing lights???

PostPosted: Tue Jun 09, 2009 8:41 pm
by MiltonShupe

... snipped ...

The emissive gauge backlighting however is generated by a lightmap (xxx_L.bmp) file located in the ..\texture folder. Since your gauge lighting fails with the landing light switch, then all you need to do is change the color of the Alpha channel on the relevant xxx_L.bmp files!

pure black Alpha = landing light controlled
pure white Alpha = any other light switch control

Look in your panel.cfg file for the [VCockpitnn] sections and note the name of the texture= entry is, for example:

texture=$vc_01

Normally the associated lightmap will be the same name, but without the $ and with an _L suffix, such as:

vc_01_L.bmp

Once you've identified the filename(s), open it (them) with DXTBMP.exe and change the Alpha channel from black to white. Export as DXT3 and overwrite the original file(s).




" and change the Alpha channel from black to white. "

Bill, is this stated backwards or am I confused.

Re: separate gauge lighting from landing lights???

PostPosted: Tue Jun 09, 2009 10:05 pm
by Fr. Bill
Bill, is this stated backwards or am I confused.


Good catch. Actually, the a/c in question probably doesn't even have an Alpha channel, which would be equivalent to being pure white.

I actually had to refer back to my own tutorial to sort myself out...

Re: separate gauge lighting from landing lights???

PostPosted: Tue Jun 09, 2009 10:16 pm
by MiltonShupe
Thanks Bill.  And it was that original sharing of yours that put a whole lot of designers on the right track to better night-lit gauges, and we thank you for that.

Re: separate gauge lighting from landing lights???

PostPosted: Tue Jun 09, 2009 10:42 pm
by brantmacga
thanks for the info.

its going to take me a little time to comprehend what you're saying, but I think I can figure it out.



Also, I don't think this happened before the shockwave lights. There is a line of text I had to put in the panel.cfg and I believe it cuts off any lights in the gear.


If I could leave them on as-is, it wouldn't work out well because the shockwave lights would still be visible with the gear up.

Re: separate gauge lighting from landing lights???

PostPosted: Wed Jun 10, 2009 11:56 am
by Fr. Bill
Also, I don't think this happened before the shockwave lights. There is a line of text I had to put in the panel.cfg and I believe it cuts off any lights in the gear.


If I could leave them on as-is, it wouldn't work out well because the shockwave lights would still be visible with the gear up.


Oh! Well that puts a completely new spin on the situation.

Many developers, following my own techniques, have "hijacked" the landing lights electrical system to allow for emissive gauge backlighting to be implemented, along with 'zoned' panel/gauge lighting. IOW, separate control for Pilot, Center, Throttle console, and Copilot lighting...

Also, this allows for separate left/right landing and taxi light control if one wishes.  What all this means is that -if this is what was done- then Shockwave effect files cannot be used...

Without knowing the specific aircraft package you're referring to, all I can do is "guess" based on observed/reported behavior.  :-/

Re: separate gauge lighting from landing lights???

PostPosted: Wed Jun 10, 2009 7:46 pm
by Travis
It's the Lancair Legacy originally built for FS8, I'm fairly sure.

Re: separate gauge lighting from landing lights???

PostPosted: Thu Jun 11, 2009 10:07 am
by brantmacga
[quote]


Many developers, following my own techniques, have "hijacked" the landing lights electrical system to allow for emissive gauge backlighting to be implemented, along with 'zoned' panel/gauge lighting. IOW, separate control for Pilot, Center, Throttle console, and Copilot lighting...

Also, this allows for separate left/right landing and taxi light control if one wishes.