Trying to import player animations from Github into Blender
8 replies, posted
After reading this - [URL]http://wiki.garrysmod.com/page/Player_Animations[/URL]
I saw there's a Github link containing all the player animations.
[URL]https://github.com/robotboy655/gmod-animations[/URL]
I extracted the example Kleiner from the zip file, and loaded it into Blender, I then tried importing a taunt animation -[B] taunt_dance.smd[/B].
And it just exploded Kleiner's bones in Blender, the animation would play, and you could sort of tell it was the dance animation, but it was demolished, with the bones all over the place.
It does the same with the swim animations, shoot animations, reload animations, and a few others.
I have no idea why it's doing this, but maybe someone experienced with Blender could help.
I'm going to guess it's because the actual animation file has absolute bone positions. When you import whatever_anm into your model, it converts the bone positions in the packed SMDs to relatively match your model's bone positions. That's why any playermodel in-game, no matter what their size or bone position can taunt normally.
Hmm. So they use absolute positions in any new animations? Such as reloading and shooting?
Is there anything I can do to fix this? Because when I import the animation without any models, the bones are fine, and the animation works normally.
Yeah; if you look in the SMD for reloading and shooting, you'll notice absolute x, y, z, and rotation positions for each bone per frame. And I'm not sure if there's a way to scale in Blender like that.
What were these animations made in? Maybe it's just Blender that's borking them up?
3DS Max most likely for the GMod ones since MaxofS2D made them, but I doubt Blender is screwing up
Here's a few screenshots to show what's happening.
Imported [B]swim_n.smd[/B] onto character skeleton.
[img_thumb]http://i.imgur.com/7rXUHRW.png[/img_thumb]
As you can see it's completely messed up.
Imported [B]swim_n.smd[/B] onto it's own skeleton.
[img_thumb]http://i.imgur.com/YfDHOeD.png[/img_thumb]
But on it's on skeleton it's just fine?
Hell, 4 years later and I'm facing the same problem. Did you ever fix this?
Import a Valve BiPed Rig to your model and assign etc...then you can load the animations appended to the rig and they will work perfectly!
I just spent a day working on this...you can get one from here do your crowbar decompile and the you can import the QC file and it will get you the skeleton as well as physics ( haven't tried the physics as yet)
https://files.facepunch.com/forum/upload/137945/ce866241-337d-4720-b830-86ed92f60f94/Capture 14.mpg
Sorry, you need to Log In to post a reply to this thread.