Getting Started with CloudXR.js#
Note
Complete setup guides, tutorials, and code samples are provided as part of the CloudXR.js Early Access Program artifacts on NGC. Refer to the CloudXR.js User Guide to join the program.
This guide provides a high-level workflow of building CloudXR.js streaming applications.
High-Level Workflow#
Building a CloudXR.js application involves three main steps:
Set up the Server: Install CloudXR Runtime with an OpenXR-compatible server application
Build the Client: Create a web client using CloudXR.js
Connect and Stream: Access your web app from a VR/AR headset or desktop browser
Before proceeding, review the CloudXR.js Requirements for server, client, and network requirements.
Server Setup#
You need CloudXR Runtime with an OpenXR compatible server application. Refer to Getting Started with CloudXR Runtime for detailed server setup instructions.
CloudXR Runtime supports various OpenXR applications including:
Isaac Lab - Robot learning and teleoperation workflows
LÖVR: Lightweight VR framework
Custom OpenXR Applications: Any OpenXR-compliant application
Important
Ensure CloudXR Runtime is configured with device profile set to auto-webrtc for web clients.
Client Setup#
In the early access program, CloudXR.js is distributed as an npm package tarball. Enter this command to install it:
npm install </path/to/cloudxr-js-npm-package-tarball>
We provide example projects to help you get started:
Simple WebGL Example: Minimal implementation using vanilla WebGL
React Three Fiber Example: Advanced example using React and Three.js
See Example Applications for available examples and Client Setup Guide for device configuration.
Connection Modes#
CloudXR.js supports two connection modes:
- HTTP Mode (Development)
Simplest setup - no proxy required
Direct WebSocket connection to CloudXR Runtime
Requires browser flags on Meta Quest 3
Not supported on Pico 4 Ultra
- HTTPS Mode (Production)
Works on all supported devices including Pico 4 Ultra
Requires WebSocket SSL proxy setup
Production-ready with TLS communication
See WebSocket Proxy Setup for WebSocket proxy setup and Network Setup for network configuration.
Next Steps#
Server Setup: Getting Started with CloudXR Runtime
Client Configuration: Client Setup Guide
Example Applications: Example Applications
Proxy Setup: WebSocket Proxy Setup
Network Configuration: Network Setup
For detailed setup instructions, tutorials, and troubleshooting guides, refer to the documentation included in the Early Access Program artifacts on NGC.