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 have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

RenderTexture limitation with WebGL?

Discussion in 'WebGL' started by DarkPixel, Aug 12, 2015.

  1. DarkPixel

    DarkPixel

    Joined:
    Sep 13, 2013
    Posts:
    79
    I have a weird problem since we started with WebGL (january).

    Is there a RenderTexture limitation with WebGL?

    I have 2 render texture (asset not temporary RenderTexture)

    128x128 / ARGB32 / 24 bit depth buffer
    1024x1024 / ARGB32 / 24 bit depth buffer

    I render multiple mesh and I use that after in a RawImage. On all other platform, the alpha work. But on WebGL there's no alpha on the 1024x1024. But the 128x128 the alpha is correct.

    Is there a limitation the size of the render texture? Or it's supposed to work?
     
  2. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    There is no reason known to me why this should not work. I suggest filing a bug report with a repro case.
     
  3. DarkPixel

    DarkPixel

    Joined:
    Sep 13, 2013
    Posts:
    79
    It's not related to the size of the render texture. It was hard to reproduce from scratch. The problem happen with 2 camera created at runtime. I filed a bug: 719438.
     
  4. patchworkx

    patchworkx

    Joined:
    Nov 8, 2014
    Posts:
    20
    i`m stucking @ that point .. havin an running 2`nd camera wich renders at display 2-wich is the displaytype of the rendertexture...--
    than export webGL -the browser just gives an black screen where should be the render texture..--
    ...
    someone solved the problem?
     
  5. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    there is no known issue related to render textures at this point. Does it work on GLES platforms?
     
  6. unity-freestyle

    unity-freestyle

    Joined:
    Aug 26, 2015
    Posts:
    45
    Just happened with me as well, two cameras (but at the same display) but getting the black screen as result. Not happening on standalone builds.
     
    Bren, JegoBestaatal and jukure like this.