Skip to content

Vehicles partially render with wrong vehicle's colors #3627

@Hastwell

Description

@Hastwell

Version information:

  • Platform: Windows 10 LTSC 21H2
  • Version: 26.01
  • Build/commit: 33c15e0
  • Did not reproduce on 25.12

Describe the bug
When multiple vehicle colors are rendered on screen, vehicles are likely to partially render using a different vehicle's colors. The affected vehicles and the location of the visual bug rapidly switch between frames.

This affects:

  • Multiple company's vehicles shown on screen.
  • The same company's vehicles shown on screen when custom colors are applied to one of those vehicles.

Does NOT affect:

  • Only using the vanilla color schemes for different vehicle types (eg, green engines + red passenger vehicles). If one of the other conditions is present, the bug can still trigger.

The bug reproduces on all vehicle types but is easiest to trigger using trains due to being able to easily put lots vehicles and cars on screen.

Repro Steps (custom colors, easiest):

  1. Build some track in a loop and place down a train with multiple cars.
  2. Use the Paint tool to set custom colors on one or more of the train's cars. In the below example, I am alternating between Orange and my company's main colors (Green on Red).
  3. Observe visual glitching as the vehicles partially render with each other's color schemes.
  4. If the bug does not reproduce immediately, start and observe the vehicle as it moves.
Image

Repro Steps (multiple companies):

  1. Allow a competitor to form, build a rail line, and place trains.
  2. Build a train line close by and place your own train.
  3. Observe visual glitching as the vehicles partially render in each other's liveries. In the below example, Yellow's train is above with my all-Green train below. No custom colors are used here.
Image

Additional context
While researching this bug, I found that:

  • The bug is visible on the title screen and is deterministic as certain scenes will reproduce identically each time the title screen reloads.
  • The bug is not fixed by any V-Sync setting, but can slightly reduce visual flashing due to a lower FPS.
  • If the game is paused on a frame experiencing the bug, moving the viewport preserves the visual bug, but anything that would change the objects in the world or how they're rendered (eg, zooming out and back in or building something) will essentially reroll the bug.
  • Tooltips (eg, Right Click to Edit, Vehicle traveling at X mph) also cause a reroll even if holding the mouse still.

Metadata

Metadata

Assignees

Labels

bug-openlocoA problem or bug in OpenLoco (but not vanilla)rendering

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions