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

HDRP - What is this purple triangle

Discussion in 'General Graphics' started by ghtx1138, Feb 11, 2019.

  1. ghtx1138

    ghtx1138

    Joined:
    Dec 11, 2017
    Posts:
    114
    Hi

    I set up a new HDRP project (correctly I think) and I have this purple triangle when I select the Main Camera. Anyone know what it is and how to get rid of it? I have never seen this before.

    Thanks

    <edir> Also seeing this:
    Code (CSharp):
    1. RenderingCommandBuffer: invalid pass index 1 in DrawMesh
    2. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    PurpleTriangle.png
     
  2. Remy_Unity

    Remy_Unity

    Unity Technologies

    Joined:
    Oct 3, 2017
    Posts:
    635
    That's surprising. What version of Unity and HDRP are you using here ?
     
  3. ghtx1138

    ghtx1138

    Joined:
    Dec 11, 2017
    Posts:
    114
    Hi @Remy_Unity 2018.3.0f2 and HD 4.9. I started again with the HDRP template and then upgraded the packages to the latest previews and the problem went away.
     
  4. tylo

    tylo

    Joined:
    Dec 7, 2009
    Posts:
    154
    You have been blessed by the purple triangle. Please forward to 10 of your friends.
     
    dmarfurt, Od1um and hippocoder like this.
  5. ghtx1138

    ghtx1138

    Joined:
    Dec 11, 2017
    Posts:
    114
    Forwarding now! Didn't realise it was that unique :)
     
  6. Leuthil

    Leuthil

    Joined:
    Jul 26, 2013
    Posts:
    97
    I just got this issue too. Running the latest Unity stable build (2018.3.8f1) and got the latest packages from the Package Manager (HDRP 4.1.0.0-preview). I also get those same errors in the console.

    I noticed that the Core RP Library package was not automatically retrieved when I installed the HDRP, so I installed that and then did a Reimport all. After that it works correctly. Not sure if those steps had any impact or if just restarting Unity would've worked.
     
  7. Remy_Unity

    Remy_Unity

    Unity Technologies

    Joined:
    Oct 3, 2017
    Posts:
    635
    Core RP is a dependency of HDRP, and gets imported automatically (with the correct version). It just doesn't show up in the files herarchy in the project window.
    You shouldn't import it separatly, as this could cause version conflicts.
     
  8. Leuthil

    Leuthil

    Joined:
    Jul 26, 2013
    Posts:
    97
    Ah I see. Most likely it just fixed itself from restarting Unity then.
     
  9. dmarfurt

    dmarfurt

    Joined:
    Apr 28, 2013
    Posts:
    9
    I am also having this same purple triangle issue. It only appears in play mode, and my project does not have the HDRP package installed (or Lightweight or RP.Core, for that matter). Unity version 2018.3.12f1, Post Processing package version 2.1.5. It was originally 2.1.6, and I rolled back a version to see if that made a difference but no such luck. Also, the triangle did not appear in a fresh project.
     
    Last edited: May 1, 2019
  10. jacoblaerdal

    jacoblaerdal

    Joined:
    Jun 12, 2017
    Posts:
    4
    Me2 - Purple triangle present and the Post Processing is not working in WebGL play mode or in build mode!

    Unity version: 2018.3.14f1
    Post Processing version: 2.1.6
     
  11. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,845
    This happens when calling CommandBuffer.DrawProcedural with a material that uses a shader that is not supported. It falls back to Hidden/InternalErrorShader, which doesn't transform the triangle to fill the whole screen.
     
  12. csfalcao

    csfalcao

    Joined:
    Oct 9, 2014
    Posts:
    1
    Ok, but how to fix it? It happens to me after adding a post-processin layer to camera.

    Edit: using 2019.1
     
  13. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,845
    @csfalcao What platform are you on? What is your target platform? Are there any errors in the console?
     
  14. HaniAlK

    HaniAlK

    Joined:
    Sep 30, 2017
    Posts:
    1
    Hello, I am having the same issue in the same version of unity. My target platform is windows and there are no errors in the console. I would appreciate anyone's help a lot.
     
  15. LoveToLoose

    LoveToLoose

    Joined:
    Mar 25, 2019
    Posts:
    8
    Same problem on Linux wiht Unity 2019.1.7f1.
     
  16. jcaguiat

    jcaguiat

    Joined:
    May 10, 2016
    Posts:
    5
    In case this helps anybody, had the same problem after upgrading to 2018.4.2f1.

    All I did to fix it was uninstall Post Processing (v2.1.7) from the package manager window and re-installed it.

    All working as expected now.