openOMSI GitHub Discord
Content formats

Docs / Reference / Content formats

Splines (.sli)

1 min readEdit this pagedocs/FORMATS.md

A spline type is a road, track or path cross-section extruded along the map's splines. It lives under Splines\<folder>\.

[texture]
asphalt.bmp

[profile]
0
0

[profilepnt]
-3.5
0
0
0

[profilepnt]
3.5
0
1
0

[path]
0
1.75
0
3.5
0
Keyword Parameters
[length] Segment length
[texture], [matl_alpha] A texture of the profile, and its alpha mode
[wet] The last texture is a sealed road surface: it keeps rain reflections even without a [path] (openOMSI)
[scaleTexByLength], [patchwork_chain] Texture mapping
[heightprofile] Height profile the wheels may stand on
[profile], [profilepnt] x z u v Cross-section points (extruded as they are)
[path], [path_2] A lane (below)
[rail_enh], [third_rail] Rail data
[halfcantwidth] Width for cant
[onlyeditor] Editor only
[terrainholeprofile], [terrainholeprofilepnt] Terrain hole outline: a profile, then points of x, height, end offset

[path] (5 lines): kind (0 street, 1 sidewalk, 2 rail, 3 flight path), lateral offset (right positive), height, width, direction (0 along the spline, 1 backwards, 2 both). The lane runs the whole spline at that offset; lanes of consecutive splines meet at the ends.

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

↑↓ to move↵ to open