openOMSI GitHub Discord

Docs / Making content / HTML textures

Scenery objects

1 min readEdit this pagedocs/HTMLTEXTURE.md

A scenery object (.sco) can show pages too: [htmltexture] in its model config and [useHtmlTexture] on the material, the same as in a vehicle - and the lit word after the page's path works there as it does on a vehicle (above). The page is looked up in the model folder, then in the folder of the .sco.

A scenery page only gets the basic API: omsi.setVar, omsi.trigger, omsi.getVar, omsi.vars, omsi.time, omsi.date and omsi.locale. omsi.vehicle, omsi.depot and setRoute, setLine, setDestination, clearLine and setNextStop do not exist there (d.vehicle in update neither). The variables are those of the object's script; an object without a script still shows its page.

The pages run only within 60 m of the camera. Clicks reach them from up to 4 m away, unless the bus is in front of the page.

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

↑↓ to move↵ to open