Grimrukh / soulstruct-blender

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

[ER] UV Handling Breaking when Missing Material? #50

Closed effs closed 2 months ago

effs commented 4 months ago

Ran into a collapsed UV trying to import Rellana's armor: parts\bd_m_3090.partsbnd.dcx, maybe because the preceding material fails to load?

Versions: HEAD for both soulstruct and soulstruct_lib

I'm the newest at ER/souls mods structure so let me know if there's any additional info I can provide, but a quick picture collage:

  1. Broken import (FLVER -> Import -> Equipment)

Here, as you can see, the belt mesh is missing mats and the robe (3 submeshes) are all collapsed into top left.

Screenshot 2024-07-17 165037

  1. Working import (through AquaTools)

Here, the UVs (both 1st and 2nd channel) are all where they should be

Screenshot 2024-07-17 172038

If I understand correctly, AquaTools/SoulsModelTools preserves the original submeshes where soulstruct merges them for Blender, and looking at the original? structure, mesh[2] is the belt (which fails in soulstruct), the next three [3, 4, 5] are the robe parts which all use the same material and all have the collapsed UV, and mesh[6] uses a different material (which is why it does correctly set up the UV again for that submesh?)

Screenshot 2024-07-17 172954

The log doesn't have anything specific wrt. the UV or the model, just the missing textures

image