Search Unity

Reading RTT issues with android

Discussion in 'Android' started by noamgat, Mar 15, 2016.

  1. noamgat

    noamgat

    Joined:
    Nov 22, 2009
    Posts:
    125
    Hi,

    I have the following setup:
    I created a "render texture" asset in my project.
    I have a camera that renders to it with depth -1,
    and another camera that has a material that reads from it with depth 0.

    It works fine in the editor.
    However, on android, the texture samples are coming up empty.
    I enabled frame debugger and compared outputs, and got a strange result:

    In the editor I see this:
    EditorFrameDebugger.png

    But on android I see this:
    AndroidFrameDebugger.png

    The biggest difference is that the _DifferentiationMap pointer comes up EMPTY on android!

    Is this a bug in unity? Does anyone have an idea on where I can look to solve this?
     
  2. noamgat

    noamgat

    Joined:
    Nov 22, 2009
    Posts:
    125
    Update : It was because I was using R8 texture format, which is unsupported on android :(
     
    Paul-Jan likes this.