VRM Avatar — Point-to-Walk Companion Demo#239
VRM Avatar — Point-to-Walk Companion Demo#239Peter-Pater wants to merge 6 commits intogoogle:mainfrom
Conversation
|
Very neat! It's quite laggy on my device, but we can improve it later. Dancing.fbx seems unused? Do you know the license for the other two FBX files? |
|
The reticle also isn't showing on the depth mesh in this demo which is odd. |
|
Dancing.fbx is not used. The animations are from Mixamo, which allow for even commercial use, but I am not entirely familiar with the details. |
|
Okay, I looked more into the Maximo terms, and looks like they are against redistributing the raw files, and having them in public repos probably counts. So I can remove the files and add a note in the readme about how to download them? |
|
Having some instructions isn't ideal but we can go with that for now if it's the only option. Have you looked into how https://pixiv.github.io/three-vrm/packages/three-vrm/examples/humanoidAnimation/index.html works? Do they have it hosted on a CDN somewhere? |
|
I think this three-vrm example lets the user drop in a fdx animation file they download themselves instead of hosting in on a CDN. Maybe we can go with letting users download their own animation for now. I can find sometime to create animations myself (e.g., with mesh2motion) and update this demo in another iteration? |
|
Sgtm. Let me know when you want to merge the code. |
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:
GLTFLoader+VRMLoaderPlugin(direct, notxb.ModelViewer— see below)MIXAMO_VRM_RIG_MAPAnimationMixerxb.core.depth.depthMeshon device, falls back to y=0 ground plane in simulatorvrm.update(delta)Why not
xb.ModelViewer?VRMLoaderPluginmust be registered on theGLTFLoaderinstance before the load call.xb.ModelViewerhas no loader injection point, so direct loading is the only viable approach.Assets:
animations/Idle.fbxandanimations/Walking.fbx— free Mixamo downloads, included in repo