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. Dismiss Notice

Bug Bizarre texture swapping issue.

Discussion in 'Universal Render Pipeline' started by NuttyLord, Dec 2, 2020.

  1. NuttyLord

    NuttyLord

    Joined:
    Dec 4, 2017
    Posts:
    1
    Hi,

    i am having issues with a project i am currently working on with regards to textures randomly changing in the scene based on headset rotation. The issue occurs in build as well as in editor. The issue is also very inconsistent, some of the people working on the project do not have the issue appear in the editor. Often changing something large within the project (such as removing oculus) will get rid of the issue temporarily.

    This issue is happening to all of our objects that use the shader "Universal Render Pipeline/Lit".

    A short video of the issue can be seen here



    A list of what ive tried so far:
    - disabling GPU instancing on all effected objects.
    - replacing the render pipeline asset with a newly generated one.
    - running the same project in a different PC.
    - building from a PC that does not have the issue in the editor - issue still occurs in build.

    Unity is not throwing errors and while using Frame Debug and reading the SRP batches i can see the proper materials being passed however the materials that show up are incorrect.
     
  2. Gnoblar_agency

    Gnoblar_agency

    Joined:
    Sep 20, 2012
    Posts:
    8
    Did you ever find the cause of this or a fix? I am having the same issue in a project of mine. Textures randomly swap on certain renderers depending on camera view position.

    I feel like it's linked to changing the render queue number of a material, but I can't be sure as it's very inconsistent.

    Any assistance would be appreciated.
     
  3. Beauque

    Beauque

    Joined:
    Mar 7, 2017
    Posts:
    61
    Any news on this? I am having a similar issue but with a custom Amplify shader. It looks like the SRP Batcher is going wild. Some Renderers take the textures from different objects when these enter the fov. The bug disappears when toggling off SRP Batcher.
    It suddenly appeared after some simple modifications on the shader (keywords were left untouched).
    Bug happens on PC builds and some android platform (Vive Focus Plus) but not on MetaQuest and Pico Neo 3...