Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Question HDRP render texture

Discussion in 'High Definition Render Pipeline' started by jjejj87, Dec 11, 2019.

  1. jjejj87

    jjejj87

    Joined:
    Feb 2, 2013
    Posts:
    1,117
    Last edited: Dec 11, 2019
  2. jjejj87

    jjejj87

    Joined:
    Feb 2, 2013
    Posts:
    1,117
    Am I the only one experiencing this issue?
     
  3. jjejj87

    jjejj87

    Joined:
    Feb 2, 2013
    Posts:
    1,117
    Quick update: render texture works if built in dev mode.
     
  4. DreamPower

    DreamPower

    Joined:
    Apr 2, 2017
    Posts:
    103
    I have the exact same issue, same Unity/HDRP version, and making a development build fixes it for me too. Note, I am in Linux using Vulkan.

    The RenderTexture is being created and works fine, but it doesn't seem to work in a UI RawImage in release builds.

    Edit: When we use the exact same RawImage with a RenderTexture that was created through a custom renderer, it works just fine.
     
    Last edited: Dec 19, 2019
  5. olavrv

    olavrv

    Joined:
    May 26, 2015
    Posts:
    515
    We had exactly the same issue (ame unity and HDRP version)

    FIX: Set color format in rendertexture to B10G11R11_UFLOAT_PACK32
     
    Egad_McDad, FOXAcemond, cla08 and 4 others like this.
  6. jjejj87

    jjejj87

    Joined:
    Feb 2, 2013
    Posts:
    1,117
    just checked with 7.1.7 and the issue is still there.
     
  7. UUUnity

    UUUnity

    Joined:
    May 6, 2018
    Posts:
    10
    Are you an angel ? I've been bothered by this problem for a long time,Thanks bro
     
    olavrv likes this.
  8. WarpBubble

    WarpBubble

    Joined:
    Dec 4, 2013
    Posts:
    33
    You rock dude! And for anyone trying to make this work in code, you want...


    Code (CSharp):
    1. RenderTexture rt = new RenderTexture(512, 512, 24, RenderTextureFormat.RGB111110Float);
    2. rt.Create();
    I haven't tested all of the options, but this was the first one I hit that worked :)
     
    Egad_McDad, punkbot and olavrv like this.
  9. FOXAcemond

    FOXAcemond

    Joined:
    Jan 23, 2015
    Posts:
    99
    This bug hasn't been fixed? You didn't find any other way than this workaround?
    Can anyone explain those color formats?