xrdevrob/QuestCameraKit

QuestVisionKit is a collection of template and reference projects demonstrating how to use Meta Quest’s new Passthrough Camera API for advanced AR/VR vision, tracking, and shader effects.

What it solves

QuestCameraKit provides a set of Unity samples to help developers build mixed reality (MR) experiences on Meta Quest 3 and 3S that can interact with the physical environment using the device's cameras. It simplifies the implementation of computer vision tasks like object detection, QR tracking, and real-world color sampling within a VR/AR context.

How it works

The project leverages the Meta Passthrough Camera API and Unity's ecosystem to implement several vision-based workflows:

  • Object Detection: Uses the Unity Inference Engine to run a bundled YOLO model for real-time object identification and 3D marker placement.
  • QR Tracking: Integrates Meta's MR Utility Kit (MRUK) for native QR code detection and spatial payload reading.
  • Visual Analysis: Connects to OpenAI's API to send camera frames and transcribed voice queries for multimodal AI analysis.
  • Environmental Interaction: Uses environment raycasting to map 3D points in a room to specific camera pixels for color sampling.
  • Streaming: Implements WebRTC (via Unity WebRTC and SimpleWebRTC) to stream live camera video to external peers.
  • Visual Effects: Employs custom shaders for stereo camera mapping, frosted glass, and portal effects.

Who it’s for

Unity developers creating mixed reality applications for Meta Quest 3/3S who want to integrate computer vision, AI analysis, and real-time video streaming into their spatial experiences.

Highlights

  • YOLO Integration: Built-in support for running object detection models on-device.
  • Multimodal AI: Sample for combining image capture, voice-to-text, and LLM analysis via OpenAI.
  • Native QR Support: Seamless integration with Meta MRUK for spatial QR tracking.
  • WebRTC Streaming: Ready-to-use implementation for transmitting headset camera feeds to other devices.
  • Camera-Aware Shaders: Examples of how to apply visual effects directly to the passthrough camera feed.

Related

  • Project
  • Project
  • Project
  • Project
  • Project