KillzXGaming / Switch-Toolbox

A tool to edit many video game file formats
GNU General Public License v3.0
971 stars 155 forks source link

.dae UV Mapping and Vertex Coloring not loading in Blender if name is above 63 characters long. #321

Open ajd-262 opened 3 years ago

ajd-262 commented 3 years ago

If the UV Map name and/or Vertex Color is above 63 characters long Blender won't load the UV map and/or Vertex Coloring. If I use Notepad++ and find the UV map and/or Color above the 63 characters limit and shorten it things will load fine.

For example the BotW Impa's House. TwnObj_Village_Sheiker_A-05.sbfres and saved TwnObj_Village_SheikerMayorHouse_A_01 as .dae.

In Notepad++ one of the UV map name is OutLightBase_A_2__Mt_CmnTex_Wood_VillageSheikerHouse01Hari_A-texcoord

Blender it cuts things off after 63 characters and UV Mapping is lost. OutLightBase_A_2__Mt_CmnTex_Wood_VillageSheikerHouse01Hari_A-te

Editing to Mt_CmnTex_Wood_VillageSheikerHouse01Hari_A-texcoord or for a test 012345678901234567890123456789012345678901234567890123456789012

Will make the UV map load right in Blender. Vertex Coloring has the same problem. If above 63 characters long it will not load as well. Needs to be hand edited just like UV Map to get to/under 63 characters.

So changing OutLightBase_A_2__Mt_CmnTex_Wood_VillageSheikerHouse01Hari_A-color to Mt_CmnTex_Wood_VillageSheikerHouse01Hari_A-color will get the Vertex Coloring under 63 characters and loads fine.

It would be nice if this can be fixed. Having to check and hand edit models hasn't been fun.

Using Toobox 1.0.2366.0. Tested in Blender 2.78c, 2.79b and Blender 2.91

kobligo commented 3 years ago

Blender has a character limit of 63 characters for datablock names. How could this possibly be fixed without huge changes within Blender itself?

ajd-262 commented 3 years ago

Not asking Blender to be fix but to have Switch Toolbox updated to never use datablock names above 63 characters long.