Replies: 1 comment
-
Attaching/detaching skin works fine with same skeletons. But some models have a part of this skeleton. For example, gloves with arm or shoes with leg. And asset skin doesn't have all joins of avatar and attched mesh have artifacts when avatar play animations. Using the getJointsAt(@IntRange(from = 0) int skinIndex) method, I can map the avatar's join to an asset join. But what 's next ? I didn't find the attach this sort of mesh method. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to use the FilamentAsset instance attachSkin method? I'm loading an avatar with glasses and new glasses.
Then trying to swich glasses.
` if (isAvatar) {
avatarAsset = modelViewer.asset!!
val oldGlasses = avatarAsset.getFirstEntityByName("Wolf3D_Glasses")
avatarAsset.instance.detachSkin(77, oldGlasses)
} else {
val glassesAsset = modelViewer.asset!!
Beta Was this translation helpful? Give feedback.
All reactions