Advanced-Movement-System-Godot icon indicating copy to clipboard operation
Advanced-Movement-System-Godot copied to clipboard

Pose warping/Distance matching

Open ywmaa opened this issue 3 years ago • 6 comments

  • [x] Stop Animation
  • [x] Orientation warping (changing character direction without animation)
  • [x] slope warping (change the position of feet on slopes
  • [x] stride warping (change the pace of the stride to match the actual speed)

Example : https://youtu.be/9WbetBtZe4Q

What is Distance Matching : https://youtu.be/XngF1aNrpNQ Longer Video on how Epic Games developed it: https://youtu.be/YlKA22Hzerk?si=sj-tF3H0eN1JPEbp

Edit : Main systems are done and working, now time for polishing the system :

  • [x] Orientation warping fix.
  • [x] Adjust feet rotation in Slope warping.
  • [x] Generalize the pose warping functions (expose bone names).
  • [ ] fix Idle and Air state issues.
  • [x] rotate in place with feet locking.

ywmaa avatar Dec 29 '21 15:12 ywmaa

Update : I am going to split Distance matching functions in an standalone addon so it can be used alone in Godot asset lib, and it will be used here in AMSG (Advanced Movement System Godot).

ywmaa avatar Mar 05 '22 02:03 ywmaa

  • [x] Stop Animation
  • [x] Orientation warping (changing character direction without animation)
  • [ ] slope warping (change the position of feet on slopes
  • [ ] stride warping (change the pace of the stride to match the actual speed)

ywmaa avatar Jun 03 '22 23:06 ywmaa

I can't finish these feature until godot 4 gets a proper IK system, at least for legs, even better a full body IK system.

but the base for stride warping is there, slope warping is easy to do, but it needs IK setup.

ywmaa avatar Jul 24 '22 17:07 ywmaa

News : I have decided to continue work on it, as now SkeletonIK 3D may work for me.

If it turns out SkeletonIK3D isn't enough, I will use the FABRIK algorithm example in the Godot Engine myself, though I don't know if its performance will be good or not since it is done in GD script.

This is the FABRIK algorithm I mean : https://github.com/godotengine/godot-demo-projects/tree/master/3d/ik/addons/sade

Edit : typo

ywmaa avatar Sep 23 '23 14:09 ywmaa

Also the whole thing is going to be done as One Node

To make setting this up very easy for any type of skeleton or player movement script

ywmaa avatar Sep 23 '23 16:09 ywmaa

If someone is following this issue, I am getting results, and expect a new update video soon!

I am shooting high to the moon and saying I am almost close to achieve the AAA Movement look.

ywmaa avatar Jan 11 '24 00:01 ywmaa

Latest videos:

Pose Warping: https://youtu.be/u_ZPtSiRvK4?si=uC0QAkxlb7ruMh5q

Test in game: https://youtu.be/PU5xmp3-9Dw?si=dq6Idv0Ft6vJ_L0u

ywmaa avatar Jan 24 '24 20:01 ywmaa