killfrenzy96 / KillFrenzyAvatarText

Avatar Text Shader and Animations designed to be used by OSC
MIT License
98 stars 3 forks source link

Breaks some shape keys #1

Closed 010Pain010 closed 2 years ago

010Pain010 commented 2 years ago

Uncertain as to why but every time I install the keyboard it scuffs out specific shape keys on the body mesh but not every shape key.

killfrenzy96 commented 2 years ago

At this time the KAT system is setup with write defaults disabled. Unfortunately, avatar creators will need to design their animators with write defaults off. The technical reason for this is to eliminate the need to copy parameters using the animator itself. This reduces the animator complexity greatly (by over 200x less animator transitions and animation states) which improves in-game performance significantly.

If VRChat developers implement a way to copy one parameter to another, I will create an option to have write defaults enabled. There is a VRChat canny for this very issue: https://vrchat.canny.io/open-beta/p/1167-fix-lag-by-simplifying-process-of-converting-int-to-float-and-copying-float

The solution for now is to design your avatar with write defaults off in mind. This means you need to reset your avatar's facial blend shapes by setting them back to 0 after a facial animation is complete. I have attached an example animator for facial expressions. FXLayer_WriteDefaultsOff_Example.zip

Also, there are some known quirks that can cause issues when designing an avatar with write defaults off. You use this checklist to avoid potential issues. https://github.com/lyuma/Av3Emulator/blob/master/Screenshots/write_defaults_off.png

killfrenzy96 commented 2 years ago

The new SDK has implemented the ability to copy parameters. A write defaults on version is now planned for implementation.