openOMSI GitHub Discord
Modding overview

Docs / Making content / Modding overview

Road dirt

1 min readEdit this pagedocs/MODDING.md

With Road dirt on the vehicles on (the default, Enhanced and Enhanced+), every vehicle gathers road dirt where it lands, laid out by its .bus file's [boundingbox] and axles (see Graphics).

It takes the place of the vehicle's own dirt overlay: a material with [alphascale] Dirt_Norm is hidden while the road dirt is drawn, so the two never show together. Off, or in Vanilla and Vanilla+, the vehicle's own dirt shows as in OMSI 2. The windscreen's Dirt_Wiped layer, which the wipers clear, stays as it is.

A vehicle works without any of the following. They let a modder tune or refuse it; OMSI 2 skips them.

Keyword File What it does
[procedural_dirt_off] .bus, .ovh No road dirt on this vehicle: it keeps its own dirt overlay whatever the setting. For a bus whose dirt textures are made for it.
[procedural_dirt_rate] + a number .bus, .ovh How fast it gathers dirt: 1 as any vehicle, 0.5 half as fast, 0 never. The rain washes it off as fast as any.
[procedural_dirt_box] + six numbers .bus, .ovh The box the dirt is laid out on, as [boundingbox] (width, length, height, then the middle's x, y, z). For a body the [boundingbox] does not fit, such as one with a long overhang or a roof box.
[matl_nodirt] model .cfg, after a [matl] This material takes no road dirt: a destination display, a chrome strip, a logo, glass that should stay clear.

A rear section of an articulated bus is laid out by its own file and carries the dirt of the front section. To look at the dirt without driving for an hour, start the game with OMSI_ROAD_DIRT=spray,film,dust,wet[,slush,mud] (each 0..1, see Debug flags).

Something wrong or missing? Fix it on GitHub or open an issue.

↑↓ to move↵ to open