百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
D

Decart-XR

> 编程语言
开源

Quest 的首个真正的实时世界转换应用程序

182 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

Quest 的首个真正的实时世界转换应用程序

Quest's First RealTime World Transformation App

Built with ❤️ for the Quest developer community, we are introducing the First RealTime World Transformation for VR

️ Join our Discord • Visit Decart.ai • ⚡ API Platform • Technical Support

Developed by Decart AI, this Unity application demonstrates real-time AI-powered video transformation on Meta Quest 3 devices, enabling users to live inside AI-generated art with sub-200ms latency. Released as an open sourced project for researchers, developers, and the Quest community to explore the intersection of VR and AI.

✨ Features

  • Real-time Camera Capture - Direct access to Quest 3 passthrough cameras
  • Dual AI Models - Lucy-Restyle-2 (61 world transformations) and Lucy (15 person transformations) with unlimited custom voice descriptions
  • ⚡ Ultra-low Latency - ~150-200ms end-to-end processing time
  • WebRTC Streaming - Efficient VP8 video encoding at 30fps
  • VR-Optimized UI - Native Quest interface with live preview and processed video display

Quick Start

Decart AI Model Integration

This project showcases Decart's real-time video-to-video AI transformation system optimized for VR applications. The model processes live camera feeds at 30fps and 720p resolution, delivering consistent style transformations while maintaining temporal stability crucial for VR experiences.

Prerequisites

  • Hardware: Meta Quest 3 with Horizon OS v74+
  • Unity: Unity 6 (6000.0.34f1) with Android build support
  • Network: 8+ Mbps bidirectional internet connection

Installation

  1. Clone the Repository

    bash
    git clone https://github.com/DecartAI/Decart-XR.git
    cd Decart-XR/DecartAI-Quest-Unity
  2. Open in Unity

    • Launch Unity Hub
    • Add project from DecartAI-Quest-Unity/ folder
    • Open with Unity 6 (6000.0.34f1)
  3. Install Required Packages

    • Install packages via Package Manager (see Package Dependencies)
    • Import local packages (NativeWebSocket and SimpleWebRTC are included)
  4. Configure Project Settings

    • Follow Unity Project Configuration section below
  5. Load Main Scene

    DecartAI-Quest-Unity/Assets/Samples/DecartAI-Quest/DecartAI-Main.unity
  6. Build for Quest

    • Switch platform to Android (File → Build Settings → Android → Switch Platform)
    • Configure build settings for Quest 3
    • Open Edit → Project Settings → Meta XR and resolve configuration issues:
      • In Outstanding Issues: Fix all issues EXCEPT "Hand Tracking must be enabled in OVRManager when using its Building Block" and "When Using Passthrough Building Block as an underlay it's required to set the camera background to transparent" (keep these unfixed)
      • In Recommended Items: Fix all recommendations EXCEPT "Use Low Overhead Mode" and "Hand tracking support is set to 'Controllers Only', hand tracking will not work in this mode" (keep these unfixed)
    • Build and install APK to headset (File → Build Settings → Build)
  7. Launch & Enjoy

    • Grant camera permissions when prompted
    • Select AI model: Press A for Lucy-Restyle-2 (world transformations) or B for Lucy (person transformations)
    • Use A/B buttons to cycle through prompts or use your voice to create custom prompts by holding the Index Trigger button
    • See live transformation in real-time!

Voice Control Setup

Quick Setup:

  1. Create free wit.ai account → Create New App
  2. Go to Management → Settings → Copy Server & Client Access Tokens
  3. Paste tokens into Unity's customNLP asset → Hold Index Trigger and speak custom prompts!

Note: Wit.ai is used exclusively for voice-to-text conversion. No additional training or configuration of your Wit.ai app is required.

Package Dependencies

Install these packages via Unity Package Manager:

Required Unity Packages

  • Meta XR Core SDK - com.meta.xr.sdk.core - Quest platform support
  • XR Plug-in Management - com.unity.xr.management - XR system management
  • Oculus XR Plugin - com.unity.xr.oculus - Quest device support
  • Universal Render Pipeline - com.unity.render-pipelines.universal - URP rendering
  • Input System - com.unity.inputsystem - Modern input handling

Included Local Packages

  • NativeWebSocket - com.endel.nativewebsocket - WebSocket communication
  • SimpleWebRTC - com.firedragongamestudio.simplewebrtc - WebRTC integration

⚙️ Unity Project Configuration

XR Plugin Management Settings

Navigate to Edit → Project Settings → XR Plug-in Management → Oculus:

  • ✅ Initialize XR on Startup
  • ❌ Low Overhead Mode (GLES) - Must be DISABLED
  • ❌ Meta Quest: Occlusion - Must be DISABLED
  • ❌ Meta XR Subsampled Layout - Must be DISABLED (OpenXR)

Player Settings

Navigate to Edit → Project Settings → Player → Android Settings:

Graphics Settings

  • Graphics APIs: Vulkan or OpenGLES3
  • Color Space: Linear
  • Rendering Path: Forward

Configuration

  • Scripting Backend: IL2CPP
  • Api Compatibility Level: .NET Standard 2.1
  • Target Architectures: ARM64 ✅ (ARMv7 ❌)

Android Permissions

Add to Other Settings → Configuration:

  • ✅ Camera
  • Add custom permission: horizonos.permission.HEADSET_CAMERA

Scripting Define Symbols

In Other Settings → Script Compilation:

  • No additional symbols required for basic WebRTC functionality

Build Settings

  • Platform: Android
  • Texture Compression: ASTC
  • Development Build: Recommended for debugging

️ Architecture

Quest Camera → Unity WebRTC → Decart AI → Processed Video → Quest Display
     ↑              ↑              ↑            ↑              ↑
  Camera API    VP8 Encoding   Style AI    VP8 Decoding    UI Rendering
   Permissions   @30fps/4Mbps  ~50-100ms     Real-time      Real-time

Core Technologies

  • Decart AI - Advanced video-to-video neural networks
  • SimpleWebRTC - Unity WebRTC integration and video streaming
  • NativeWebSocket - Cross-platform WebSocket communication
  • Quest Passthrough Camera API - Native camera access on Quest 3
  • Android Camera2 API - Low-level camera control and configuration
  • WebSocket Signaling - Custom protocol for AI service communication

Documentation

For detailed technical documentation, see the Wiki

️ Development

Key Components

  • WebRTCController.cs - Main application controller and UI management
  • WebRTCConnection.cs - Unity WebRTC lifecycle, video streaming, and model selection
  • WebRTCManager.cs - Core WebRTC logic with dual AI prompt libraries (61 Lucy-Restyle-2 + 15 Lucy)
  • WebCamTextureManager.cs - Quest camera integration via Unity API
  • PassthroughCameraUtils.cs - Android Camera2 API integration
  • PassthroughCameraPermissions.cs - Runtime permission management

Build Configuration

Platform: Android
Target: Quest 3
API Level: Minimum 29, Target 34+
Architecture: ARM64
Scripting Backend: IL2CPP

Performance Specifications

  • Resolution: 1280×720 @ 30fps
  • Codec: VP8 with adaptive bitrate (1-4 Mbps)
  • Latency: ~150-200ms end-to-end
  • Battery: ~2 hours continuous use
  • Memory: ~50MB additional usage

Troubleshooting

Common Issues

Camera not working?

  • Ensure Quest 3/3S with Horizon OS v74+
  • Grant camera permissions in Quest settings
  • Check adequate lighting and clean camera lenses

No AI processing?

  • Verify 8+ Mbps internet connection
  • Wait 5-10 seconds for initial processing
  • Try different network if connection fails
  • reopen the app

Performance issues?

  • Use 5GHz WiFi with strong signal
  • Allow device to cool if overheating
  • Close other bandwidth-intensive apps

Dependencies & Third-Party Licenses

This project incorporates several open source components and proprietary SDKs. We gratefully acknowledge the following:

Unity & Rendering Dependencies

  • Meta XR SDK - Quest development SDK (Meta License)
  • Universal Render Pipeline - URP rendering (Unity License)

Open Source Foundation Components

  • QuestCameraKit by @xrdevrob (MIT License)
  • SimpleWebRTC by Fire Dragon Game Studio (MIT License)
  • NativeWebSocket by @endel (MIT License)
  • Meta Voice SDK (Meta License)
  • Decart AI (Proprietary Service)

License Compatibility

All open source components are compatible with MIT licensing. The Meta SDKs are used under their respective developer agreements. This project respects all original licenses and attributions.

Full license texts and detailed attributions can be found in the individual component directories within this repository.

Special Thanks

Special thanks to @xrdevrob for creating QuestCameraKit, which provided the foundational camera access implementation that made this project possible.

Contributing

We welcome contributions to advance VR AI research! Key areas include performance optimization, platform support, and enhanced user experiences. See our wiki for detailed contribution guidelines.

License

This project is available under MIT License.

The Decart AI service has its own terms of service. Quest development requires Meta's developer agreements.

⚠️ Disclaimer

This is an experimental project demonstrating real-time AI video processing capabilities. Performance may vary based on network conditions, device temperature, and AI service availability.

The AI processing service is provided by Decart and subject to their terms of service and availability.

Contact

For research collaboration, questions, or technical support:

Technical Support: [email protected] Discord Community: https://discord.gg/decart Main Website: https://decart.ai API Platform: https://platform.decart.ai

For general inquiries about this open source project, please use GitHub Issues.


Built with ❤️ for the Quest developer community. Powered by Decart AI technology.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言