Robert-N7 / abmatt

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

Incorrect UV mapping of some polygons #74

Closed AtishaRibeiro closed 2 years ago

AtishaRibeiro commented 3 years ago

I'm trying to convert the course model of snes mario circuit 3 to obj/dae but in both cases some textures seem to be stretched (and perhaps misaligned). The command I use is abmatt convert course_model.brres to course.dae. course_model.brres being the brres file extracted from old_mario_sfc.szs.

Below are some examples comparing blender to what it is supposed to be (taken from noclip.website):

rmc3_2 rmc3_1

The red/white stripes blender seem be stretched.

rmc3_4 rmcs3_3

Here the posts are red instead of white and the finish line is also stretched.

Robert-N7 commented 3 years ago

It looks like those have a scale attached to the layers. (2, 1) ABMATT doesn't apply those scale/rotation/translations currently, but it does store that information in the JSON exported and will load correctly if converted back to a BRRES. This is intended especially since animations may have custom scale/rotation/translation and moving the texture coordinates would mess with that when importing. Perhaps a feature to be added for the future. image