feat(demos/gnm): Added Google GNM demo of parametric avatars in XR Blocks. - #443
Merged
Conversation
…ocks. Demo: https://www.youtube.com/watch?v=bOFyFlFIcdU This adds an interactive XR Blocks demo of Google's Generative aNthropometric Model (GNM) v3.0, the parametric 3D statistical model of the human head that powers Android XR's Likeness. Features include: - **Full GNM forward function** ported to JavaScript (`GNMModel.js`), evaluating 17,821 vertices, 253 identity, and 383 expression PCA components with sub-millisecond updates. - **Live semantic sampling** ported to JavaScript (`SemanticSampler.js`) for sampling gender, ethnicity, and 20 expression classes (happy, surprise, pucker, etc.) entirely client-side. - **Synchronized UI** across the desktop DOM panel and XR spatial panels (`GNMSpatialUI.js`), allowing users to toggle expressions, gaze, animations, and material modes from within VR. - **Interaction and scene management** (`GNMControls.js`, `GNMScene.js`) featuring joint rotation sliders, gaze tracking, animation drivers, and inspection views (studio, clay, normals, wireframe, landmarks, and skeleton). - **Dynamic asset loading** of the int8-quantized model weights (`gnm_head_web.bin` and `gnm_samplers_web.bin`) from a CDN, keeping the repository lightweight.
dli7319
approved these changes
Jul 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
XRBlocks.GNM.Demo.mp4
This adds an interactive XR Blocks demo of Google's Generative aNthropometric Model (GNM) v3.0, the parametric 3D statistical model of the human head that powers Android XR's Likeness.
Features include:
GNMModel.js), evaluating 17,821 vertices, 253 identity, and 383 expression PCA components with sub-millisecond updates.SemanticSampler.js) for sampling gender, ethnicity, and 20 expression classes (happy, surprise, pucker, etc.) entirely client-side.GNMSpatialUI.js), allowing users to toggle expressions, gaze, animations, and material modes from within VR.GNMControls.js,GNMScene.js) featuring joint rotation sliders, gaze tracking, animation drivers, and inspection views (studio, clay, normals, wireframe, landmarks, and skeleton).gnm_head_web.binandgnm_samplers_web.bin) from a CDN, keeping the repository lightweight.