• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Panel light in [LIGHTS] section in system.cfg

Messages
5
Country
ukraine
Gentlemen

I'm trying to made panel light effect, using [LIGHTS] section in system.cfg like this
temporary I use #index:0 and #PotentiometerIndex:0 for testing

lightdef.20 = Type:4
#Index:0
#LocalPosition:-3.750000,-0.250000,0.940000
#LocalRotation:0.000000,-40.000000,0.000000
#EffectFile:LIGHT_ASOBO_Gauge
#PotentiometerIndex:0

when I make changes in other aircraft (change position or angle I can see the effect) but when I made the same in my project I can't see this effect (all other effects like landing, taxi, nav, beacon lights work correctly)

PanelLight.jpg


for gauges I use
<UseTemplate Name="ASOBO_LIGHTING_Instruments_Emissive_Template">
and it works pretty well with <POTENTIOMETER> and I can control emission without problem .

also I tried this from SDK - but can't understand how control it and looks like I don't need system.cfg when using helpers to place them.


any ideas? Where I made mistake?
 
What airplane is the OK one on the left?

The question is whether the light splash you can see is generated by the [LIGHTS] section (requires more CPU power) or is an overlay using Emissive Elements (less CPU usage).

Also, are you sure you have supplied power to the panel lights circuit in [ELECTRICAL] of systems.cfg?
 
What airplane is the OK one on the left?
It's Carenado PA44 , or PA28, PA24 have similar light source


The question is whether the light splash you can see is generated by the [LIGHTS] section (requires more CPU power) or is an overlay using Emissive Elements (less CPU usage).
I tried Emissive Elements and this way looks pretty nice but I don't know why solution via [LIGHTS] doesn't work.

PanelLight2.jpg



Also, are you sure you have supplied power to the panel lights circuit in [ELECTRICAL] of systems.cfg?

Yes! If I'm using the same setting only change #EffectFile:LIGHT_ASOBO_Gauge to any other fx like LIGHT_ASOBO_NavigationGreen I can see effect....

lightdef.20 = Type:4
#Index:0
#LocalPosition:-3.750000,-0.250000,0.940000
#LocalRotation:0.000000,-40.000000,0.000000
#EffectFile:LIGHT_ASOBO_Gauge
#PotentiometerIndex:0
 
I placed a couple of lights over the two lower knobs on this gauge of mine (ignore the type and potentiometer numbering, it's just for a test). The middle number in LocalRotation will rotate the light around the longitudinal axis of the aircraft.

The size of the effect file is very small so placement needs to very precise.

Also, you're lighting an interior model right? I mean, as defined in the model.cfg. The exterior and interior models are defined in the model.cfg file and a panel light (or any other interior light such as cabin, glareshield etc) will not illuminate any part of an exterior model. That's how MSFS works.

Code:
lightdef.15 = Type:12#Index:0    #LocalPosition: 0.66, -1.056, 1.704    #LocalRotation:0,220,0    #EffectFile:LIGHT_ASOBO_Gauge       #PotentiometerIndex:5
lightdef.16 = Type:12#Index:0    #LocalPosition: 0.66, -0.816, 1.704    #LocalRotation:0,140,0    #EffectFile:LIGHT_ASOBO_Gauge       #PotentiometerIndex:5
Image1.jpg
 
Ha... I noticed you used:
Type:12 - 12 = Glareshield
I tried. as recommend SDK (https://docs.flightsimulator.com/html/Content_Configuration/SimObjects/Aircraft_SimO/systems_cfg.htm) and how used PA44
Type:4 - 4 = Panel

may be it doesn't matter - type '4' or '12'... '12' defiantly worked on my plane with #EffectFile:LIGHT_ASOBO_Glareshield so I should '12' with #EffectFile:LIGHT_ASOBO_Gauge

could you try the same with type 4? I know that effect is very small, so I even made a movable instrumental panel (close - far) for testing and couldn't watch effect with type 4
 
Ha... I noticed you used:
Type:12 - 12 = Glareshield
I tried. as recommend SDK (https://docs.flightsimulator.com/html/Content_Configuration/SimObjects/Aircraft_SimO/systems_cfg.htm) and how used PA44
Type:4 - 4 = Panel

may be it doesn't matter - type '4' or '12'... '12' defiantly worked on my plane with #EffectFile:LIGHT_ASOBO_Glareshield so I should '12' with #EffectFile:LIGHT_ASOBO_Gauge

could you try the same with type 4? I know that effect is very small, so I even made a movable instrumental panel (close - far) for testing and couldn't watch effect with type 4
I tried with type 4 and it still works (there's no reason it shouldn't).

If you are using type 4 and other effects files are lighting up the interior then that would indicate that the circuit is working and you are working on the interior model (check that LIGHT POTENTIOMETER:0 is more than zero but it should be because it works with other effects files)

I think that only leaves the position of the light.

#LocalPosition:-3.750000,-0.250000,0.940000

That should be 3.75 feet back (towards the tail) from the reference, 0.25 feet left and 0.94 feet up. At this point I'd put a whole bunch of lights in various positions just in the hope of being able to see one of them light up.
 
I was playing with levels of position many times.
I know that #EffectFile:LIGHT_ASOBO_Gauge is a very small fx and I need to be precise. Mistake in 0.3 feet make this fx almost invisible.

I even compile a test model with movable insteumental panel with a huge instrumental panel, but still can't see the :LIGHT_ASOBO_Gauge fx,

short video here:

but if I change #EffectFile:LIGHT_ASOBO_Gauge to #EffectFile:LIGHT_CARENADO_NavigationGreen I can see green light everywhere.

So: Type:12 or Type: 4 never mind I agree, position I checked many times and moved panel - no effect.
all other effects works well with the same settings, Looks like magic...

any way I have solution with using Emissive Elements, only have a feeling that I missed something important....

fx-position.jpg
NothingAgian.jpg
 
Back
Top