Docs / Reference / Content formats
Model (.cfg) - unit mc_complobj
LOD VFDmaxmin detail_factor tex_detail_factor noDistanceCheck terrainhole CTC CTCTexture scripttexture texttexture texttexture_enh mesh item setvar mesh_ident viewpoint shadow isshadow mouseevent setbone smoothskin animparent newanim (origin_trans origin_rot_x/y/z origin_from_mesh anim_rot anim_trans offset delay maxspeed) visible illumination illumination_interior light light_enh light_enh_2 spotlight interiorlight texchanges matl matl_change matl_item matl_raindropmap matl_texadress_mirror/clamp/border/mirroronce texcoordtransX/Y useScriptTexture useTextTexture alphascale matl_freetex matl_lightmap matl_nightmap matl_allcolor smoke particle_emitter PS_attachTo;
material manager: matl_alpha matl_noZwrite matl_noZcheck matl_Zbias matl_envmap matl_envmaprealtime matl_bumpmap matl_envmap_mask matl_transmap.
[smoke] particles (Omsi.exe, established Oct 2026). Nineteen lines: position (3),
direction (3), speed and its spread, frequency (a second), lifetime (s), brake factor,
gravity, start size, growth (a second), initial alpha, a line Omsi.exe skips, red, green,
blue;
numbers or variable names (TRauch, read at 0x5f5e58; the final alpha stays 0, so a puff fades out over its life).
Every frame (0x5a238c) a particle's velocity is multiplied by the brake factor raised to 20 x dt - 0x5a145c keeps 20 ln(max(brake, 0.1)) per emitter, so the factor is per twentieth of a second at any frame rate - its level speed is drawn towards the weather's wind (0x753428) by what that takes off (not yet in openOMSI, where it slows to a standstill), and 9.81 x gravity x dt is taken off its vertical speed (a negative gravity lifts it).
Size and alpha go linearly with its age (0x5a183c). Nothing stops it at the ground: it falls on through the road until its life is over (the stock buses' and cars' wheel spray has gravity 1 and is under the road within a fifth of a second).
It is drawn (0x5a47d4 -> 0x5a2b5c builds the quads per camera, 0x5a4180 draws them
from the scene pass 0x6f1520 after the scenery and before the camera's own vehicle) as a
square facing the screen, reaching size / view depth from its centre in projection space
and turned by its own random angle (0x5a1d54), its depth moved 0.1 m towards the eye;
with
fog and lighting off, ALPHABLENDENABLE on, ZWRITEENABLE off but the depth test on,
SRCALPHA/INVSRCALPHA, the colour the vertex colour alone (COLOROP SELECTARG2: the
particle's colour lit by the weather's light and the one lamp of 0x858efc on the CPU, white
for --PS_emissive--) and the alpha rauch.tga's times the vertex's (a [particle_emitter]
whose --PS_bitmap-- is not marked as alpha: ONE/INVSRCCOLOR, texture times vertex
colour).
So the road cuts every
puff that sinks into it off in a straight line; openOMSI fades a puff out over the lowest
6-25 cm above the ground it was set off over instead (the plane its vehicle's wheels stand on,
an object's own z = 0), and leaves out one wholly under it (omsi_render::SmokeParticle).
Object visibility (OMSI 0x5fdc7c, established Sept 2026). OMSI decides per object
(scenery object, vehicle), never per mesh, with the model's radius R, [detail_factor] D
(default 1; parsed into the model at +0xa8) and [noDistanceCheck] (+0xad, a flag of the whole
model wherever it stands).
With d the distance to the camera and z the depth along the view:
the object is dropped when d > R + maxObjDist or (z − R) / maxObjDist > 1 (both skipped by
[noDistanceCheck]), and when size / D < minObjSize where
size = 2R / (d · fov · π/180) - the object's diameter over its distance as a share of the
camera's vertical field of view (degrees, camera +0x38).
The same size (not divided by D)
chooses the [LOD] level, so the [LOD] values of a model are in this measure.
The values
come from options.cfg: [performance_maxObjDist] (750 in the shipped file, 900 in the high
presets, 1200 for Chicago), [performance_minObjSize] (0.013; 0.020 in "PC 2006") and, for
reflections, [performance_minObjSizeRefl] (0.046).
A detail factor above 1 therefore makes an object vanish sooner (clutter), below 1 keeps it longer.
Rechecked on OMSI 2.2.032: 0x5fdde4 takes d with D3DXVec3Length and 0x5fde54..0x5fde89
compute size from it; there is no exception for a camera inside the sphere, so size stays
finite there.
[LOD] choice (OMSI 0x5ef860, Sept 2026). Each [LOD] x appends x to the model's list and
makes its index the level of the meshes after it.
With that size, OMSI takes the first
level in file order whose x ≤ size, else the last level whatever its own x (a model with one
[LOD] is drawn at any size; the stock Sv signals' [LOD] 0.1 is the signal and [LOD] 1
its far version).
A mesh written before the first [LOD] gets the loader's level index
before any [LOD] has set it (an uninitialised local); here it joins the first level - the
WH UK AI cars put their shadow there.
[matl_transmap] is the effect's gMatlTransMapOn map (the material's AlphaMap, +0x58):
its alpha is the slot's alpha, and a picture without an alpha channel is opaque as Direct3D
samples it (the WH UK AI cars' paint layer uses a black 24-bit transmap_null.tga).
[texchanges] <file> names a chtex_*.cfg, relative to the vehicle's root folder for
vehicles and to the model-config folder for scenery. The examples are
texture\chtex_SD.cfg and ..\Anzeigen\Rollband_SD79\chtex_rollband.cfg.
It holds
[newtexchangemaster] blocks of two lines - the texture name as it
appears in the o3d, and a script variable - each followed by [entries] n and n texture
files that live next to that cfg. The variable's integer value picks the entry, 0 first
(rollband.osc clamps rlbnd_lnN to 0…15 for sixteen entries and stores trunc()+0.001).
The named texture usually does not exist on disk at all: the mesh carries it only as a key. The masters are model-wide even though [texchanges] is written inside a mesh block.
Scenery [CTC] <variable> <folder> <value> groups read the folder's .cti items. Their
[CTCTexture] <name> <default-file> entries link each item to a material texture. The
script's integer variable selects an item by zero-based index; each [CTC] group has its own
variable and can select independently.
Scenery [texchanges] masters use the same indexed
script-variable selection, with each entry replacing the master texture key. Both mechanisms
are applied to scenery material slots at runtime, so they can drive adverts on shelter panels,
building signs, and other props. An out-of-range or negative value leaves the model's own
texture active.
[matl_freetex] <texture> <string variable> is the same idea with a file name the script
builds at run time: the SD200's destination roller sets Rollband_Tex_V from the map's
.hof depot and terminus strings. $.yard is the depot's [name], which is how
Linienlisten\<yard>_RLB.jpg resolves.
[texcoordtransX/Y] <variable> scrolls one material slot's texture, not the whole mesh:
the SD200's roller-blind mesh has five of them (three line bands and two destination bands),
each with its own variable.
[newanim] semantics (verified on the SD202 wipers, doors, blind, wheels): anim_rot
rotates about the x axis of the origin frame and anim_trans moves along it. Doors turn
that axis up with origin_rot_y -90, wheels spin about it directly, the sun blind slides
along it.
origin_from_mesh uses the o3d pivot matrix: its first row (D3D frame, x right,
y up, z forward) is that axis, its fourth row the origin.
OMSI evaluates the rotations in
its left-handed D3D frame, so in a right-handed (x right, y forward, z up) frame every
angle - origin_rot_* and the animated one - changes sign: the wiper arm's -84 raises it,
the blade's +84 about the arm pivot (frame origin_rot_z 92, i.e. 90° plus the windshield
rake) follows the arm, the blade's +84 about its own pivot keeps it upright (pantograph). Animations of one mesh compose in file order, the first one innermost.
[matl_envmap] tex factor: reflectivity = diffuse alpha × factor, the factor saturating at 1
like a D3D texture factor (SD202 bodies write 10, their paint alpha is 0.12-0.19 → a
gloss, not a mirror; windows have alpha 0.5 with factor 1). The sphere map has the sky at
the bottom.
It is read as Direct3D's D3DTSS_TCI_SPHEREMAP reads it, at the vertex, from the
reflection R in camera space (x right, y up, z ahead): u = Rx/m + 0.5, v = Ry/m + 0.5 with
m = 2|R - (0, 0, 1)|. The map's middle is what a face turned to the camera mirrors, and its
rim the reflection running on away from the camera.
Mirrors, shadows, parked cars, cabin paths, announcements#
-
[add_camera_reflexion] x y z dist fov yaw pitch(_2adds one more number) in the .bus: rear-view mirror cameras (yaw clockwise from forward: 201 = back, turned towards the bus flank). Camera N draws into the texture namedreflexionN.bmpon the model's mirror mesh; the mesh UVs are already mirrored, so the camera image is used as is.[add_camera_reflexion_static](openOMSI, see MODDING.md) is a camera that looks along its own yaw and pitch; a rear section's cameras are numbered on after the front's. -
[isshadow]mesh (D_schatten.o3dwithShadow.tga, alpha blend, no z check/write): the vehicle's shadow blob lying at model z = 0; OMSI draws it on the ground under the vehicle. Scenery objects use it the same way.A vehicle's z = 0 is the plane its tyres touch with the springs unloaded, so a vehicle at rest has it 10-16 cm under the road (the springs' sag); only the missing depth test shows the blob. Here it is laid onto the plane the wheels stand on and left out while the sun shadow map is drawn.
-
[carpark_p][onlyeditor]scenery objects (Generic\car_park.sco) are parking spaces: the map'sparklist_p.txtlists parked-car scenery objects (Vehicles\X\parked_*.sco,[CTC]colour schemes from the vehicle's.cti); one is placed per space at random, some spaces stay empty.A numeric first caption on a parking object or spline attachment chooses an indexed list:
1readsparklist_p_1.txt,2readsparklist_p_2.txt. An empty or nonnumeric caption uses the ordinaryparklist_p.txt. -
.ovh/.bus[type]: 2 = rail vehicle (also[rail_body_osc],[contact_shoe]), 3 = aircraft; spline[path]type 3 = flight path. Street traffic only uses type 0 vehicles on street paths, aircraft fly the flight paths, rail vehicles come from.zugtrains of the timetable. -
paths.cfg([paths]of the .bus):[pathpnt] x y z(bus frame) with[next_roomheight]/[next_stepsound],[pathlink] a b,[pathlink_oneway] a b,[stepsoundpack]; the cabin's[entry] n/[exit] nname path points. Passengers walk the links: entry → cash desk → seat and seat → nearest exit. -
Announcements: the hof's global string 0 is a folder under
Vehicles\Announcements\; IBIS-2 builds..\..\Announcements\<folder>\<busstop ident>[_#terminus].wav(relative to the sound folder) and fires(T.F.ev_IBIS_Ansagen): a trigger that takes the file from the string stack.The sound.cfg entry
[sound] N(a number instead of a file) listening to that trigger plays it.$msgshows the top string without popping it. -
global.cfg
[addseason] kind start_day end_day(day of year): 1 spring, 2 autumn, 3 winter, 4 winter with snow, 5 dry summer; the season's textures live intexture\Spring|Fall|Winter|WinterSnow|SummerDry\subfolders next to the normal textures (same file names) and take precedence.A texture without a winter picture takes its autumn one.
A weather with
[snow]takes theWinterSnowpictures whatever the season, and with[snowOnRoad]as well theWinterSnowfallones before them (the stock roads keep their snowy asphalt there); a texture with no snow picture takes its winter one, else its autumn one (Omsi.exe 0x7f910c).[trafficdensity_road]/[trafficdensity_passenger] hour factorlines form a curve over the day that scales AI traffic and waiting passengers. -
Scenery
.sco[sound] sound\x.cfguses the vehicle sound.cfg format, driven by the object's script variables and triggers (ambient sound objects are[onlyeditor]). -
tile_x_y.map.LM.bmp(256×256): the tile's night light map - pools of street lamp light on the ground (not shadows), north at the top row; added to the terrain at night. It covers the tile and its eight neighbours: the tile itself is the middle third (texels 85⅓..170⅔ each way).Neighbouring light maps are the same picture shifted by a third - 85 texels between two tiles, 171 between every other one, on all stock maps.
A tile with
[variable_terrainlightmap](296 of Spandau's 329) has its light map baked from the[maplight]s of the objects of the nine tiles when they are loaded (Omsi.exe writes it over the file, unless options.cfg has[no_generateTerrLightMaps]), so the file is only what the last OMSI run left: openOMSI bakes it the same way.A texel, on the ground at its south-west corner, takes each lamp's colour × min(1, (radius / distance)²), the distance from the lamp's own height over its object, added up, held at 1 and truncated; a lamp more than 15.96 radii away along x or y adds nothing.
-
Spline profiles (
[profilepnt] x z u v) are extruded as-is: a road's outer points sit at the kerb height (0.25 m on the Marcel street splines) with no skirt down to the terrain, so the roadway is a slab standing on the ground. The terrain is only cut away under surfaces that lie flush with it (within ~12 cm); cutting under raised roads left a gap between the kerb and the grass. -
The engine fires
{trigger:collision}on the vehicle after a crash; the stock scripts addcoll_energyintocollision_energyand knock out the electrics, doors and lights above their thresholds.coll_energyis that crash's energy in kJ and reads the same however often the block asks: the SD200/SD202/NL202 block adds it to the general account and then again to the engine's, which it only does for a hit behindcoll_pos_y< -4.70 and belowcoll_pos_z< 1.10 (vehicle frame, m) - socoll_pos_*is where the bodies meet, down at the bumpers, not the height of the centre of gravity. -
Engine callbacks the stock scripts still needed:
(M.V.GetHeightAbovePoint)takes x y z in the vehicle frame and returns how high that point stands over the first face a ray meets coming down from 3 m above it, -3 at the least and 1000 with nothing there (positive with room underneath: the NL/NG lift may drop by it, up to 0.3 m, and the Solaris Urbino's kneeling sensor reads under 0.05 once the body touches the kerb - its level control vents the right-hand bellows only above that);(M.V.GetHumanCountOnPathLink)takes apaths.cfglink index and returns how many passengers stand on it (the NL/NG fare gate swings out of their way).GetTTTerminusIndexspells "TT" with two T's before "Terminus". -
Situations
.osnare written UTF-16 LE with a BOM and CR LF:[name],[description]…[end],[map], optional[weather],[time] year day_of_year h m s,[centerkachel] tx ty,[mapcam](6),[egopos](5), optional[tt_active], then one[vehicle]block per vehicle (file, x height y, 7 orientation numbers, tile x y, id, depot name, optional[coupledWith],[ismyVehicle],[vars] nname/value pairs,[stringvars] n, optional[settimetable]), finally[myvehicle]and[view]. -
Weather
.owt:[wind] direction_deg speed_m/s;[clouds] type valuewith type-1(clear),Cumulus 1..3,Overcast 1; the cover is drawn fromTexture\clouds.tga(a grey density map) as a layer ~1500 m up drifting with the wind. -
Scenery
[texttexture] string-index font w h fullcolor r g b+[useTextTexture] non a[matl]: the text comes from the map object's string lines ([object]type flag 1); the texture is drawn as it is (the street name signs that seemed to want it turned by 180° were.xmeshes read with transposed frames); text is centred and squeezed to fit.A
[texttexture]whose variable is one of the object's script string variables (the stock stop departure displays) is drawn from the script whenever it callsRefresh_Strings.[helparrow]objects are shown by Map-placed route arrows (nav_map_arrows).The game can show these independently of the dynamic arrows it generates from the driven route.
-
[matl_envmap]: the reflectivity mask is the diffuse alpha; textures without an alpha channel (DXT1 paint schemes such as the GN92 HVL livery) do not reflect at all.
Something wrong or missing? Fix it on GitHub or open an issue.