본문으로 건너뛰기
cccskills
무료GitHub에 공개

webxr-ar-vr-expert

Expert guide for WebXR spatial computing, Web-based Virtual Reality (VR), Mixed Reality (MR), and Augmented Reality (AR) using Babylon.js and Three.js. Covers Apple Vision Pro, Meta Quest 3, hand tracking, and hit-testing / Panduan ahli WebXR spatial computing (VR/AR/MR).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md6.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

WebXR Spatial Computing Expert (VR, AR & MR)

English | Bahasa Indonesia


<a name="english"></a>

English

Orchestration & Integration

Connects and orchestrates with relevant domain skills:

  • web-3d-graphics-expert — WebGPU/WebGL 3D scene rendering, lighting, and model optimization.
  • web-game-engine-expert — Spatial physics, grabbing interactions, and fixed-timestep motion.
  • apple-ecosystem-expert — Apple Vision Pro visionOS Safari WebXR features and spatial guidelines.
  • glsl-shader-expert — Passthrough blending and spatial holographic shaders.
  • performance-web-vitals — Maintaining rock-solid 72/90/120 FPS to prevent simulator sickness.

Description

Production-grade guidance for architecting immersive Virtual Reality (VR), Mixed Reality (MR), and Augmented Reality (AR) in the browser via the WebXR Device API. Covers modern head-mounted displays (Meta Quest 3/3S, Apple Vision Pro) and mobile AR, focusing on Babylon.js and Three.js with @react-three/xr.

Trigger Conditions

Activate this skill when the user is:

  • Developing spatial computing web applications or immersive web experiences.
  • Setting up WebXR sessions (immersive-vr, immersive-ar).
  • Implementing Hand Tracking (joint poses, pinch gestures) or spatial controller interactions.
  • Adding Mixed Reality passthrough or depth sensing.
  • Implementing AR Hit-Testing to snap 3D models onto real-world planes (floors, walls, tabletops).
  • Optimizing XR framerates (fixed foveated rendering) to eliminate motion sickness.

Key Capabilities & Headset Targets (2026)

Target PlatformSession ModeKey Features
Meta Quest 3 / 3Simmersive-vr, immersive-arFull-color stereo passthrough, high-precision hand tracking, fixed foveation levels 0-3.
Apple Vision Pro (visionOS)immersive-vr, immersive-arEye-gaze + pinch interaction, 90/120Hz display refresh, strict privacy hand tracking.
Mobile AR (Android / iOS WebKit)immersive-arSurface hit-testing, ambient light estimation, instant plane detection.

1. Babylon.js WebXR Setup (Gold Standard)

Babylon.js provides the most comprehensive out-of-the-box WebXR implementation with integrated teleportation, controller profiles, and physics:

import { Scene, WebXRExperienceHelper, WebXRFeatureName } from '@babylonjs/core';

export async function initBabylonXR(scene: Scene) {
  const xr = await scene.createDefaultXRExperienceAsync({
    uiOptions: {
      sessionMode: 'immersive-ar', // Fallback to 'immersive-vr' if AR is unsupported
      referenceSpaceType: 'local-floor'
    },
    optionalFeatures: ['hit-test', 'hand-tracking', 'anchors', 'plane-detection']
  });

  // Enable Fixed Foveated Rendering to reclaim 20-30% GPU performance on Quest
  const foveation = xr.baseExperience.featuresManager.enableFeature(
    WebXRFeatureName.FOVEATION,
    'latest',
    { foveationLevel: 2 }
  );

  // Listen for Hand Tracking
  const handTracking = xr.baseExperience.featuresManager.enableFeature(
    WebXRFeatureName.HAND_TRACKING,
    'latest',
    { xrInput: xr.input }
  );

  return xr;
}

2. React Three Fiber Setup (@react-three/xr)

import { Canvas } from '@react-three/fiber';
import { XR, createXRStore, Hands, Controllers } from '@react-three/xr';

const store = createXRStore({
  foveation: 1,
  handTracking: true
});

export function SpatialApp() {
  return (
    <>
      <button className="xr-btn" onClick={() => store.enterAR()}>
        Enter Mixed Reality
      </button>
      <Canvas>
        <XR store={store}>
          <ambientLight intensity={0.8} />
          <directionalLight position={[5, 10, 5]} />
          <Controllers />
          <Hands />
          {/* Spatial 3D Objects */}
          <mesh position={[0, 1.2, -1]}>
            <boxGeometry args={[0.3, 0.3, 0.3]} />
            <meshStandardMaterial color="royalblue" />
          </mesh>
        </XR>
      </Canvas>
    </>
  );
}

Best Practices for Spatial Performance

  1. Rock-Solid Framerates: VR requires stable 72, 90, or 120 FPS. Any frame drop causes instant vestibular nausea.
  2. Fixed Foveated Rendering (FFR): Reduces fragment shader resolution in the user's peripheral vision, freeing substantial GPU overhead.
  3. No 2D DOM Overlays in VR: Standard HTML elements cannot render inside an immersive session. Render spatial 3D UI panels using world-space 3D meshes or canvas textures.

<a name="bahasa-indonesia"></a>

Bahasa Indonesia

Integrasi Orkestrasi

Terhubung dan mengorkestrasi skill domain yang relevan:

  • web-3d-graphics-expert — Rendering scene 3D WebGPU/WebGL, pencahayaan, dan optimasi model.
  • web-game-engine-expert — Fisika spasial, interaksi menggenggam objek, dan pergerakan fixed-timestep.
  • apple-ecosystem-expert — Fitur WebXR Safari di Apple Vision Pro visionOS dan pedoman spasial.
  • glsl-shader-expert — Shader hologram dan blending passthrough AR.
  • performance-web-vitals — Menjaga kestabilan 72/90/120 FPS demi mencegah motion sickness.

Deskripsi

Panduan produksi untuk membangun aplikasi spasial imersif Virtual Reality (VR), Mixed Reality (MR), dan Augmented Reality (AR) di browser melalui WebXR Device API. Mencakup headset modern (Meta Quest 3/3S, Apple Vision Pro) serta perangkat mobile AR.

Kondisi Pemicu

Aktifkan skill ini ketika pengguna:

  • Mengembangkan aplikasi web Spatial Computing (VR/AR/MR).
  • Menginisialisasi sesi WebXR (immersive-vr, immersive-ar).
  • Mengimplementasikan Hand Tracking (pelacakan sendi tangan, gerakan cubit/pinch) atau kontroler spasial.
  • Mengaktifkan Passthrough warna Mixed Reality.
  • Menggunakan AR Hit-Testing untuk menempatkan objek 3D di lantai atau meja fisik.
  • Mengoptimalkan performa VR dengan Fixed Foveated Rendering (FFR).

Panduan Inti Pengembangan Spasial

  1. Stabilitas Frame Rate Mutlak:
    • Targetkan 72–90 FPS tanpa toleransi stutter. Pada kacamata VR, keterlambatan frame (latency hitch) langsung memicu rasa mual (motion sickness).
  2. Fixed Foveated Rendering (FFR):
    • Aktifkan fitur foveation pada Meta Quest untuk menurunkan resolusi tepi lensa (periferi mata), menghemat 20-30% daya GPU.
  3. Antarmuka 3D Spasial (Bukan HTML DOM):
    • Elemen HTML standar tidak dapat ditampilkan di dalam sesi imersif. Buat UI berupa panel 3D melayang (world-space meshes).
  4. Hit-Testing untuk AR:
    • Manfaatkan Hit-Test API bawaan WebXR untuk mendeteksi bidang nyata permukaan meja atau lantai secara instan sebelum meletakkan objek 3D.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Expert guide for automated and manual Web Accessibility (a11y) testing — axe-core, Pa11y, Playwright a11y, screen reader testing, and WCAG 2.2 Level AA/AAA compliance / Panduan ahli pengujian aksesibilitas web.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug1102026년 10월 21일 업데이트

Expert guide for intelligent model cascading and routing — complexity-scored task routing from Flash/Haiku to Sonnet/Opus/Astra, dynamic escalation with quality gates, 40-60% token cost reduction while maintaining output quality / Panduan ahli untuk kaskade dan routing model cerdas — routing tugas berbasis skor kompleksitas dari Flash/Haiku ke Sonnet/Opus/Astra, eskalasi dinamis dengan gerbang kualitas, pengurangan biaya token 40-60% dengan kualitas output terjaga.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug1102026년 10월 21일 업데이트

Expert guide for Affective Computing, emotional AI, and real-time sentiment analysis through native multimodal tokens (voice intonation and facial micro-expressions) / Panduan ahli komputasi afektif, AI emosional, dan analisis sentimen real-time melalui token multimodal native.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug1102026년 10월 21일 업데이트

Expert guide for AI-assisted coding workflows — agentic code generation, multi-agent code swarms, self-healing CI/CD, automated PR review, spec-to-code pipelines, codebase knowledge graphs, and human-in-the-loop approval gates / Panduan ahli untuk workflow pengkodean berbasis AI — generasi kode agentic, code swarm multi-agen, CI/CD self-healing, review PR otomatis, pipeline spec-to-code, knowledge graph codebase, dan gate persetujuan human-in-the-loop.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug1102026년 10월 21일 업데이트

Expert guide for autonomous Machine-to-Machine (M2M) agent settlement, dual-rail fiat & stablecoin micro-clearing, dynamic budget envelopes, and cryptographic agent invoicing / Panduan ahli settlement otonom antar-agen (M2M), kliring mikro dual-rail fiat & stablecoin, pagu anggaran dinamis, dan penagihan agen kriptografis.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug1102026년 10월 21일 업데이트

Expert guide for long-term episodic memory integration (Mem0 v2, Letta/MemGPT, Zep v2), memory tier architecture, pgvector HNSW storage, and unified context management for autonomous AI agents / Panduan ahli untuk integrasi memori episodik jangka panjang (Mem0 v2, Letta/MemGPT, Zep v2), arsitektur tier memori, penyimpanan pgvector HNSW, dan manajemen konteks terpadu untuk agen AI otonom.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug1102026년 10월 21일 업데이트

roedyrustam의 스킬 모두 보기

이 스킬의 문제 신고