SilentNightSound / GI-Model-Importer

Tools and instructions for importing custom models into a certain anime game
https://discord.gg/agmg
GNU General Public License v3.0
2.37k stars 342 forks source link

Dumps not Collecting All Textures #268

Open TechnoSchnauzer opened 6 days ago

TechnoSchnauzer commented 6 days ago

I was trying to dump this object: image And while it did dump I noticed that there was no texture for the large bulb ontop. image image Looking at it's uvs I saw where they were placed and did a dump using every PS hash that had any effect on the object, and still didn't get a texture that fit it. After that I did a dump of everything and there was still no texture of it. Looking back at how I've not had normal maps dump when there seemed to be a normal map on the object, or no lightmap dumping I think there may be a problem happening. May it be an issue on my side or is it a code issue?

leotorrez commented 4 days ago

the collect script is only intended to be used on characters. weapons and objects are not supported, yet it might happen to work. For objects like this use manual collecting

TechnoSchnauzer commented 4 days ago

I didn't realize I didn't mention it, but I was manually collecting. The texture was not at all showing up in the frame dump folder. I wasn't using the collecting script.

the collect script is only intended to be used on characters. weapons and objects are not supported, yet it might happen to work. For objects like this use manual collecting

leotorrez commented 3 days ago

oh I see, in which case you might have to check the framedumps in greater detail. Check the render targets to see when this object gets drawn and note down the IB used to draw it. Then check where else that IB is used in a PS call. The other calls related to that mesh will be easy to track this way. The texture could be applied after the initial draw of the mesh

TechnoSchnauzer commented 3 days ago

Could you give me a bit more direction? I'm fairly sure I did what you asked and still didn't find it, but want to make sure I did it right.