Open JayFoxRox opened 6 years ago
I'm quite sure this has to do with flags 0x10 / 0x01. However, I don't want to fix this in my texture exporter (as it would have to duplicate pixels which would make re-importing very hard). We should have one <sampler>
for each Section5b. The respective <wrap_s>
and <wrap_t>
have to be changed to MIRROR
.
Another file where this bug is very obvious, is model 11.
Texture repeat on model 100 is bad (for the face and body / vest). Basically some UV values for U are in the range [1.0, 2.0] and the model expects the texture in that range to be horizontally mirrored.
I think this could have to do with flag 0x10 / 0x01 (in section5b.unk3). If this is an issue with the flag 0x10 / 0x01, this issue actually belongs to OpenSWE1R/swe1r-tools. However, maybe it's also just a texture wrapping issue.
I'll look into this soon.
(
I could not fix this in blender for testing yet, as the texture repeat feature seems to be broken on the version I use. So I'd advise against using blender for testing new code until we know why blender didn't work for meThis is a known bug in blender)