Nvidia Rtx And... Doesn't Tsw Already Use Raytracing!?

Discussion in 'Off Topic' started by Giacomo Giugiaro, Sep 15, 2018.

  1. Giacomo Giugiaro

    Giacomo Giugiaro Member

    Joined:
    Sep 22, 2017
    Messages:
    22
    Likes Received:
    72
    Just dropping this one here. I know that nVidia is pushing for real time Ray Tracing graphics with their new RTX cards, and how these will make reflections, colour mixing and shadows appear true to life.

    According to them, reflections could only be done by resorting to the use of reflection maps, which TS uses for the shiny shaders, but...

    How is TSW managing to do real time reflections almost 2 years prior to RTX being launched? On Pascal cards nonetheless?

    20180914202745_1.jpg
     
  2. Jef-F

    Jef-F Active Member

    Joined:
    Dec 8, 2016
    Messages:
    210
    Likes Received:
    136
    These are standard screen-space reflections, nothing special. It doesn't calculate it in a physically correct way, it just takes already rendered part of the screen (on the left in your shot) and uses it as a reflection on a train, warping it according to hull unevenness and various other mesh features. Do you wonder why HST nose lacks reflections? Because there's nothing rendered beyond left side of screen, so there's nothing to reflect.

    upload_2018-9-15_11-50-16.png

    That's very popular method, because it's cheap in terms of performance and produces good reflections majority of the time, unless you specifically looking at them. On the other hand, raytracing produces physically correct reflections and lighting/shading for entire scene, including things beyond your screen, and it's expensive as hell.

    Here's a detailed article on SSR [pdf]
     
    Last edited: Sep 15, 2018
    • Helpful Helpful x 6
    • Like Like x 1
  3. Daniel Bloch

    Daniel Bloch Well-Known Member

    Joined:
    Dec 14, 2016
    Messages:
    649
    Likes Received:
    1,414
    That's the reason why we don't have working mirrors on the CSX locos, the reflections on the trains are just mirrored like Jef-F explained. If there where allready raytracing we had working mirrors.
    I hope raytracing will be in the future added to TSW.
     
  4. Jef-F

    Jef-F Active Member

    Joined:
    Dec 8, 2016
    Messages:
    210
    Likes Received:
    136
    Well, you can make mirrors without raytracing, but you need to setup virtual viewports for every mirror, render everything they "see" just like the main camera view and project onto mirrors' surface... takes time for poking around and, obviously, some performance hit.
     
    • Like Like x 1
  5. DictatorDono

    DictatorDono Member

    Joined:
    Mar 24, 2018
    Messages:
    20
    Likes Received:
    30
    It'll be a few years until raytracing is cheap enough (both computationally and in terms of hardware) that a majority of players can use it. Regarding mirrors, raytracing would be useful in that a fixed camera would be hard to program (think how depending on where you stop changes how many doors of the train you could see). I can think of a bodge to approximate the required camera angle in UE4 but raytracing is the best method. For CCTV it's very easy to just set up a camera for each set of doors (which makes it pretty easy to check the doors on underground and certain UK routes).
     

Share This Page