Robert-N7 / abmatt

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

Wrong material being used #73

Closed Heath123 closed 2 years ago

Heath123 commented 3 years ago

Model in Blender: image Model in game: image

model.zip

Heath123 commented 3 years ago

This seems to happen when you have unused materials before the material. Example with only 2 material slots on the object: model.zip

Heath123 commented 3 years ago

I'll look into this more later

Robert-N7 commented 2 years ago

Looks like this is an issue with the DAE file parser. The parser takes the first material listed under technique common. image

Should be able to fix by checking for the material attribute on the triangles tag.