Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Lighting Errors based on Camera Positions

Discussion in 'Editor & General Support' started by Eoghan, Jun 7, 2019.

  1. Eoghan

    Eoghan

    Joined:
    Jun 6, 2013
    Posts:
    80
    I've got a scene set up in unity that's generally got 1-4 spotlights running at any one time. I'm currently getting a huge amount of strange artifacting/clipping issues with the lighting setup, which can appear/vanish based off the camera position.

    Setup is;

    * Unity 2018.3.9f1
    * Forward Lighting (Deferred exacerbates the problem greatly)
    * Lights are all spot, some with Cookies
    * Gamma colour space (No difference between Gamma/Linear for this problem)
    * Pixel Light count typically at 32, tested at values 1 - 1024
    * Tested with no/full specularity & smoothness on shaders (no difference)

    Again, this is fully dependent on the camera position as seen in the above close-up - but the problem tends to occur no matter how far away you are from the object being affected.

    For example, here is a zoomed-out view of a wall;
    upload_2019-6-7_17-43-10.png

    Moving in very slightly changes the lighting to;

    upload_2019-6-7_17-43-49.png

    While moving in a bit more still then removes all lighting reflections;

    upload_2019-6-7_17-44-29.png

    Changing the angle then, without changing position, results in the blue spotlight glitched reflections returning;

    upload_2019-6-7_17-45-34.png

    Does anyone have any ideas on what could be wrong here?
     
    Last edited: Jun 7, 2019
  2. Eoghan

    Eoghan

    Joined:
    Jun 6, 2013
    Posts:
    80
    For anyone else who ever encounters this problem;

    It was my own (and now your) fault. Set your Light Cookie textures to Clamp, not repeat. Otherwise they artifact all over the screen.