WazWaz / EnvironmentalVisualEnhancements

Visual enhancements including clouds, lights, etc.
71 stars 21 forks source link

CityLights do not appear by default in scaledspace on bodies other than the homeworld. #25

Open WhirligigGirl opened 4 years ago

WhirligigGirl commented 4 years ago

For Whirligig World, I have a planet called Yalthe which uses CityLights functionality to make volcanoes light up.

It behaves as expected from localspace, showing the glowing lava in places determined by the emissive map: image

image

However, it appears as if there are no lights from scaledspace, either in flight or in the map view, throughout quicksaves/quickloads, and scene changes, unless you do the following:

When that is done, the volcanoes pop into view, and remain persistent throughout the game.

image

The config used is as follows. You can see that Mesbin-Volcanoes, which uses body = Kerbin (the homeworld) is identical to Yalthe-Volcanoes, except with the detail scale, body name, and map filepaths changed. (Changing the detail scale does not affect the problem.)

EVE_CITY_LIGHTS { OBJECT { name = Mesbin-Volcanoes body = Kerbin cityLightsMaterial { _CityOverlayDetailScale = 30 _CityOverlayTex { value = WhirligigWorld/ModCompatibility/Emissives/Textures/Mesbin_Volcanoes } _CityDarkOverlayDetailTex { value = WhirligigWorld/ModCompatibility/Emissives/Textures/VolcanoLights } _CityLightOverlayDetailTex { value = WhirligigWorld/ModCompatibility/Emissives/Textures/VolcanoLights } } } OBJECT { name = Yalthe-Volcanoes body = Yalthe cityLightsMaterial { _CityOverlayDetailScale = 2 _CityOverlayTex { value = WhirligigWorld/ModCompatibility/Emissives/Textures/Yalthe_Emissive_Volcanoes type = AlphaMap } _CityDarkOverlayDetailTex { value = WhirligigWorld/ModCompatibility/Emissives/Textures/VolcanoLights } _CityLightOverlayDetailTex { value = WhirligigWorld/ModCompatibility/Emissives/Textures/VolcanoLights } } } } EDIT: Markdown ate the config so rather than sort it out I'll just link the config in pastebin: https://pastebin.com/p8jUAdUU

To be clear, the problem does not occur on the homeworld. The volcanoes set glowing there are visible from space by default.