-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup unity skeletons for inverse kinematics #49
Comments
Animations for sims work too, but without the IK they look a little whacky. Notice how straight the arms are here: Drowning.webm |
As of becb981 we now have good foot IK. The boxes are supposed to be the goal-IK positions from the animation DrowningWithIK.webmand StairWalkUpWithFullik.webmThe arm IK still needs work, it seems to be a little more complicated. They appear to use a 1 float channel, this is the |
Punching.webmArm IK seems to be working now! Turns out We still have to handle |
Getting close now, I added a little animation viewer to the AnimationsDemo.webm |
even with the wonky rotations this is still insanely impressive. can definitely see some of that wonkiness in the arms and legs there but overall it's really coming together |
The next issue seems to be related to the For reference this is the original animation in game: InGameBenchPressWithAnimationDebug.webmThis is what it looks like in unity if we just use the raw data: RawUnityBenchPress.webmThe way to make it look kinda normal is to set the UnityBenchPressKindaWorking.webm |
Welp that was a stupid bug. Turns out the order of rotations when converting from euler rotations in sims2 is different from unity. Now a lot more animations play properly with 380b83a UnityBenchPressWorking.webm |
Just documenting this here but LazyDuchess pointed out that face blends seem to also be working, they're just hard to see without any texture: uqYtnPj.mp4Next up is head look-at IK and then all this code should be moved to an animation controller so different animations can be blended but this is basically done. |
We have basic animations from the game now!
ReclinerFixed.webm
These currently only work on bones and morphs (also I'm using the bone names instead of the bone CRC32) but this will not work for things like the Sims animations, those use a chain of inverse kinematics and basically only encode hand movements and such. This also applies to some more complicated objects like the cowplant with it's 17 neck bones.
The text was updated successfully, but these errors were encountered: