Search Unity

How is NFS: No Limits reflections achieved?

Discussion in 'General Graphics' started by levelappstudios, May 15, 2020.

  1. levelappstudios

    levelappstudios

    Joined:
    Nov 7, 2017
    Posts:
    104
    I have always wondered how do Firemonkeys generate such realistic reflections on the roads of Need for Speed No Limits. Reflections seems to be in realtime and I dont know how they do to run smoothly in low devices. Here is a screenshot:



    Maybe they first render the background to a RT and then use it in the floor render pass? How is then the UV calculated?

    Thanks in advance
     
  2. Neto_Kokku

    Neto_Kokku

    Joined:
    Feb 15, 2018
    Posts:
    1,751
    That's probably a planar reflection, like in the PS2-era NFS games. Basically, render a low detail version of the scene using a camera that has a matrix calculated to be the mirror version ofnthe main camera into a RenderTexture, then use that texture on the road material. It's not accurate at uneven surfaces, but should look convincing most of the time,
     
    levelappstudios likes this.
  3. levelappstudios

    levelappstudios

    Joined:
    Nov 7, 2017
    Posts:
    104
    Thank you! Using “planar reflection” as search tem results in a lot of info