So I have put some red spotlights into the cabin of the R-4 to illuminate it in all directions. I have two spotlights, each at the same location above and behind the center pilot seat, with an umbra angle PI facing in opposite directions, basically making a single light that emits in all directions.
Looking forward:

Looking aft:

These lights are created and set using the following functions:
All is well and good...until I switch on exterior lights (three navigation light beacons and a white spotlight). When I do this, the forward cabin light (cabinlight_1) no longer illuminates the instrument panel:


The aft cabin light (cabinlight_2) remains illuminated.

cabinlight_1:is_active() returns true before, during, and after switching on the exterior lights (which is correct, it should always be on).
Its intensity is set at the same time as for cabinlight_2, and the cabin lights are not associated with the exterior light switch in any way.
I don't know that this is a Lua issue or something more fundamental to the lightemitter class that I am not understanding, or a bug.
I am using Orbiter 2024 using Orbiter_NG.exe.
Looking forward:

Looking aft:

These lights are created and set using the following functions:
Code:
function make_pretty.cabin_lights()
local cabinlight_1_pos = {x=0.0, y=1.0, z=1.0}
local cabinlight_1_dir = {x=0,y=0,z=1}
cabinlight_1 = vi:add_spotlight(cabinlight_1_pos,cabinlight_1_dir, {range=10,att0=1e-3,att1=0,att2=2e-3,umbra=PI,penumbra=0},{r=1,g=0,b=0})
cabinlight_1:set_visibility(VIS.COCKPIT)
cabinlight_1:set_intensity(0)
cabinlight_1:activate(true)
local cabinlight_2_pos = {x=0.0, y=1.0, z=1.0}
local cabinlight_2_dir = {x=0,y=0,z=-1}
cabinlight_2 = vi:add_spotlight(cabinlight_2_pos,cabinlight_2_dir, {range=10,att0=1e-3,att1=0,att2=2e-3,umbra=PI,penumbra=0},{r=1,g=0,b=0})
cabinlight_2:set_visibility(VIS.COCKPIT)
cabinlight_2:set_intensity(0)
cabinlight_2:activate(true)
end
Code:
function set_pretty.cabin_lights()
cabinlight_1:set_intensity(cabin_light_level)
cabinlight_2:set_intensity(cabin_light_level)
end
All is well and good...until I switch on exterior lights (three navigation light beacons and a white spotlight). When I do this, the forward cabin light (cabinlight_1) no longer illuminates the instrument panel:


The aft cabin light (cabinlight_2) remains illuminated.

cabinlight_1:is_active() returns true before, during, and after switching on the exterior lights (which is correct, it should always be on).
Its intensity is set at the same time as for cabinlight_2, and the cabin lights are not associated with the exterior light switch in any way.
I don't know that this is a Lua issue or something more fundamental to the lightemitter class that I am not understanding, or a bug.
I am using Orbiter 2024 using Orbiter_NG.exe.