Surface structures

  • With the help of .surf and .cfg files it is possible to assign a surface structure to scenery objects and splines. When a vehicle drives over them, this is reflected in the force feedback as well as in the driving and suspension behaviour. The advantage here is that the surface is not built as a mesh with a lot of time-consuming work, but ground subsidence and elevation are captured from a file.

    Examples of applications are bumps, joints, cobblestones, potholes, road irregularities, markings. However, not every vehicle reacts in the same way to the changed ground conditions. For example, the sound and force feedback when driving over them can vary from vehicle to vehicle.


    In addition, surfaces can also be used to simulate "skidding", e.g. with a snow texture.

    1. Surface textures with .surf files

    ?thumbnail=1Surface files in .surf format are simple bitmaps consisting only of the red channel. This red channel reflects the height map of the respective texture. Height differences of up to 4cm can be reproduced. The lighter the shade of red, the more pronounced the unevenness towards the top, the darker the unevenness towards the bottom. A black area therefore corresponds to -2cm, a white area to +2cm deviation from the zero point. This red channel bitmap is created for each texture individually and then according to the scheme referencetexture.bmp.surf where referencetexture stands for the file name of the texture to which the height map refers. If the reference texture has a different format, for example .dds, the file name is accordingly referencetexture.dds.surf, but the .surf file itself is still a bitmap.

    1.1. Step by step

    1. First create a normal bitmap file in black and white from the reference texture (Note: For use in paint.net we recommend the pencil or contour filter as well as the function "brightness and contrast").
    2. Then go to the file in the explorer and change the file extension from .bmp to .surf (for this, "Hide file extensions for known types" must be deactivated in the explorer settings).
    3. The file is named as described above.

    2. Surface with .cfg files

    If no .surf file is needed because of the texture (for example, flat asphalt) and you still want to give feedback, you can solve this with a .cfg file. This is a simple text file that is named like .surf files, but with the extension .cfg (for example reference texture.bmp.cfg or reference texture.dds.cfg).


    OMSI offers the following options:

    KeywordExplanation
    [surface]The surface texture, followed by a number from 0 to 16 in the following line:
    0asphalt (standard) - normal asphalt
    1concrete - concrete (slabs)
    2cobllestone - Cobblestone
    3dirt - Dirt/earth
    4grass - Grass
    5gravel - Gravel
    6snow - Snow
    7deep snow - deep snow
    8slush - Slush
    9ice - Ice
    10water - Water
    11mud - Mud
    12sand - Sand
    13metal - Metal
    14wood - Wood
    15small cobblestone - small cobblestone
    16interlocking paver - Interlocking paving
    [moisture]The surface can get wet. This has an effect on the driving behaviour.
    [puddles]If activated, puddles are displayed on the texture.

    3. Terrain texture

    OMSI offers the possibility to replace a texture with the terrain texture of the respective map. For example, grass can be displayed that seamlessly follows the terrain texture of a map. The keyword [terrainmapping] is used for this. This also works with monochrome 1x1px files to save memory.

Teilen

CC BY-SA 4.0

Sämtliche Inhalte unseres OMSI-Wiki sind unter Creative Commons Namensnennung & Weitergabe unter gleichen Bedingungen (CC BY-SA 4.0) lizensiert.