Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

ARKit and WebCamTexture

Discussion in 'AR' started by Jagrth, Jan 30, 2018.

  1. Jagrth

    Jagrth

    Joined:
    Jan 11, 2018
    Posts:
    5
    Hi,

    Is it possible to use WebCamTexture and ARKit together?

    I have a script that creates a WebCamTexture that I am trying to use to take a picture of a scene. The script draws texture OnGUI() method. I just attach this script to an empty GameObject. When trying the app on an iPad I see the Unity screen and tthen blank. I see error on XCode that says something about nsinvalidargumentexception avcapturedevice.

    Any ideas?

    Thanks
     
  2. Jagrth

    Jagrth

    Joined:
    Jan 11, 2018
    Posts:
    5
    avcapturedevice unsupported frame duration
     
  3. Jagrth

    Jagrth

    Joined:
    Jan 11, 2018
    Posts:
    5
    FYI, the whole point is to be able to take a picture of my scene.
     
  4. dmitry-K

    dmitry-K

    Joined:
    Apr 2, 2014
    Posts:
    26
  5. todds_unity

    todds_unity

    Joined:
    Aug 1, 2018
    Posts:
    324
  6. TiagoAlvesPretia

    TiagoAlvesPretia

    Joined:
    Oct 4, 2017
    Posts:
    5
    Good Afternoon,

    I have a similar problem but different.
    In my case, I'm trying to access the front camera feed using Webcam Texture in one scene while in other scene, I use the ARKit normally.
    The ARKit works normal but on the other scene, the texture that I get is blank.
    Do I need to anything special to enable the camera?