Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Resolved Miscellaneous behavior of RT GI (scene/game view), light leaking

Discussion in 'HDRP Ray Tracing' started by AntonioModer, Jan 4, 2023.

  1. AntonioModer

    AntonioModer

    Joined:
    Jul 29, 2014
    Posts:
    65
    Снимок экрана 2023-01-04 164243.jpg Снимок экрана 2023-01-04 164232.jpg Снимок экрана 2023-01-04 164148.jpg Снимок экрана 2023-01-04 172956.jpg
    Снимок экрана 2023-01-04 174335.jpg

    Images:
    1. game-view, not correct GI ("bug"), ligth leak in absolutly dark room
    2. scene-view, correct GI
    3. scene-view, lighting off (same camera position, like in game-view)
    4. Directional Shadow Fallback Intensity = 0 (for remove light leaking; if = 1, then light leaking everywhere)
    5. GI settings. This "bug" only in "Performance" mode. If turn on "Quality" mode, then "bug" is disappears, but fps is too low, what is critical for gameplay in low-end graphics-cards.

    This bug seen always, if camera not move, in some places. And lighting is explodes sometimes, when camera moves in game-view.
    Also i try play with "Exposure", "Light Cluster" (=100), but result is same, it not affects.
    "Specular" not affects, turned off (global, material).
    Also tested in Rendering Debugger, turn on only RT GI rendering.

    Unity 2021.3.14f1, HDRP 12.1.8

    Why in game-view GI not correct work, it can be fixed ?
    And, it will fixed in Unity 2023, when RT out from preview ?

    Thank you for the attention.

    Update (temporary solution):
    RT GI settings: "Performance high" mode = "Quality" mode (sample count = 1, bounce count = 1).
    This parameters give same FPS, but in "Quality" mode (sample count = 1, bounce count = 1) "bug" is gone.
    )
     
    Last edited: Jan 8, 2023
  2. AntonioModer

    AntonioModer

    Joined:
    Jul 29, 2014
    Posts:
    65
    Снимок экрана 2023-01-04 181828.jpg

    "Quality" mode (sample count = 1, bounce count = 1)
     
  3. AntonioModer

    AntonioModer

    Joined:
    Jul 29, 2014
    Posts:
    65
    Ok. Real problem in incorrect game-camera FOV :
    FOV Axis = "horizontal" and FOV = 70 give real FOV = 42 (seen in debug mode of inspector)

    I change FOV to default "vertical" and FOV = 70, and real FOV is 70
    Now FPS increased (from 35 to 65) when back to "RT GI Performance Hight" mode, this mode render GI same like "Quality" mode, without light leaking.

    This is not a bug )
    And now i can use 1080p resolution in game with hight FPS, not 800x450. Im happy :)
    Lol, this problem is started in 4 January and resolved in 4 February
     
    Last edited: Feb 4, 2023
  4. AntonioModer

    AntonioModer

    Joined:
    Jul 29, 2014
    Posts:
    65
    This is also shadows "bug". GI-RT work not perfect, leaking always is must have in some cases.
    For best quality must use lightmaps.

    Снимок экрана 2023-03-07 065929.jpg Снимок экрана 2023-03-07 070221.jpg Снимок экрана 2023-03-07 070400.jpg

    1 image: shadows Hight, lighting-GI leaking
    2 image: shadows Ultra, lighting-GI leaking less
    3 image: shadows Ultra, Slope-Scale Depth Bias = 0.15, lighting-GI not leaking

    Update: need set shadows "Normal Bias" to 1.5 to remove the effect of ladders from shadows on surfaces:
    Снимок экрана 2023-03-09 001035.jpg
     
    Last edited: Mar 8, 2023