I assume that by modifiers you mean the Object Modifiers tab with the wrench? There doesn't appear to be anything there. And I did export in Object Mode. Interestingly, re-importing the m3 file showed the geometry perfectly intact.
As for automating the conversion, I was already planning on writing the code myself if it turned out that the m3addon didn't already have the functionality. Unfortunately, I'm not familiar with either blender or the code for your m3addon, so some pointers for getting started would be very much appreciated.
Ok, I think I understand that. But if want to import a model from another format, I only have existing Blender materials. Is there some systematic way of converting these into m3 materials? So far, I have tried the following:
Create an m3 material for each Blender material.
Set the diffuse image path of the m3 material to that of its corresponding Blender material.
Set the M3 Material of each Blender material to its corresponding m3 material.
So far, exactly one of my 4 meshes has its texture rendered properly in SC2. I'll continue trying to manually adjust the m3 materials... But it really seems to me that converting Blender materials to m3 materials is something that the m3addon should do automatically.
Edit: Well, after doing the same thing over and over, I finally figured out the problem... the SC2 editor needed to be restarted. Now give me a moment to bang my head against a hard object one more time.
Okay! So doing the above 3 steps does indeed work. However, now that I can actually see the textures of my model in the SC2 editor, I can see that the geometry itself is messed up. Many of the vertices are simply in the wrong places, as if the actual wires of the wireframe were randomly bent.
So when I import an m3 (or any file) I have to set up all of the materials and textures manually? I'm not even sure how to do this for the coin model (save recreating the texture entirely), let alone for existing models which might have complicated material/texture information.
I also have a textures question: when I export the coin as m3, should I be able to import it back and have the textures appear? When I try to import coin.m3 back into blender, the texture no longer appears.
@println: Go
I assume that by modifiers you mean the Object Modifiers tab with the wrench? There doesn't appear to be anything there. And I did export in Object Mode. Interestingly, re-importing the m3 file showed the geometry perfectly intact.
As for automating the conversion, I was already planning on writing the code myself if it turned out that the m3addon didn't already have the functionality. Unfortunately, I'm not familiar with either blender or the code for your m3addon, so some pointers for getting started would be very much appreciated.
Ok, I think I understand that. But if want to import a model from another format, I only have existing Blender materials. Is there some systematic way of converting these into m3 materials? So far, I have tried the following:
So far, exactly one of my 4 meshes has its texture rendered properly in SC2. I'll continue trying to manually adjust the m3 materials... But it really seems to me that converting Blender materials to m3 materials is something that the m3addon should do automatically.
Edit: Well, after doing the same thing over and over, I finally figured out the problem... the SC2 editor needed to be restarted. Now give me a moment to bang my head against a hard object one more time.
Okay! So doing the above 3 steps does indeed work. However, now that I can actually see the textures of my model in the SC2 editor, I can see that the geometry itself is messed up. Many of the vertices are simply in the wrong places, as if the actual wires of the wireframe were randomly bent.
@println: Go
So when I import an m3 (or any file) I have to set up all of the materials and textures manually? I'm not even sure how to do this for the coin model (save recreating the texture entirely), let alone for existing models which might have complicated material/texture information.
I also have a textures question: when I export the coin as m3, should I be able to import it back and have the textures appear? When I try to import coin.m3 back into blender, the texture no longer appears.