gdkchan / SPICA

Experimental H3D tool
The Unlicense
95 stars 46 forks source link

sumo model export broken textures or uvmap idk #44

Closed d3athrow closed 6 years ago

d3athrow commented 6 years ago

when imported into blender from smd format and textures applied seems something messes up in the exporting process.

img

igniscitrinus commented 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:

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.

d3athrow commented 6 years ago

Oh, thanks for the helpful info.

milankarman commented 5 years ago

@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. unity_2018-09-18_04-09-16

You seem very knowledgeable on this so I was hoping you could help. Thanks in advance :)