Open Reisyukaku opened 6 years ago
Where is the third texture located? I can only find 2 textures on the CM files inside the GARCs you mentioned.
specifically model number 019
So I made it load the extra texture but I don't see any change on the rendered model. I don't know how it is supposed to look like so I'll leave this open. If theres still something wrong with the model let me know.
Also, I think it may be better to make the format identifier automatically identify all data inside the generic XX Pokémon containers. I plan to refactor the format identification logic to a separate project and add each format inside the main SPICA library, to allow a future CLI tool to use the same logic of the main winforms application.
Hmm.. I noticed that the 3rd texture is seperate from the other 2 in the gfmodel container. I guess this makes sense since that image is basically a texture mask.. there are a few hat items in game that use this model and the mask is colorized depending on the hat. So I'm not sure if the shader in the gfmodel references it or not. It just colorizes part of the rim and puts a color bow looking thing on the back.
Looking in a 1 7 2 there are models for the Male Player's face, looking at the hex there are 7 textures in the file all of which are texture masks, but SPICA only loads the first 4. and I'm not sure if this is intentional thing gamefreak did or a bug, but in a 1 7 3 & a 1 8 5 the first two models are the default hair, however they are rotated and positioned incorrectly, all the other hair is in the right position(Where the head would be)
Doesnt find the third image on a specific model. This third image happens to be an A8 image thats overlayed over the hat for extra details. The model is found in a/1/7/8 and its overworld model in a/2/0/4 has the same issue.