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’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Question Decal projector does not clear when changing material

Discussion in 'High Definition Render Pipeline' started by Bordeaux_Fox, Dec 10, 2019.

  1. Bordeaux_Fox

    Bordeaux_Fox

    Joined:
    Nov 14, 2018
    Posts:
    589
    Hello,

    I have a huge problem with the decal projector component in HDRP.
    When I change the material of a decal projector at runtime with a script, the decal projector keeps showing the old material and the new material. But I expect it just shows the changed material and no longer the old one.
    Do decal projectors not clear during runtime? Do they simply overdrawn their space in the texture atlas?

    For example, I have a decal projector with the texture of the word "hello". On the wall, the decal displays "hello". But now I change the material of the decal projector to a material with a texture of the word "goodbye".
    Now I have "hello" and "goodbye" on the wall, simply overlapping. But it is just one decal projector with one material. When I disable the decal projector, the word "goodbye" disappears. The word "hello" is still there and cannot be selected or deleted.

    Also when I disable the said decal projector, the texture from the OLD material will be still displayed but not the new material. Also there is no related scene object for the old decal material. It is like their is a hidden ghost copy.

    I'm using HDRP 7.1.6.

    Please see Issue Tracker Case 1205547.
     

    Attached Files:

    Last edited: Dec 14, 2019
  2. Bordeaux_Fox

    Bordeaux_Fox

    Joined:
    Nov 14, 2018
    Posts:
    589
    Anyone? This is still in the RC 2019.3.0f3.

    Please see Issue Tracker Case 1205547.
     
    Last edited: Dec 14, 2019
  3. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,102
  4. Bordeaux_Fox

    Bordeaux_Fox

    Joined:
    Nov 14, 2018
    Posts:
    589
    Will this be fixed in the final version of 2019.3? I mean otherwise you cannot really claim HDRP to be production ready, I think.

    Decal projectors had and has a really hard history in HDRP. I mean, first there was a bug caused the decal shader to be stripped from builds and now the bug with ghost copies.
     
  5. Lorca1031

    Lorca1031

    Joined:
    May 4, 2018
    Posts:
    10
    Please please fix this issue!