Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Help Wanted HDRP render texture

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

  1. jjejj87

    jjejj87

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

    jjejj87

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

    jjejj87

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

    DreamPower

    Joined:
    Apr 2, 2017
    Posts:
    86
    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:
    235
    We had exactly the same issue (ame unity and HDRP version)

    FIX: Set color format in rendertexture to B10G11R11_UFLOAT_PACK32
     
    cla08, sergiusz308, UUUnity and 2 others like this.
  6. jjejj87

    jjejj87

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

    UUUnity

    Joined:
    May 6, 2018
    Posts:
    7
    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:
    29
    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 :)
     
    punkbot and olavrv like this.
unityunity