implementing-spatial-xr

Integrate VR and AR modes into spatial platforms using WebXR, @react-three/xr, and Three.js.

Updated Jan 19, 2026
One-click install
npx skills add https://github.com/hkcm91/StickerNestV4 --skill implementing-spatial-xr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: implementing-spatial-xr
Source: https://github.com/hkcm91/StickerNestV4/tree/main/.claude/skills/implementing-spatial-xr
Command: npx skills add https://github.com/hkcm91/StickerNestV4 --skill implementing-spatial-xr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires three, @react-three/fiber, @react-three/xr, @react-three/drei, and includes scripts (resource) and references (resource) and examples (resource) components.

What problem does it solve?

This Skill enables the integration of immersive Virtual Reality (VR) and Augmented Reality (AR) experiences into your application, allowing users to interact with digital content in a spatial environment.

Core Features & Use Cases

  • VR/AR Mode Integration: Seamlessly switch between desktop, VR, and AR rendering modes within a single application.
  • WebXR Support: Leverages @react-three/xr for robust WebXR implementation, including controller and hand tracking.
  • Spatial Understanding: Utilizes plane and mesh detection for AR environments, enabling realistic object placement and occlusion.
  • Use Case: A user can switch from a standard desktop view of a 3D model to a VR mode to inspect it immersively, or use AR to place virtual furniture in their real-world room.

Quick Start

Use the implementing-spatial-xr skill to enter VR mode.

Frequently Asked Questions about implementing-spatial-xr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add WebXR VR and AR modes to my React Three Fiber app?

To add WebXR VR and AR modes to your React Three Fiber app, you can integrate @react-three/xr with Three.js. This enables seamless switching between desktop, VR, and AR rendering while supporting controller and hand tracking.

Does @react-three/xr support plane detection for AR object placement?

Yes, @react-three/xr supports plane detection and hit testing for AR environments. This enables realistic virtual object placement by allowing your application to detect real-world surfaces and utilize spatial anchors.

What's the best way to build a cross-platform spatial computing interface?

Building a cross-platform spatial computing interface is best achieved using WebXR with @react-three/xr, which adapts to user environments and input methods across desktop, VR, and AR within a single application.

How does mesh detection work for AR occlusion in Three.js?

Mesh detection for AR occlusion in Three.js works by scanning the physical environment to generate geometric meshes, allowing virtual objects to be occluded realistically by real-world structures and enhancing immersive spatial understanding.

Can I use intent-based input with WebXR controller tracking?

Yes, you can use intent-based input alongside WebXR controller and hand tracking. This approach allows your spatial application to interpret user interactions and adapt the interface based on the active input method.

What are the limitations of using WebXR for spatial anchors?

WebXR spatial anchors depend heavily on the underlying device's capabilities for plane and mesh detection. If a device lacks environmental understanding hardware, anchor persistence and accurate occlusion may function poorly or fail.