Jump to content

Question: How to correctly import rigged mesh with animation in Source?

Recommended Posts

So I've been trying to correctly import a custom animated mesh into source, in and out for a few weeks now...

I've looked through countless guides, wiki pages, tutorials etc. and I could not get the animation to look correct in Source :(. I hope some of you wizards can help me out here!


Let me illustrate what's going on. I made this rigged animation in 3ds max:


the scene setup looks like this:


When I export it to fbx, I have these flags checked:


Here's what the animation looks like in Blender:


Still good! Now here's my setup for the Source Engine Export plugin:


I scale the flag to a specific size before exporting, because I need 2 versions of the flag in my map - a small and a large one. Then I hit "Export".

Here's what my .QC file looks like:

$modelname "de_opal/greekflag.mdl"
$model "body" "greekflag.smd"
//$root "root"

$cdmaterials "models/de_opal/"
$surfaceprop "greekflag"

$sequence "greekflag_05" "anims/Armature_greekflag_05_BaseLayer.smd"


I then drag the .qc file over studiomdl.bat, and open Hammer to see what it looks like:


Notice how rough the movement is, and how "jagged" the vertices are. It looks horrible!

(and it looks just as bad in H-L Model Viewer)


Here's a few thing I tried so far, off the top of my head:

  • In Blender, set "Legacy Rotation" in Source Engine Export plugin to true
  • In Blender, set "Implicit motion  less bone" in Source Engine Export plugin to false
  • Scale it up in 3ds max before exporting to Blender
  • Exporting the SMD with a scale of 1.0, and scaling it using the $scale command in the .qc instead
  • In 3ds max, attach the mesh to the root bone, and make it part of the hierarchy

...and none of that worked! The model would either act the same, or not be visible at all!


I really need some help figuring that out - Have you guys seen this issue before?




Share this post

Link to post
Share on other sites
On 12/30/2017 at 8:45 AM, Pampers said:

looks like your bones get wrong rotation after importing to blender

hmm well the animation looks correct in Blender though... it's really just broken after its imported in Hammer...

The pipeline I'm using is tedious, surely there's a simpler way to do that, right?

Can someone show me step by step how they correctly import an animated mesh in Hammer? 😊


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now