Motion matching vs. state machine in Godot, side by side. Same number of animations.
Which feels better?
You can now try both in your browser and tweak the settings!
https://t.co/pXb24PwWIu
#godotengine#gamedev#animation
@imatspace The gap is just how the animations are stored. The state machine bakes them at 30 Hz with key reduction, the MM build still uses the same clips at full rate (240 Hz). Next step is testing MM with the compressed clips and checking the feel holds up.
Motion matching vs. state machine in Godot, side by side. Same number of animations.
Which feels better?
You can now try both in your browser and tweak the settings!
https://t.co/pXb24PwWIu
#godotengine#gamedev#animation
@imatspace Measured it on my machine: motion matching is actually lighter, ~1.1 ms/frame vs ~2.1 ms for the state machine with 1 character, 9.3 vs 19.9 ms with 10. MM's search is C++, the state machine is GDScript. The real cost is the ~128 MB download on web.
@Trogdor645 Thanks! Good read. The state machine is cleaner because every transition is hand-tuned, but each new animation means more transitions to author. Motion matching just needs more data, so it will shine as I add more animations.
@Rolf_of_the_Son Thanks for watching so closely! Fair point: the state machine's transitions are hand-authored and tuned, motion matching picks them on its own and is still catching up.
@FossGod The motion matching is partly on the open-source godot-motion-matching by Guilherme Sousa: https://t.co/Gbfo3qEbmt
I'm still deciding how to share my version.
@Vnexus_3d Thanks! The motion matching side is inspired by the open-source godot-motion-matching by Guilherme Sousa, worth a look if you want to learn: https://t.co/Gbfo3qEbmt
I'm still deciding how to share my version.
@yukihermesdy@Ghost14LLW Yes! Mine is already a bit of both: a simple state layer says "starting, moving, stoppingโฆ", and motion matching picks the best animation inside that.
@HillDrift Thanks! The motion matching runs as a C++ extension, and getting that to run in the browser is the tricky part right now. The state machine versione is entirely in GDScript
@SuddleMercury Nice! With AI getting the basics working is quick now, the real work is in the small details and making the code readable. Would love to see yours ๐
@TienKnight Like @TheFinalRecord said: the IK doesn't touch the capsule, it moves the same with IK on and off. Only on stairs the IK shortens the stride a bit.