-
Notifications
You must be signed in to change notification settings - Fork 184
Vehicles partially render with wrong vehicle's colors #3627
Copy link
Copy link
Closed
Labels
bug-openlocoA problem or bug in OpenLoco (but not vanilla)A problem or bug in OpenLoco (but not vanilla)rendering
Description
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):
- Build some track in a loop and place down a train with multiple cars.
- 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).
- Observe visual glitching as the vehicles partially render with each other's color schemes.
- If the bug does not reproduce immediately, start and observe the vehicle as it moves.
Repro Steps (multiple companies):
- Allow a competitor to form, build a rail line, and place trains.
- Build a train line close by and place your own train.
- 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.
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bug-openlocoA problem or bug in OpenLoco (but not vanilla)A problem or bug in OpenLoco (but not vanilla)rendering