I've discovered that spot light effects stop working when you move away from the object to some great distance, and then come back (in P3D, at least).
See this thread that explains the issue, and how to resolve: https://www.fsdeveloper.com/forum/threads/apron-light-effects-disappearing-solved.445678/
Net: We need to use FX controller files.
However, there are a couple issues with how MCX deals with controller files:
1) The generated cntrl_spotlight*.fx file references itself, instead of the fx_spotlight*.fx file. For example from cntrl_spotlightFFD1B264_150_0_60_2_0_0.fx:
2) The model directly references the fx_spotlight*.fx file, not the cntrl_spotlight*.fx file. Hence, I have no option but to use the CustomFileName option.
Furthermore, when I use "CustomFileName" and import the .bgl, it no longer recognizes the spot lights and instead just shows generic effects. This makes it impossible to make any tweaks to the spot lights inside of MCX. Also, in changing to a custom name, the "Rotation" properties became all borked for some reason (I can repro this behavior). Took be ages to figure this out, because - of course - I couldn't see the spot light in MCX!
To me, it makes more sense read the properties from the .fx file itself, instead of using the properties that are embedded the generated filename.
As an alternative, allow the Attached Object Editor to specify whether or not the fx_spotlight or cntrl_spotlight filename is used by the model.
Thanks.
See this thread that explains the issue, and how to resolve: https://www.fsdeveloper.com/forum/threads/apron-light-effects-disappearing-solved.445678/
Net: We need to use FX controller files.
However, there are a couple issues with how MCX deals with controller files:
1) The generated cntrl_spotlight*.fx file references itself, instead of the fx_spotlight*.fx file. For example from cntrl_spotlightFFD1B264_150_0_60_2_0_0.fx:
Code:
[controller.0]
lifetime=0.0, 0.0
type=3
distance=10000.00, 10000.00
delay=10000000.00, 10000000.00
x offset=0.00, 0.00
y offset=0.00, 0.00
z offset=0.00, 0.00
effect.0=cntrl_spotlightFFD1B264_150_0_60_2_0_0, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00
2) The model directly references the fx_spotlight*.fx file, not the cntrl_spotlight*.fx file. Hence, I have no option but to use the CustomFileName option.
Furthermore, when I use "CustomFileName" and import the .bgl, it no longer recognizes the spot lights and instead just shows generic effects. This makes it impossible to make any tweaks to the spot lights inside of MCX. Also, in changing to a custom name, the "Rotation" properties became all borked for some reason (I can repro this behavior). Took be ages to figure this out, because - of course - I couldn't see the spot light in MCX!
To me, it makes more sense read the properties from the .fx file itself, instead of using the properties that are embedded the generated filename.
As an alternative, allow the Attached Object Editor to specify whether or not the fx_spotlight or cntrl_spotlight filename is used by the model.
Thanks.
Last edited:

