/vr-ar-development:xr-rendering-input-and-spatial-understandingfrom vr-ar-development
Guides building XR rendering pipelines (stereo, foveated, reprojection), input/interaction (controllers, hand tracking, locomotion), and AR spatial understanding (plane detection, meshing, anchors, occlusion).
Ships in vr-ar-development. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Part 2 of 5 of the VR and AR Development reference (plugin
vr-ar-development), covering §4–§6. Sibling skills:xr-perceptual-constraints-displays-and-tracking(§0–§3),xr-platforms-audio-and-comfort(§7–§9),xr-ux-design-and-performance-budgeting(§10–§11),xr-reference(§12–§17). Section numbers are shared across the set; a reference written as §N →skillpoints into that sibling skill.Currency: The perceptual constraints are human physiology and permanent; the platform and hardware landscape moves fast. See §14 →
xr-referencefor the current picture.
Scope. Assumes a graphics reference for the rendering fundamentals (rasterization, PBR, the rendering equation) and a computer-vision reference for SLAM and multi-view geometry. This is the XR-specific layer built on top of both.
⚠️ GOTCHA boxes mark what makes users physically ill or breaks presence.
The three facts that make XR its own discipline:
- ⚠️ You are rendering to a nervous system, not a screen. The frame budget is set by human perception, and missing it doesn't drop quality — it makes people nauseated (§1 →
xr-perceptual-constraints-displays-and-tracking). No other software has this property.- ⚠️ Latency is the master constraint and it is not a performance metric. Motion-to- photon under ~20 ms is the consensus threshold, and it governs your entire architecture (§1.1 →
xr-perceptual-constraints-displays-and-tracking).- ⚠️ Presence is fragile and asymmetric. It takes sustained correctness to build and one bad frame, one wrong-scale object, one mistracked hand to destroy. Everything in §9 →
xr-platforms-audio-and-comfortand §10 →xr-ux-design-and-performance-budgetingis about protecting it.
Two views with an eye offset (the IPD), each with its own asymmetric projection matrix — ⚠️ the frustums are off-axis, not simply translated, and getting that wrong produces subtle depth discomfort that's hard to diagnose.
⚠️ Do not naively render everything twice. The optimizations:
⚠️ This is the mechanism that makes XR tolerable and it deserves to be understood.
⚠️ GOTCHA — reprojection is a safety net, not a performance budget. It is designed for the occasional missed frame. ⚠️ Shipping a title that relies on ASW to hit its target frame rate produces a permanently artifacted experience, and on some platforms it will fail certification. Hit native frame rate; let reprojection catch the outliers.
Render at full resolution where the user is looking and lower resolution in the periphery — ⚠️ justified because human acuity falls sharply with eccentricity.
xr-perceptual-constraints-displays-and-tracking (42–91 ms tolerable, far looser than head MTP).⚠️ MSAA is preferred over TAA in XR — TAA's ghosting and blur are far more objectionable
in a stereo, head-tracked display than on a monitor, and ⚠️ temporal artifacts break
presence.
Forward rendering is often preferred over deferred, because MSAA works with it and
bandwidth is precious on mobile chips.
⚠️ Mobile XR is tile-based deferred rendering (TBDR) — which means avoid
mid-frame render target switches, avoid reading back, and keep the tile resident.
Resolution: render target is typically 1.2–1.4× display resolution to survive
distortion resampling (§2 → xr-perceptual-constraints-displays-and-tracking).
Controllers — ⚠️ still the most precise and lowest-fatigue input, with haptics and unambiguous button state. Don't dismiss them.
Hand tracking — ⚠️ natural and requires no hardware, and it is genuinely worse for precision work: no haptic feedback, occlusion when hands overlap or leave the camera frustum, and fatigue (§5.3). Pinch is the reliable gesture; complex gestures are not.
Eye tracking — foveated rendering (§4.3), gaze-based selection (⚠️ "gaze and pinch" is visionOS's core interaction and it works well), social presence via avatar eyes, and analytics. ⚠️ Eye data is biometric and privacy-sensitive — treat it accordingly.
Others: voice, body/face tracking, haptic gloves and vests, treadmills, and passthrough-based real-world input.
Holding arms extended is exhausting within minutes. Design for hands resting near the body: ⚠️ short pinch gestures over big arm movements, interaction targets below eye level and within a comfortable cone, and no sustained holding. visionOS's gaze-targets-and-hand-confirms model exists precisely to avoid this, and it's worth copying regardless of platform.
| Method | Comfort | ⚠️ Notes |
|---|---|---|
| Room-scale physical | ⚠️ Best | No conflict at all; limited by play space |
| Teleport | ⚠️ Very high | No optic flow; breaks immersion, and that's an acceptable trade |
| Dash / blink | High | Very fast movement reads as instant |
| Smooth locomotion + vignette | Moderate | ⚠️ Offer, don't impose; always with comfort options |
| Smooth locomotion, no mitigation | ⚠️ Worst | Common cause of first-session nausea |
| Snap turn | High | ⚠️ Avoid smooth turning — rotation is worse than translation |
| Redirected walking | High | Needs a large tracked space |
⚠️ Rotation is more nauseating than translation, and yaw is the worst axis. Snap turn should be the default and smooth turn opt-in.
Anchors — ⚠️ a pose the system continuously refines as its map improves. Attach content to an anchor rather than to world coordinates, because ⚠️ the world origin drifts as SLAM refines; anchored content stays put relative to the real world and unanchored content visibly slides.
Plane detection (horizontal/vertical), mesh reconstruction (⚠️ scene meshing gives you physics and occlusion geometry), semantic scene understanding (this is a wall / a table / a floor), image and object tracking, and hit testing against detected geometry.
⚠️ Occlusion is the hardest and most important AR correctness problem. Without it,
virtual objects float in front of everything and the illusion never forms. Approaches:
depth from a sensor or stereo, reconstructed mesh, and learned monocular depth —
⚠️ and note §2 → xr-perceptual-constraints-displays-and-tracking: on optical see-through hardware, true occlusion of the real world is
physically impossible because you can only add light.
Lighting estimation — match virtual lighting to the real environment (ambient intensity, colour temperature, dominant direction, environment probe). ⚠️ A correctly lit and shadowed object at the wrong scale still looks wrong; a mediocre model with a correct contact shadow looks glued down. Contact shadows are the highest-leverage AR rendering feature.
⚠️ Persistence and sharing: cloud anchors and shared coordinate frames for multi-user AR, and localization against a saved map. ⚠️ Relocalization is fragile under changed lighting and rearranged furniture — design for it failing.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub the-vibey-project/vibey --plugin vr-ar-development5 skills in this plugin
/xr-perceptual-constraints-displays-and-trackingUse when reasoning about why an XR experience feels wrong: motion-to-photon latency and its budget, cybersickness and what actually causes it, the vergence-accommodation conflict, and presence; displays and optics including panels, lenses, field of view and distortion correction; and tracking — inside-out and outside-in, degrees of freedom, drift and prediction. Includes the router for the whole vr-ar-development reference./xr-platforms-audio-and-comfortUse when targeting real devices and real users: platforms and APIs including OpenXR and WebXR and the engine integrations, spatial audio with HRTFs, room modelling and why audio carries more presence than expected, and comfort, safety and accessibility including guardian systems, session length, and designing for seated, standing and mobility-limited users./xr-referenceUse when checking an XR anti-pattern, looking up a latency, frame rate, field-of-view or resolution number, checking the platform landscape (the three-platform picture and the OpenXR and WebXR position, verified August 2026), finding resources, or needing a picker and a ship checklist. Companion to the other vr-ar-development skills.