Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sumo model export broken textures or uvmap idk #44

Closed
d3athrow opened this issue Feb 8, 2018 · 3 comments
Closed

sumo model export broken textures or uvmap idk #44

d3athrow opened this issue Feb 8, 2018 · 3 comments

Comments

@d3athrow
Copy link

d3athrow commented Feb 8, 2018

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

img

@igniscitrinus
Copy link
Contributor

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
    image
    image
    image

  • 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)
    image
    image
    image

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
Copy link
Author

d3athrow commented Feb 9, 2018

Oh, thanks for the helpful info.

@milankarman
Copy link

@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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants