Search Unity

Camera Pass through not working on android

Discussion in 'AR' started by zakmackraken, Aug 15, 2018.

  1. zakmackraken

    zakmackraken

    Joined:
    Jun 16, 2017
    Posts:
    9
    Hello,

    I've ported an ARKit project to ARFoundation and the iOS build is fine, however the Android build is showing cyan instead of the video feed. The only related things I can see in logs is below:

    Any ideas?

    Thank you

    Zak

    08-15 17:18:30.656 11594-11823/com.artest.viewer2 I/native: cameras.cc:739 Camera changed state from 0 to 1: Camera device opened succesfully.
    08-15 17:18:30.656 11594-11639/com.artest.viewer2 I/native: session.cc:592 Session::Resume returning OK.
    08-15 17:18:30.656 11594-11823/com.artest.viewer2 I/native: cameras.cc:739 Camera changed state from 1 to 2: Capture session starting...
    08-15 17:18:30.656 11594-11639/com.artest.viewer2 I/ArPresto: ArPresto::Moving from ArPrestoStatus 102 to 101.
    08-15 17:18:30.656 11594-11823/com.artest.viewer2 I/native: cameras.cc:739 Camera changed state from 2 to 3: Capture session started streaming.
    08-15 17:18:30.724 11594-11639/com.artest.viewer2 D/Unity: WARNING: Shader
    Unsupported: 'Unlit/ARCoreBackground' - Pass '' has no vertex shader
    WARNING: Shader
    Unsupported: 'Unlit/ARCoreBackground' - Setting to default shader.
     
  2. zakmackraken

    zakmackraken

    Joined:
    Jun 16, 2017
    Posts:
    9
    I’ve been trying to sort this for a week and naturally I fixed it 5 mins after I posted this! The project file had android set to gles2.0 and it needed gles3.0
     
  3. tdmowrer

    tdmowrer

    Joined:
    Apr 21, 2017
    Posts:
    605
    I thought we had a check for that, but I guess it only guards against using Vulkan. Could you submit a bug report for that?
     
  4. zakmackraken

    zakmackraken

    Joined:
    Jun 16, 2017
    Posts:
    9
    Bug reported submitted. Cheers
     
  5. tdmowrer

    tdmowrer

    Joined:
    Apr 21, 2017
    Posts:
    605
    Thanks!
    Got it; thanks!
     
  6. MaxQuinonesSantander

    MaxQuinonesSantander

    Joined:
    Feb 20, 2020
    Posts:
    11
    Thanks , yes that was the problem... Works fine now