Transparent Texture on Splines

Das Forum befindet sich im reduzierten Betrieb. Die Addon- und Supportforen bleiben weiterhin verfügbar.
Bitte beachte, dass OMSI nicht mehr weiterentwickelt wird. Ein Teil der Entwickler widmet sich inzwischen der Entwicklung eines neuen Simulators. Weitere Informationen zum LOTUS-Simulator findest Du hier.
  • Hello,


    Yes you can use a transparent texture, in the .sli you need to have something like

    Code
    1. [texture]
    2. your_texture.png/tga
    3. [matl]
    4. your_texture.png/tga
    5. 0
    6. [matl_alpha]
    7. 2

    And you need to add the transparent spline to the map after you added the spline behind it (in your case, the road need to be added before the transparent marking).

  • Thanks, it's working! One little problem:

    When I put the lines onto objects, not splines (in crossings) in the transparent parts the terrain is visible and not the objects under the line.

  • If you want the asphalt parts between your markings to be completely invisible you can try to use


    [matl_alpha]

    1


    instead of


    [matl_alpha]

    2


    which might help you in your case. You only need the value "2" if the texture you want to usehas parts that are half-transparent. This mode might cause problems like the ones you experienced, that objects or splines behind it will become invisible. [matl_alpha] 1 cannot do these half-transparent parts but is brilliant for textures that only have abolutely transparent and absolutely non-transparent parts because this does not have any issues with showing objects or splines behind the one in question.