Skip to content

VRM Avatar — Point-to-Walk Companion Demo#239

Open
Peter-Pater wants to merge 4 commits intogoogle:mainfrom
Peter-Pater:vrm-demo
Open

VRM Avatar — Point-to-Walk Companion Demo#239
Peter-Pater wants to merge 4 commits intogoogle:mainfrom
Peter-Pater:vrm-demo

Conversation

@Peter-Pater
Copy link
Copy Markdown

VRM Avatar — Point-to-Walk Companion Demo

Adds a working VRM avatar demo to demos/vrm-avatar/ using @pixiv/three-vrm. Click or pinch a floor location and the avatar walks there, then returns to idle.

What's included:

  • VRM loading via GLTFLoader + VRMLoaderPlugin (direct, not xb.ModelViewer — see below)
  • Mixamo FBX animation retargeting onto the VRM humanoid skeleton with full MIXAMO_VRM_RIG_MAP
  • Idle/walk crossfade via AnimationMixer
  • Procedural eye blink via VRM expression manager
  • Point-to-walk: raycasts against xb.core.depth.depthMesh on device, falls back to y=0 ground plane in simulator
  • Spring bone physics active via vrm.update(delta)
  • Works in the XRBlocks desktop simulator and WebXR

Why not xb.ModelViewer?
VRMLoaderPlugin must be registered on the GLTFLoader instance before the load call. xb.ModelViewer has no loader injection point, so direct loading is the only viable approach.

Assets:

  • VRM model loaded from jsDelivr CDN (three-vrm sample model, no local file)
  • animations/Idle.fbx and animations/Walking.fbx — free Mixamo downloads, included in repo

@dli7319 dli7319 self-requested a review April 3, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant