Game Editing > Scripts & Support
[MD5] EXPORT script for Blender 2.6x (OPEN)
kat:
Looks like it could be the mesh objects (Shapes) you're using as part of the rigging - MD5 rigs generally can't contain non-bone objects, which includes meshes and empties. Disable/remove those then try again. Basically you should only be exporting the character mesh and the Armature composed of bones. So long as you have the Armature modifier and other bits set up you should then be able to export without issue.
To answer you other point about assimp using MD5, it's because its a purely text based format, making it super useful for teaching game development - everything is easily readable/accessible.
Blayne Bradley:
--- Quote from: kat on July 19, 2014, 05:44:23 PM ---Looks like it could be the mesh objects (Shapes) you're using as part of the rigging - MD5 rigs generally can't contain non-bone objects, which includes meshes and empties. Disable/remove those then try again. Basically you should only be exporting the character mesh and the Armature composed of bones. So long as you have the Armature modifier and other bits set up you should then be able to export without issue.
To answer you other point about assimp using MD5, it's because its a purely text based format, making it super useful for teaching game development - everything is easily readable/accessible.
--- End quote ---
What do you mean by Armature modifier, can you explain what settings I should have?
The only options I see are: MD5 Name, Exports: Mesh & Animation/Mesh/Animation and Scale.
Also if I have different things selected, I get different errors, what am I supposed to have selected?
Removing the custom shapes for the bones presents me the following:
The same error as before with the bones selected in rest position and in pose position.
With just the mesh selected:
line 647, in save_md5 material = Material(obj.data.materials[0].name ) # call the shader name by the material's name
IndexError: bpy_prop_collection[index]: index 0 out of range, size 0
location: <unknown location>:-1
Do you have a tutorial as to how my settings should look like? Beyond making a mesh and a simple animation I have no idea what I'm doing.
kat:
Based on what you've said there it pretty much looks like you're not properly prepping for export. Read through this, How to export MD5 (it's linked in the first post of this topic incidentally), it's a more detailed, but generic overview, of what you should be doing - single mesh, single armature with bones only, an animation action selected, etc.
Blayne Bradley:
--- Quote from: kat on July 19, 2014, 06:46:08 PM ---Based on what you've said there it pretty much looks like you're not properly prepping for export. Read through this, How to export MD5 (it's linked in the first post of this topic incidentally), it's a more detailed, but generic overview, of what you should be doing - single mesh, single armature with bones only, an animation action selected, etc.
--- End quote ---
The very first step is causing me issues, I try to unparent the mesh and it detatches the bones from my mesh, so the animation breaks, the mesh is parented to the bones so I'm not sure how to proceed..
Blayne Bradley:
New error trying some of the steps in the provided link:
line 760, in save_md5 arm_axction = thearmature.animation_data.action
AttributeError: 'int' object has no attribute 'animation_data'
location: <unknown location>:-1
Can you help me by looking at my .blend file for what I need to do? Many of the provided instructions are along the lines of "Make sure x,y,z is correct." and I have no idea as to whether they are or aren't. All I know is, my animation works as is.
I did the steps under "Exporting Animations" and that was where the above error came from.
Additionally, I don't think this version of my scene has any materials or textures, I'll assume its required to have one and see if I can add a simple texture.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version