webaverse / app

Web metaverse client
https://app.webaverse.com
MIT License
344 stars 207 forks source link

App: avatar foot offset #774

Open avaer opened 3 years ago

avaer commented 3 years ago

foot

Due to bones ending before the geometry for avatars, avatar feet often sink into the floor:

We might need to improve the heuristics here.

Vianvolaeus commented 2 years ago

This behaviour is happening with both the default avatar / Miku, but is also offset in the other direction with the Tubbycats model (floating).

I've checked origins / rigging / VRM humanoid defs on it and it is done completely correctly and as expected (great work by Dream as always), so I'm lead to believe there's something up with however this is calculated in engine.

image

avaer commented 2 years ago

Is the avatar less than about 50cm tall? We have a hard limit that an avatar must be 0.3m fatness, plus some padding, so all avatars must be about 0.5m tall to have a correct character capsule.

Vianvolaeus commented 2 years ago

It's about 1M tall and half a meter wide.

image

Vianvolaeus commented 2 years ago

Is the capsule generated from mesh dimensions or armature dimensions? World origin to head bone origin is 0.46m (chunky head)

image

Vianvolaeus commented 2 years ago

image image