Jump to content
  • Advertisement
Sign in to follow this  
Jan K

Blender: Properly export bone weights

This topic is 3322 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there I want to use an animated character in my game. I have found one that is a good test object. I can import it into Blender and play its animation, it looks very good. Now i export it as an x-file (DirectX file format) and load it into my engine. However the bone-weights seem to be exported not the way i expect them too. The mesh in blender is rigged properly and the animation looks good. However the guy who built it, seems to have used some other method than "bone heat". When i go into "Weight Paint" mode nearly all weights are 0, because all bones are really tiny. But this data seems to be used, when it is exported into the x-file, which makes the result incorrect. Now the correct data is there "somewhere", because Blender obviously uses it for animation. I just need some way to get the correct data into the "vertex weights", such that they will be exported properly. My knowledge of Blender is very limited, though, so i am asking, whether anyone knows a way to 1) see the REAL weights, that are used by the skeleton (Weight Paint seems not to be the thing i am looking for) 2) get that data into the vertex-weights, for proper exports Thanks, Jan.

Share this post


Link to post
Share on other sites
Advertisement
I'm not familiar with the scripts, but they are all gpl and oss, and included in a sub directory. Just open up the dx exporter py script, save a new copy, and make your own edits to save out the proper weights?

Share this post


Link to post
Share on other sites
I am sorry, i found my bug. I had a typo in my loader code, and with more than 2 bones per vertex the weights were messed up.

Also i just found out that i need to select a vertex group, when in Weight Paint mode, to see that group's influence. The default selected group seems to be a dummy bone, that doesn't influence anything, that confused me.

Jan.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!