Search Unity

Taking pictures from the Unity editor

Discussion in 'VR' started by jimweaver, Apr 21, 2018.

  1. jimweaver

    jimweaver

    Joined:
    Apr 17, 2018
    Posts:
    5
    I'm trying to follow the instructions here to get pictures working from the emulator in the Unity editor, but so far I keep seeing: Failed capturing photo (hr = 0xC00D3704). Does taking pictures work from the emulator in the Unity Editor?
     
  2. jimweaver

    jimweaver

    Joined:
    Apr 17, 2018
    Posts:
    5
    Scoured the web and tested locally - I can say now that using PhotoCapture does indeed work to take pictures, but will fail if you have Vuforia enabled. For this project, I still want Vuforia, so I temporarily disabled it while taking the picture via VuforiaBehaviour.Instance.enabled = false. I might make another project without Vuforia where I render the background via WebCam (like I get for free using Vuforia's AR Camera) then have access to PhotoCapture and maybe even webcam frames.