sgMotion, cannot use .X or .FBX

rated by 0 users
This post has 2 Replies | 3 Followers

Top 25 Contributor
Posts 232
SunBurn_Community_Licensee
SunBurn_Pro_Licensee
2.0 Studios Posted: 09-03-2010 4:21 AM

Hey,

I have 5 models, I am attempting to animate in Sunburn via sgMotion. ALL give me the same error.

An unhandled exception of type 'System.ArgumentException' occurred in SynapseGaming-SunBurn-Community.dll

Additional information: Effects that implement skinning require object vertex buffers to supply both blending weight and indices in the vertex stream.


I have exported every model from a .Max file from Max 2009 and 2010 3 different ways each.

  • Panda Exporter
  • kwxporter
  • Built in FBX exporter

This error occurs here:

SkinnedModelForAnimation = GeneralContent.Load<SkinnedModel>("Models\\Swordsman\\Warrior 11kw")
EnemySceneObject = new SceneObject(SkinnedModelForAnimation.Model);

The oddest thing is that another model I have uses the max biped, exports and is used just fine.

I have no idead how to fix this. Any help would really be appreciated.

 

Top 10 Contributor
Posts 708
SunBurn_Community_Licensee
SunBurn_Contributor

There could be a mesh in your scene (maybe even hidden) that isn't baked and is causing the error. We've had a similar error very late in dev of OverNight, I'll ask the artist what we did to fix it as I can't recall. We've used kw-export as well, and worked in the end.

Contributor on the SunBurn sgMotion Animation Library open source project.

Top 10 Contributor
Posts 5,368
Employee
SunBurn_Studio_Licensee

Hi guys,

I agree with Tom, it sounds like the model file (the Max scene) contains one or more non-skinned meshes.

If this is intentional you can disable the Skinned property on any effects in the Model that correspond to a non-skinned mesh, but by default the content pipeline assumes the entire model is either completely skinned or not-skinned.

Let me know if this helps!

Follow me on Twitter – development and personal tweets
Awesome XNA Videos – Lighting, Rendering, and game videos

Page 1 of 1 (3 items) | RSS