No shadow on object

The forum is in reduced operation. The Addon and Support forums remain open.
Please note that OMSI is no longer under development. Some of the developers are now working on a new simulator. Further information concerning the LOTUS-Simulator can be found here.
  • Hello,

    I was testing shadows, and I noticed that only few objects had shadows. I looked on the forum and I saw that it was "normal" in OMSI 2. None of my objects have it, except my traffic lights. So I tested everything that was in the .sco, and it appears that the element responsible of this is the [script].

    Only a .sco with a [script] and a [shadow] will have shadows. I saw that original street lights had shadows, so I think another tag can trigger it.

    So, if I want shadow on an object, I put at the end of the .sco :

    1. [shadow]
    2. [script]
    3. 1
    4. script\nothing.osc

    And the script "nothing.osc" must have a frame and something inside, if not the shadow will not appears. Here is the nothing.osc :

    1. {frame}
    2. 0
    3. {if}
    4. {endif}
    5. {end}

    I don't think it's really good in term of performance. Did anyone else find another solution?