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.
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.
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.
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 tweetsAwesome XNA Videos – Lighting, Rendering, and game videos