google/xrblocks
XR Blocks is a lightweight WebXR + AI library for rapidly prototyping advanced AI + XR experiences.
https://skillcdn.ai/gh/google/xrblocksConnect this address to your AI to use these skills. How to connect
- Unverified
- Default branch
main - Commit
f2d2cc8 - License
Apache-2.0 - Searchwords
Explore this repository
Searches the original text of skills and documents, and the translations of skills when you search in their language.
Folders
Documents
- Generative AIxb.ai provides bounded Gemini and OpenAI queries plus Gemini multipart input, image generation, and Live audio/video sessions. AI availability, credentials, network responses, and media streams are r…docs/docs/manual/AI.mdx
- Agent ContextThe context subsystem converts the live XR scene into compact data for agents and external automation. It can produce a semantic tree, visible-object state, and a Set-of-Mark image.docs/docs/manual/Context.mdx
- Core and InitializationXR Blocks runs one engine singleton. Application code imports the public module, registers scripts and scene objects, then calls xb.init(options) once.docs/docs/manual/Core.mdx
- Depth & OcclusionXR Blocks can read WebXR depth data, maintain a live environment mesh, project reticles onto reconstructed surfaces, occlude supported virtual content, and provide optional environment collision geom…docs/docs/manual/Depth.md
- Embodied Control (Addon)The embodied-control addon provides a programmatic user simulator for XR Blocks scenes. It can drive camera locomotion, left and right hand motion, hand poses, and WebXR-like select gestures through…docs/docs/manual/EmbodiedControl.mdx
- Hand GesturesXR Blocks gesture recognition is split into two explicit layers:docs/docs/manual/HandGestures.md
- Hand TrackingXR Blocks provides native support for WebXR Hand Tracking (inputs, joints, visualization, direct touch, and grabbing).docs/docs/manual/Hands.mdx
- Head GesturesXR Blocks recognizes completed head nods and shakes from the same camera pose used by WebXR and the desktop simulator. Head gestures do not require hand or controller tracking.docs/docs/manual/HeadGestures.md
- Input & ControllersThe Input object at xb.core.input provides access to controllers. Interaction callbacks include the resolved target, hit surface, and ray intersection.docs/docs/manual/Inputs.md
- IntegrationsXR Blocks is designed to be modular and lightweight. Many features are enabled only when specific optional dependencies are installed in your project. This approach allows you to keep your bundle siz…docs/docs/manual/Integrations.mdx
- Interaction & ManipulationXR Blocks uses one interaction pipeline for mouse, gaze, hand rays, tracked controllers, direct touch, reticles, built-in UI, and automatic manipulation. For each input source, the pipeline resolves…docs/docs/manual/Interaction.md
- Getting StartedXR Blocks is a lightweight, cross-platform library for rapidly prototyping advanced XR and AI experiences. Built upon three.js, it targets Chrome v136+ with WebXR support on Android XR (such as Samsu…docs/docs/manual/Intro.mdx
- Lipsync (Addon)The lipsync addon parses incoming audio streams (from a microphone or a remote peer) and maps frequency formants to real-time mouth shapes on a 3D avatar face.docs/docs/manual/Lipsync.mdx
- Migrating to v0.20.0XR Blocks now has one interaction pipeline and one built-in spatial UI system. This is a breaking migration. The SDK does not provide compatibility aliases for the removed UI, UIBlocks, reticle, drag…docs/docs/manual/Migrating-to-v0-20-0.md
- Model ViewerModelViewer loads and presents one glTF, GLB, or Gaussian splat model. It can also present an existing THREE.Object3D. The viewer normalizes origin, records local bounds, and supplies standard move,…docs/docs/manual/ModelViewer.md
- Netblocks (Addon)The netblocks addon enables real-time co-located multiplayer for your XR Blocks applications. It provides peer presence tracking, synchronized entity states, RPC events, and spatial voice channels.docs/docs/manual/Netblocks.mdx
- PhysicsXR Blocks runs Rapier in the engine lifecycle. The application supplies one compatible Rapier module before xb.init(). XR Blocks then creates and steps one xb.core.physics.blendedWorld.docs/docs/manual/Physics.md
- Placement ScriptsPlacement scripts keep an object in a useful spatial relationship after it is in the scene. They can keep a card near the viewer, make a label follow a moving object, face content toward the camera,…docs/docs/manual/Placement.md
- Project SetupThis guide walks through setting up an XR Blocks project for local development. You can get started immediately with zero build tooling using an import map, or install XR Blocks via npm to build with…docs/docs/manual/ProjectSetup.mdx
- Scripts.mdThe Script class facilitates development by providing useful life cycle functions similar to MonoBehaviors in Unity.docs/docs/manual/Scripts.md
- Desktop SimulatorThe simulator runs XR Blocks applications in a normal desktop browser. It uses the same scripts, targeting, selection, and world APIs as a real XR session. It does not emulate the browser WebXR API.docs/docs/manual/Simulator.mdx
- Spatial Audio & SpeechThe xb.sound (or xb.core.sound) manager handles audio capture, playback, positional spatial audio, and Web Speech API wrappers.docs/docs/manual/Sound.mdx
- Spatial UIXR Blocks includes one built-in spatial UI system. It provides flex layout, world-space cards, view-space overlays, text, images, icons, buttons, toggles, dropdowns, sliders, progress bars, themes, v…docs/docs/manual/UI.mdx
- WebGPUXR Blocks can render with THREE.WebGPURenderer as an alternative to WebGL. The same application code runs on either backend; the SDK selects the matching materials and passes (TSL on WebGPU, GLSL on…docs/docs/manual/WebGPU.mdx
- World Understandingxb.world exposes enabled physical-world evidence. Configure each branch before initialization, then convert fresh evidence into explicit application state. Every branch can be unsupported, warming up…docs/docs/manual/World.mdx
Skipped (8)
These manifests were not served. Fix them and push: the next commit is indexed again.
docs/docs/manual/Core.mdxlink_missing4 links name no file of the repository (/api/classes/Registry, /api/classes/ScreenshotSynthesizer, /api/classes/XREffects, ...)docs/docs/manual/Hands.mdxlink_missing2 links name no file of the repository (/api/classes/Options, /api/classes/Script)docs/docs/manual/Inputs.mdlink_missing3 links name no file of the repository (/api/classes/Input, /api/classes/MouseController, /api/classes/GazeController)docs/docs/manual/ModelViewer.mdlink_missing2 links name no file of the repository (/api/classes/ModelViewer, /samples/ModelViewer)docs/docs/manual/Placement.mdlink_missing5 links name no file of the repository (/api/classes/FollowHead, /api/classes/FollowObject, /api/classes/FaceCamera, ...)docs/docs/manual/Scripts.mdlink_missing2 links name no file of the repository (/api/classes/Script, /api/classes/Core)docs/docs/manual/Simulator.mdxlink_missinga link names no file of the repository (/api/classes/SimulatorOptions)docs/docs/manual/UI.mdxlink_missing3 links name no file of the repository (/api/classes/UICard, /api/classes/UIOverlay, /api/classes/UIPanel)