So, you've got a working way to get them into Brawl now? Is it working well enough to share?
It's still quite a mess, not too much improvement since the last script I posted.
http://pastebin.com/63N8KxqQ
Save it to your script folder as a .py file (its just a txt renamed).
Code:
# Windows XP: C:\Program Files\Blender Foundation\Blender\.blender\scripts
# Windows XP (alt): C:\Documents and Settings\USERNAME\Application Data\Blender Foundation\Blender\.blender\scripts
# Windows Vista: C:\Users\USERNAME\AppData\Roaming\Blender Foundation\Blender\.blender\scripts
What this does is...
- Multiplies all vertex values by 1000
- Removes all 'mtl' references (SZS wouldn't seem to accept them)
- Sets Triangulate to default (3 vert faces)
- Sets Export Normals to default
I have noticed one oddity --- Blender's exported obj files seem to have their normals inverted in game. To fix this (since I'm not quite sure how via script) just select your object in blender, go into edit mode, select all verts/faces, press 'w' and select invert normals.
Correct Normals in Blender, Inverted in game:
Inverted normals in Blender, correct in game:
And with custom texture test:
Sadly... it doesn't seem to have used my UV map in game; the miscolored gaps you see on Raphael are the blank space between his faces on the UV map.
The model / texture used. (With a few modifications):
As far as I can tell, SZS imports the map correctly (since the export returns the same map). But, I might be messing something up --- I've been away from the hacking scene so long... this whole ordeal was my first time using BrawlBox. (So... if anyone can give me full steps on what should be done from SZS brres export on, it would be appreciated)
Yeah, I'm pretty sure it's supposed to do that. Mine did that also. All you need to do is replace the standard with your diffuse, then uncheck all of the textures in brawlbox preview. After that, what I did was I deleted all of the textures except for the one I replaced, including the env. When I previewed it again in BrawlBox it had a white texture as if I never put one on, but when I tried it in brawl it had my texture on it. Give that a try. If you get an unhandled exception error, then it means you need to delete the files in the Animtxt or whatever it's called folder.
Thanks, I had tried this but didn't know what to do upon error. I'll try this later... its all rather frustrating and I've got art I want to do.
Anyone know how I could fix the problem I'm having with the normals/smoothing groups? It looks like Picano is having a similar problem too judging by the pictures (texturing problems aside).
I've had the problem on/off... seems to work sometimes --- but I've done many different things in attempt to get this working at all... so I've kind of lost track. I'll play with it later when I have time to see how SZS obj format differs from Blender's.