Skip to content

ACarlaGameModeBase spawns a sun on maps that already have one #9866

Description

@M-Colley

Describe the bug

CARLA spawns and drives its own directional light. The actor is created by
ACarlaGameModeBase::InitGame (not by set_weather, which merely steers the
light that already exists). On CARLA's own towns that light is the lighting. On a level that already ships a
complete lighting setup, CARLA adds a second sun, and the engine warns:

Multiple directional lights are competing to be the single one used for forward
shading, translucent, water or volumetric fog. Please adjust their
ForwardShadingPriority.

Every lit surface blows out to white, while surfaces in shadow stay correct —
so it reads as a missing-texture bug rather than a lighting one.

Workaround: put CARLA's sun below the horizon
(weather.sun_altitude_angle = -90) and let the level light itself.

A sun_enabled flag, or skipping the sun when the level already has a
directional light, would make hosting external maps far less confusing.

Environment

  • CARLA ue58-dev-carla @ de3f38e64, running Epic's City Sample

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions