Robert-N7 / abmatt

ANoob's Brres Material Tool for Mario Kart Wii
GNU General Public License v3.0
14 stars 3 forks source link

Textures broken? #43

Closed Heath123 closed 3 years ago

Heath123 commented 3 years ago

This model looks like this in Blender: image but like this in-game (using Free Look for a clearer view): image It changes as you get closer/further away so it might be to do with mipmaps or something

Heath123 commented 3 years ago

(I'm using random pictures from my PC to test which is why I have a track with a random image of a dog looking at a computer)

Robert-N7 commented 3 years ago

I was unable to reproduce this, is it with the latest changes? Because I recently updated to fix a bug where it did not resize the image to a power of two.

Heath123 commented 3 years ago

I'll try to get more information about when it happens tomorrow

Heath123 commented 3 years ago

Still happens for me

Heath123 commented 3 years ago

BRRES: course_model.zip

Heath123 commented 3 years ago

It looks fine in a BRRES viewer, but not in game

Heath123 commented 3 years ago

Resizing orl.png to 1024x1024 fixes it, my guess is that the game expects a square aspect ratio and if not it treats it as a mipmap like this: image That's a guess though, I'll investigate a bit more

Heath123 commented 3 years ago

Actually looks like that might not be it?

Heath123 commented 3 years ago

Oh, I noticed that it only resizes the smk image and not orl in the output:

TEX0 smk 1024x1093 (CMPR) not a power of 2
Replaced tex0 smk
(FIXED): Resize to 1024x1024

Could that be the issue?