Marlamin / wow.tools.local

Locally runnable version of the wow.tools website and some of its features
MIT License
97 stars 26 forks source link

item/ models not displaying extra textures #14

Closed WainPetopia closed 10 months ago

WainPetopia commented 10 months ago

In the model viewer, it looks like item/ models are only displaying the first texture (in the Texture # 2 slot), which is probably all that is needed for 90+% of them.

Some have a 2nd and 3rd texture, in slots # 3 & 4, respectively. But the model viewer doesn't seem to display them.

An example of this is offhand_1h_emeralddreamoutdoor_d_01.m2 : Select the first display ID (670596) and it just shows texture 4746993 in slot 2, but it should also show texture 4746998 in slot 3 and 4747004 in slot 4.

In ItemDisplayInfoModelMatRes, it looks like the slot that should be used for the texture corresponds to the "TextureType" column. The vast majority of values in that column are '2', but there are some 3s and 4s, and in the example I gave above the slots those textures belong in do match their TextureType values in that spreadsheet.

The only confusing thing is that there are also some with a value of '24' (all TextureType values are either 2, 3, 4, or 24). Is that a valid texture slot now? I don't have time to look for models that use that, yet, but I wanted to write up the issue while it was fresh in my mind.

WainPetopia commented 10 months ago

Fixed with commit 31a43b4. Thanks for checking it in!