comanighttrain

Hey guys, first post here :D.

Im have modelled a primitive looking gentleman for my first attempt at game programming using milkshape. I tried to enter the model into the first tutorial program but have met with the error

"Error 1 Error normalizing vertex bone weights. BoneWeightCollection does not contain any weighting values. C:\Documents and Settings\Dave\My Documents\Visual Studio 2005\Projects\Game1\Game1\Content\Models\attempt1.fbx Game1"

On every model I try to enter except for the one provided by the tutorial.

myModel = content.Load<Model>("content\\Models\\theigh"); is the code im using to enter it.

Does anyone know if there is an issue with milkshape or if its just something im doing wrong

Thanks

Dave



Re: XNA Game Studio Express Milkshape Model Errors

Joel Martinez

Hard to say at a glance ... it is more than likely an issue with the fbx exporter in milkshape. Seems like it is only half exporting animation data. I'm not familiar with that UI, perhaps there is a checkbox or something that allows you to specify that the exporter include things like bone weights





Re: XNA Game Studio Express Milkshape Model Errors

leclerc9

Have you tried exporting to .X with skin and bone info




Re: XNA Game Studio Express Milkshape Model Errors

comanighttrain

i tried exporing to direct x 8.0 format, i got a load of warnings and one error

Error 6 Error normalizing vertex bone weights. BoneWeightCollection does not contain any weighting values. C:\Documents and Settings\Dave\My Documents\Visual Studio 2005\Projects\Game1\Game1\Content\Models\attempt1dx.x Game1

I cant see any checks or anything of that nature for changing or including any weighting values.

 

Thanks for the reply





Re: XNA Game Studio Express Milkshape Model Errors

comanighttrain

There is no such check box or option related to bone weighting in milkshape to my knowledge. I have noticed that not all my vertices (or vertex's...im not sure) are connected to a bone, could that be causing a problem perhaps

Thanks for the reply :-)





Re: XNA Game Studio Express Milkshape Model Errors

rusty_bone

I exported to .x format in Milkshape and got the error. Noticed all vertices weren't assigned to a bone. Fixed it, and then errors were gone.



Re: XNA Game Studio Express Milkshape Model Errors

leclerc9

Yah, make sure you bind all the verts to bones. If that still doesn't work, Milkshape .x exporter has at least 3 known bugs:

1. TextureFilename is not spelled with correct casing (This doesn't make a difference)
2. Extra semicolon is put at the end of MeshMaterialList (I'm not sure if this makes a difference)
3. Normals are often incorrectly exported (this can cause a critical failure)

If you still can't get it to work, would you mind posting the .X file I can tell you where to go from there (or if you are too lazy to bind all the verts).




Re: XNA Game Studio Express Milkshape Model Errors

comanighttrain

Looks like that was it. :D

Thanks for the help and thanks everyone who answered :D