Grimrukh / soulstruct-blender

Blender plugins for FromSoft games, via `soulstruct`.
90 stars 4 forks source link

General Exporting issue with Demons Souls FLVER files #83

Open FoxTrox33 opened 14 hours ago

FoxTrox33 commented 14 hours ago

I know someone put an issue in for texture issues but mine is a bit different, I'm trying to switch out the baked lightmaps and it seams that exporting with new textures just doesn't work. I'm not sure what's causing it but its a real pain. Its seams to effect the UVs.

Screenshot 2024-10-17 140144

thegreatgramcracker commented 14 hours ago

This doesn't look like a corrupt texture, especially when it's lightmaps you'd be seeing a lot of "unique" colors. I believe this is either Flags1 in the texture or Flag2 in the tpf being set wrong, because I think when I was experimenting with those unknown values it looked a lot like this. It could be soulstruct writing them wrong or maybe there is some way you can edit the texture properties. I noticed some issues with how it's exporting textures for characters in my #79 issue.

FoxTrox33 commented 13 hours ago

I see, the way I was making the file was drawing the new lightmap over the old one so it had the same file format and i exported with the demons souls compression method in soulstruct. If i could find a way to just replace the lightmap textures without having to re-export the models i think i could make it work. I attached a screenshot of one of the test lightmaps i made. Im hoping that the colors work correctly in engine. I found the lightmaps are a lot more subtle in game so i was exaggerating the lighting to try and make it more pronounced.

image

thegreatgramcracker commented 3 hours ago

Oh yeah, if you want to do a simple texture edit I would recommend just unpacking the map texture archive from m11 folder (m11_XXXX.tpf) with witchy, editing the lightmap, saving, then repacking. If you need to know what format to save it as, you can check out this tutorial on how to do it with Microsoft TexDiag