The Quest 3 & Quest 3S “Passthrough Digicam API” can now be utilized in delivery apps on the Meta Horizon Retailer.
The aptitude was made out there to all builders as an experimental launch six weeks in the past, that means they might experiment with it, and in idea distribute APKs with it (on SideQuest, for instance), however could not embrace it in Meta Horizon Retailer apps till now.
With v76 of the Meta XR Core SDK, out now, the potential is now not thought-about experimental, and thus will be included in delivery apps “after a overview course of”.
What Is Passthrough Digicam Entry?
Whereas headsets like Quest 3 use cameras to allow you to see the actual world, till not too long ago solely the system software program had uncooked entry to those cameras. Third-party builders might use passthrough as a background, certain, however they did not truly get entry to it. They as a substitute bought higher-level information derived by the system, reminiscent of hand and physique skeletal coordinates, a 3D mesh of your atmosphere with bounding containers for furnishings, and restricted object monitoring capabilities. That meant they could not run their very own pc imaginative and prescient fashions, which severely restricted the augmentation capabilities of those headsets.
For the “Passthrough Digicam API” to work, you because the consumer must grant the app permission to entry your headset cameras, simply as you’ll the microphone. If granted, the app will get entry to the forward-facing colour cameras, together with metadata just like the lens intrinsics and headset pose, which it will possibly leverage to run customized pc imaginative and prescient fashions.
Examples of how apps can use this embrace scanning and monitoring QR codes, detecting a sport board on a desk so as to add digital characters and objects to it, detecting bodily objects for enterprise information experiences, and integrating the visible AI performance of cloud-hosted massive language fashions (LLMs). Builders are solely restricted by which real-time pc imaginative and prescient fashions can run on the XR2 Gen 2 chipset performantly, or which cloud-hosted picture evaluation fashions they’re keen to pay for.
Meta software program engineer Roberto Coviello’s QuestCameraKit samples.
The passthrough digicam stream is offered to the app with as much as 1280×960 decision per digicam at 30FPS, with a acknowledged latency of 40-60 milliseconds. Which means it is not appropriate for monitoring fast-paced objects, reminiscent of customized controllers, nor for discerning effective options like small textual content.
Technically, at a base stage, there truly is not any particular Meta Quest Digicam Passthrough API. Builders do must request a Horizon OS particular Headset Cameras permission, however in any other case Quest’s passthrough digicam entry leverages Android’s current Camera2 API, extending it to return the headset pose through OpenXR, and the Camera2 API is what builders of customized engines, or supply code for Unreal or Godot, use for it. This additionally means the identical code ought to work on Google’s upcoming Android XR platform, set to debut in Samsung’s standalone headset, with solely the permission request being totally different.
For Unity, builders can simply entry the cameras by way of Unity’s WebCamTexture API, which is how they already entry cellphone, pill, and PC cameras and webcams within the engine. A limitation right here, nevertheless, is that Unity’s WebCamTexture API solely helps one digicam at a time, not each.
Walkthrough from Meta software program engineer Roberto Coviello.
builders can discover Quest passthrough digicam entry documentation right here: Unity / Native Android.
Meta has printed 5 official Unity samples on GitHub: CameraViewer, CameraToWorld, BrightnessEstimation, MultiObjectDectection, ShaderSample. Meta software program engineer Roberto Coviello has individually printed QuestCameraKit on GitHub, a group of 5 additional samples: Colour Picker, Object Detection, QR Code Monitoring, Frosted Glass Shader, and OpenAI Imaginative and prescient Mannequin.