Hi all!
I'm surprised a script like this doesn't exist.
We all know Ogre has a bone count limit of 4 bones per vertex, and for a few reasons, the sum of all weights should be 1.
These limitations (i.e. the 4 bone per vertex) may be automatically handled inside the engine, but it may affect the animation which comes as a surprise.
Most importantly, I have other engine/performance restrictions (i.e. max limit = 2) and fixing them with thousands of vertices is hell.
I wrote a script (attached) for Blender 2.49b that will remove extra bones with lowest weights, and will additionally normalize all weights.
Hope you enjoy!
Cheers
Dark Sylinc
PS: Released under GPL v3. Instructions inside the script as comments
Blender script: Limit bone count and normalize weights
-
dark_sylinc
- OGRE Team Member

- Posts: 5551
- Joined: Sat Jul 21, 2007 4:55 pm
- Location: Buenos Aires, Argentina
- x 1402
Blender script: Limit bone count and normalize weights
You do not have the required permissions to view the files attached to this post.