Search Unity

DecalProjector runtime creation makes screen black in the build.

Discussion in 'High Definition Render Pipeline' started by AlexeySovko, Dec 23, 2019.

  1. AlexeySovko

    AlexeySovko

    Joined:
    Apr 4, 2013
    Posts:
    25
    The problem does not occur in the editor.
    In the build, DecalProjector creation makes the screen black, just GUI is visible.
    The problem was encountered in 2019.3.0f3 with HDRP 7.1.7
    The problem was reproduced in the project out of the box.

    Here is the log: https://pastebin.com/LmTHdW7g
     
    Last edited: Dec 23, 2019
  2. Remy_Unity

    Remy_Unity

    Unity Technologies

    Joined:
    Oct 3, 2017
    Posts:
    703
    Hi !

    Thanks for reporting, and sorry for the delay.
    The issue has been identified, and reported : https://issuetracker.unity3d.com/product/unity/issues/guid/1211761/

    While waiting for a fix, here are two workarounds:
    • Instantiate a properly setup DecalProjector prefab object
    • Disable the gameobject before adding a DecalProjector component, and re-enable it after having set a proper HDRP/Decal material.
     
    UtopianX8 likes this.
  3. Bordeaux_Fox

    Bordeaux_Fox

    Joined:
    Nov 14, 2018
    Posts:
    589
    It seems there are many bugs related to the new decal projector component, even in the RC packages of HDRP.
    First the decal shader stripping bug and then the ghost copies bug.

    I guess it gets not much love from developers as other new things like volumetric lighting.