openOMSI GitHub Discord
Modding overview

Docs / Making content / Modding overview

Camera screens

1 min readEdit this pagedocs/MODDING.md

[add_camera_reflexion_static] in the .bus adds a fixed camera for a screen: a CCTV monitor of the doors, or a reversing camera.

[add_camera_reflexion_static]
0.0
-5.2
2.4
0.5
60
180
-30
  • It takes the same values as [add_camera_reflexion]: x, y, z, distance, field of view, yaw, pitch.
  • It counts together with the mirrors. Camera N draws into the texture reflexionN.bmp.
  • Its picture does not follow the driver's head. It looks along its yaw (degrees clockwise from the vehicle's forward) and pitch (up).
  • The picture is not mirrored, so map the screen's texture the right way round.

In an articulated bus, the cameras of a rear section count on from those of the section in front. With mirrors 0 to 3 in the front section, the first camera of the rear section is number 4. A cab screen showing reflexion4.bmp then shows that camera.

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

↑↓ to move↵ to open