Closed d3athrow closed 6 years ago
Pokémon GfModels make heavy use of texture repeating and mirroring across the board, presumably to save space on redundant textures. Collada supports texture mirroring and repeating as wrapping modes, which SPICA applies accordingly on export; SMD unfortunately doesn't support this.
The best workaround for this is to mirror the textures to match the UVs manually. There's no consistent method, but as a general rule they go as follows:
Body, Mouth and Eye textures are mirrored once
Iris textures are flipped horizontally, mirrored four times horizontally, repeated four times vertically, then the middle of the alpha mask from the Eye/Iris Normal map is applied over it (Demonstrated with Bulbasaur, since Flareon doesn't have any iris textures)
Apologies if this makes little sense, this entire process is really convoluted.
Additionally, some Pokémon might not have any mirrored textures at all, some might not need the iris to be flipped beforehand, etc. Ultimately, it all boils down to trial and error and seeing what looks right and what doesn't.
Oh, thanks for the helpful info.
@igniscitrinus Hey man, stumbled onto your response to this issue just now while trying to import a bulbasaur model into unity. I'm having a ton of trouble trying to get the alpha mask to make the eyes fit. I adjusted the image to match the eyes and I'm pretty sure everything is in the right place. I'm not sure though how you actually get the transparency of the alpha mask onto the iris. This is what I got so far.
You seem very knowledgeable on this so I was hoping you could help. Thanks in advance :)
when imported into blender from smd format and textures applied seems something messes up in the exporting process.