Jump to content
MikeGon

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:

flaganim_3ds.gif.ceabdb1dae035e807a37d16226ea0bef.gif

the scene setup looks like this:

flaganim_scene.PNG.eab3e7bdd2daff48e97b9e2aba642c59.PNG

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

flaganim_fbxexport.PNG.340bbe8c186ed957427225382bc1459b.PNG

Here's what the animation looks like in Blender:

flaganim_blender.gif.f295ec8a708b34c968e0217645477b7c.gif

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

image.png.7c811ae322216a9ed129c3e5ca22aff4.png

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:

flaganim_hammer.gif.2a8b377a143fe146f9812b7ded8ebc54.gifflaganim_hammer2.gif.dbb6e6a9f5081fd7199d22e9e120df7c.gif

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?

 

Cheers!

-Mike

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

×