unorthodox-paradox / omsi_2_csb_ai_enhancements

AI enhancements for CSB vehicles
1 stars 0 forks source link

In unfocused vehicles, interior may appear brighter than passengers #40

Open unorthodox-paradox opened 5 years ago

unorthodox-paradox commented 5 years ago

Symptoms

The interior of certain unfocused vehicles, when cabin lights are active and the level of environmental brightness is low, may appear unnaturally brighter than the passengers on board.

Identified causes and resolution progress

[interiorlight]s do not illuminate unfocused vehicles. To compensate we use [matl_allcolor] to brighten such vehicles' interiors. Unfortunately that approach (or [matl_lightmap] and [matl_nightmap] for that matter) does not allow us to both conveniently and realistically emulate the effect of individual light sources; it's as if there were just one strong light, and hence the interior can only be either fully lit or completely dark.

Curiously enough, [interiorlight]s do on the other hand illuminate passengers of unfocused vehicles. Furthermore, passenger illumination cannot, to our knowledge, be substituted in unfocused vehicles (there's no option for specifying an out-of-focus-only passengercabin-config) via [matl_allcolor] or different [interiorlight]s that are specifically configured for that purpose.

The above discrepancy – key interior objects being made uniformly brighter via [matl_allcolor], in contrast to passengers being brightened non-uniformly / partially by individual [interiorlight]s in their proximity – is what causes the problem. The problem, i.e., the brightness contrast / difference, peaks when one or more interior light sources are additionally burnt out, being reflected in passenger illumination decreasing even further, while interior illumination remaining constant.

User-level workarounds

None available.