Search Unity

RenderTexture not working when switching to Android or iOS?

Discussion in 'Editor & General Support' started by Rooster131, Jul 24, 2014.

  1. Rooster131

    Rooster131

    Joined:
    Jul 24, 2014
    Posts:
    1
    Hi there! I'm having problems with renderTextures when switching to Android. (And iOS it seems.)

    I'm using a 2nd camera to render to a render texture, that gets read directly into a material that processes it a little before mapping it onto some geometry. This all works great for web builds, but when we switch to Android or iOS, the render texture goes black. Even if I take the material and bypass all processing, so it returns the input renderTexure as is it still comes out black.

    I've looked through the forums and I've tried a as many suggestions as I could find.
    (
    - The renderTexture camera has a depth below the main camera
    - I checked that antialiasing was off on the renderTexture
    - turned on "ZTest Always" on the simple shader assigned to the objects seen by the renderTexture camera
    - tried adjusting the Queue ordering in the materials to no avail.
    )

    It all works for the web, both interactively and in a browser, but as soon as I switch to Android it goes black.

    This is Unity 4.5.2f1

    Any help would be appreciated!
     
  2. Alexey

    Alexey

    Unity Technologies

    Joined:
    May 10, 2010
    Posts:
    1,624
    please bug report with small repro case. From the sound of it you do everything quite correct, so there might be some setup issue or somthing
     
  3. Graham-Dunnett

    Graham-Dunnett

    Administrator

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    Do you have the Android and iOS Pro add-on?
     
    Alexey likes this.