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

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.