.
Results 1 to 7 of 7

Thread: Avoiding Shadows

  1. #1
    Join Date
    Nov 2006
    Location
    United States of America, Pennsylvania, Meadville
    Posts
    31
     

    Default Avoiding Shadows

    I'm working on a layout where I'm realizing that the proximity of backdrops to the track and scenery causes them to cast unwanted shadows over everything. How have other people avoided this issue? Is it just a matter of disabling shadows entirely, or are there backdrop assets that do not cast shadows?
    Nick Ozorak


  2. #2
    Join Date
    Aug 2019
    Location
    Quarantining Since March 1st In Front Of My PC
    Posts
    906
     

    Default

    I set my route latitude/longitude to be 0.00, 0.00 which is the Null Island Buoy off the African Ivory Coast, then the sun shines directly straight down, with both sides of an asset equally illuminated
    The expression: "Avoiding it like it is the Plague" just doesn't make any sense. Humans just don't do that very well.

  3. #3
    Join Date
    Nov 2006
    Location
    Newcastle NSW Australia
    Posts
    6,518
     

    Default

    If a backdrop asset has a trainz-build number of 4.1 or higher, I think you can disable its shadow-casting ability by editing its config.txt file. You need to insert the following line of text;

    does-cast-shadows 0

    into the mesh sub-container section of its mesh-table, like this;

    mesh-table
    {
    default
    {
    mesh "backdrop.im"
    auto-create 1
    does-cast-shadows 0
    }
    }


    I think this is valid for both Kind scenery and Kind track assets. In other words, for backdrops listed in either the Objects tab or the Tracks tab in Surveyor.

    Be aware that such edits, if allowed by the program, will only be local to your own computer. If you publish a route with these assets to the DLS or elsewhere, other users will end up with the original, un-edited backdrops, so they will still see shadows.

    ~ Deane



    .
    Last edited by Dinorius_Redundicus; April 15th, 2020 at 10:28 PM.
    T:ANE SP4 build 105946 and TRS2019 SP1 build 105096
    Win 10, i7 5820K, 3.3 GHz, 32GB ram, GTX 980Ti, 2x512GB SSD

  4. #4
    Join Date
    Nov 2006
    Location
    United States of America, Pennsylvania, Meadville
    Posts
    31
     

    Default

    Quote Originally Posted by MP242 View Post
    I set my route latitude/longitude to be 0.00, 0.00 which is the Null Island Buoy off the African Ivory Coast, then the sun shines directly straight down, with both sides of an asset equally illuminated
    I have tried this but it doesn't seem to have changed the shadows.


    Quote Originally Posted by Dinorius_Redundicus View Post
    mesh-table
    {
    default
    {
    mesh "backdrop.im"
    auto-create 1
    does-cast-shadows 0
    }
    }
    Unfortunately, all of the backdrops I can find on the DLS were created with TS12. I tried to add the line but it had no effect.
    Nick Ozorak


  5. #5
    Join Date
    Nov 2006
    Location
    Newcastle NSW Australia
    Posts
    6,518
     

    Default

    Quote Originally Posted by etozorak View Post
    I have tried this but it doesn't seem to have changed the shadows.

    Unfortunately, all of the backdrops I can find on the DLS were created with TS12. I tried to add the line but it had no effect.
    My apologies, I misread the Wiki. The does-not-cast-shadows tag only works if the trainz-build is 4.4 or higher, not 4.1.


    Changing trainz-build to 4.4 and adding a does-not-cast-shadows 0 tag (as described above) works on both scenery and spline objects. The examples I confirmed this with were;

    <kuid:396831:567> Backdrop 001 ek. (TS12 Kind:scenery).

    <kuid2:156765:101350:1> Model Railroad Backdrop 1. (TS12 Kind:track)*.


    * A side note on this one. It uses a single-sided texture, so even without the edits, you cannot see its shadow when looking at it from the visible side. Very clever creator, Simulatortrain/xawery!



    .
    Last edited by Dinorius_Redundicus; April 17th, 2020 at 06:03 AM.
    T:ANE SP4 build 105946 and TRS2019 SP1 build 105096
    Win 10, i7 5820K, 3.3 GHz, 32GB ram, GTX 980Ti, 2x512GB SSD

  6. #6
    Join Date
    Nov 2006
    Location
    United States of America, Pennsylvania, Meadville
    Posts
    31
     

    Default

    To provide closure to this topic, euromodeller kindly reuploaded his backdrop and wall assets with the "no shadow" fix applied. They are in the DLS, and I appreciate him doing this for us.
    Nick Ozorak


  7. #7
    Join Date
    Nov 2006
    Location
    United States of America, South Jersey
    Posts
    1,935
    Blog Entries
    1
     

    Default

    Quote Originally Posted by MP242 View Post
    I set my route latitude/longitude to be 0.00, 0.00 which is the Null Island Buoy off the African Ivory Coast, then the sun shines directly straight down, with both sides of an asset equally illuminated
    Quote Originally Posted by etozorak View Post
    I have tried this but it doesn't seem to have changed the shadows.
    Yes, sounds good but it can't really work to prevent shadows. It does bring up some interesting question of the game's treatment of astronomical events but I'll leave that to others.

    I could discuss how the real world works, mean and apparent sun, local apparent noon, Sun's apparent motion in the sky, equinoxes and a few other topics, but basically for the sun to cast no shadows on your Trainz route it would have to remain stationary in the sky directly above your location 24 hrs a day and just slowly dim on and off like a light bulb on a dimmer switch.

    Bob Pearson
    An advocate for Celestial Navigation in the GPS age.
    If I determine time and longitude from lunar distances am I a lunatic?
    TRAINZ-UTC-TRS04-TRS06-TC1&2-TC3-TS09-TS10-TS12-TANE(TEG)-TMR17-TS19
    Member since 6-14-2002

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •