Import Mesh Loss Texture #381

Closed
opened 2025-11-18 06:43:51 +00:00 by Ghost · 13 comments
Ghost commented 2025-11-18 06:43:51 +00:00 (Migrated from git.disroot.org)

Blender versions: 4.4.3 and 4.5.3

Cat versions: 4.4.1 and 4.5.3

Operating system: Windows 1125H2

Steps to reproduce: import, lost
This plugin installation will include MMD plugins, but importing models with this MMD plugin will make an error, and installing the official MMD plugin in the plugin store will not be like this, as shown in the figure below.

Image Image
Blender versions: 4.4.3 and 4.5.3 Cat versions: 4.4.1 and 4.5.3 Operating system: Windows 1125H2 Steps to reproduce: import, lost This plugin installation will include MMD plugins, but importing models with this MMD plugin will make an error, and installing the official MMD plugin in the plugin store will not be like this, as shown in the figure below. <img width="757" height="489" alt="Image" src="https://github.com/user-attachments/assets/61a9051d-7b3d-4c09-acc8-115d6bbe9850" /> <img width="558" height="514" alt="Image" src="https://github.com/user-attachments/assets/7c0fe9bf-0eea-4227-9573-199e9d10f9b8" />
Ghost commented 2025-11-18 06:49:33 +00:00 (Migrated from git.disroot.org)
Image
<img width="1180" height="798" alt="Image" src="https://github.com/user-attachments/assets/8c5f2bda-e7ae-471d-9564-dbdb3cf6b05a" />
Ghost commented 2025-11-18 13:53:56 +00:00 (Migrated from git.disroot.org)

Did you import via Cats Importer or the MMD one?, i need this info before i start looking into this.

It should not be doing this as Cats uses the latest MMD Tools in 4.5 in 4.5.3.0 so would have no clue on why it's doing this

Did you import via Cats Importer or the MMD one?, i need this info before i start looking into this. It should not be doing this as Cats uses the latest MMD Tools in 4.5 in 4.5.3.0 so would have no clue on why it's doing this
Ghost commented 2025-11-18 20:25:29 +00:00 (Migrated from git.disroot.org)

Cats for Blender 4.5 is EOL however this is a more urgent issue so will release patch for 4.5 and 5.0

Aim for 4.5.3.1 and 5.0.1.2

Cats for Blender 4.5 is EOL however this is a more urgent issue so will release patch for 4.5 and 5.0 Aim for 4.5.3.1 and 5.0.1.2
Ghost commented 2025-11-19 00:03:48 +00:00 (Migrated from git.disroot.org)

I can not re-porudce this issue with the PMX models i have.

Both just MMD Tools by itself and Cats produces the same result so i need more infomation on this.

Both have issues with importing textures some models import them correctly some not. This maybe a wider issue with MMD Tools, i need more info and testing.

The only Theory i have is that the PMX files store the wrong path to textures but I dont know enough about the PMX format.

More info is needed, blender logs would be good to have.

Are you able to provide any logs/ blender console output?

I can not re-porudce this issue with the PMX models i have. Both just MMD Tools by itself and Cats produces the same result so i need more infomation on this. Both have issues with importing textures some models import them correctly some not. This maybe a wider issue with MMD Tools, i need more info and testing. The only Theory i have is that the PMX files store the wrong path to textures but I dont know enough about the PMX format. More info is needed, blender logs would be good to have. Are you able to provide any logs/ blender console output?
Ghost commented 2025-11-19 00:19:24 +00:00 (Migrated from git.disroot.org)

Please note, if you have MMD tools and Cats installed there can conflict with each other and cuase issues, please ensure you don't have them installed when importing.

Please note, if you have MMD tools and Cats installed there can conflict with each other and cuase issues, please ensure you don't have them installed when importing.
Ghost commented 2025-11-19 00:47:12 +00:00 (Migrated from git.disroot.org)

Possible fix deployed but honestly this issue has stumped me, there is no real reason why this should be happening and without further issue i can not progress this issue any further espically because i get varied results from Cats and the Standalone MMD Tools i think this could be an issue with how MMD Resolve Paths.

Waiting for further info

Possible fix deployed but honestly this issue has stumped me, there is no real reason why this should be happening and without further issue i can not progress this issue any further espically because i get varied results from Cats and the Standalone MMD Tools i think this could be an issue with how MMD Resolve Paths. Waiting for further info
Ghost commented 2025-11-19 01:26:19 +00:00 (Migrated from git.disroot.org)

可能已部署修复方案,但说实话,这个问题难倒了我,没有任何理由导致这种情况发生,而且如果没有进一步的问题,我无法继续推进这个问题,尤其是我在 Cats 和独立 MMD 工具中得到了不同的结果,我认为这可能是 MMD 解析路径的方式存在问题。

等待进一步消息
I downloaded the brand-new Blender 5.0 and all new plugins. As shown in the video, I imported the wrong files.
错误文件.zip

> 可能已部署修复方案,但说实话,这个问题难倒了我,没有任何理由导致这种情况发生,而且如果没有进一步的问题,我无法继续推进这个问题,尤其是我在 Cats 和独立 MMD 工具中得到了不同的结果,我认为这可能是 MMD 解析路径的方式存在问题。 > > 等待进一步消息 I downloaded the brand-new Blender 5.0 and all new plugins. As shown in the video, I imported the wrong files. [错误文件.zip](https://github.com/user-attachments/files/23616700/default.zip) <!-- Failed to upload "屏幕录制 2025-11-19 092055.mp4" -->
Ghost commented 2025-11-19 01:29:04 +00:00 (Migrated from git.disroot.org)

Possible fix deployed but honestly this issue has stumped me, there is no real reason why this should be happening and without further issue i can not progress this issue any further espically because i get varied results from Cats and the Standalone MMD Tools i think this could be an issue with how MMD Resolve Paths.

Waiting for further info
I shared the video link on the chorme cloud
https://drive.google.com/file/d/12nnJyGdlYlJ3fQtY8WRMZpFaDPYSy1nr/view?usp=sharing

> Possible fix deployed but honestly this issue has stumped me, there is no real reason why this should be happening and without further issue i can not progress this issue any further espically because i get varied results from Cats and the Standalone MMD Tools i think this could be an issue with how MMD Resolve Paths. > > Waiting for further info I shared the video link on the chorme cloud [https://drive.google.com/file/d/12nnJyGdlYlJ3fQtY8WRMZpFaDPYSy1nr/view?usp=sharing](url)
Ghost commented 2025-11-19 02:07:03 +00:00 (Migrated from git.disroot.org)

Thanks for providing the model, it seems it is what I needed. I was able to figure out the issue due to the logs it provided. The issue is with how MMD Tools handles texture paths, specifically in how it determines where to look for textures. This is a MMD Tools issue and not a Cats issue.

The problem happens because MMD Tools relies on a setting that tries to figure out its own folder location when it loads, but this doesn't work reliably - especially when the plugin is installed in custom or non-standard locations. When embedded in Cats, it fails to find the correct texture folder and ends up looking in the wrong place (the Blender installation directory).

I fixed it by making the importer bypass this unreliable setting and instead directly look for textures in two places:

  1. The model's own folder (where your textures are)
  2. The embedded MMD Tools folder (which comes with Cats)

This is actually a broader issue that could affect other users who have the standalone MMD Tools in custom locations too. But now with this fix, Cats users won't experience texture loss regardless of where the plugin is installed.

The fix is on the Dev Branch for 4.5
https://github.com/teamneoneko/Cats-Blender-Plugin/tree/blender-45-dev

It will soon be on the 5.x dev branch as well
https://github.com/teamneoneko/Cats-Blender-Plugin/tree/blender-5x-dev

It will be also in the next version for 4.5 and 5.0 which is due to come out at the end of this week.

Please feel free to test the dev branch and let me know if there is any other issues.

Thanks!

Thanks for providing the model, it seems it is what I needed. I was able to figure out the issue due to the logs it provided. The issue is with how MMD Tools handles texture paths, specifically in how it determines where to look for textures. This is a MMD Tools issue and not a Cats issue. The problem happens because MMD Tools relies on a setting that tries to figure out its own folder location when it loads, but this doesn't work reliably - especially when the plugin is installed in custom or non-standard locations. When embedded in Cats, it fails to find the correct texture folder and ends up looking in the wrong place (the Blender installation directory). I fixed it by making the importer bypass this unreliable setting and instead directly look for textures in two places: 1. The model's own folder (where your textures are) 2. The embedded MMD Tools folder (which comes with Cats) This is actually a broader issue that could affect other users who have the standalone MMD Tools in custom locations too. But now with this fix, Cats users won't experience texture loss regardless of where the plugin is installed. The fix is on the Dev Branch for 4.5 https://github.com/teamneoneko/Cats-Blender-Plugin/tree/blender-45-dev It will soon be on the 5.x dev branch as well https://github.com/teamneoneko/Cats-Blender-Plugin/tree/blender-5x-dev It will be also in the next version for 4.5 and 5.0 which is due to come out at the end of this week. Please feel free to test the dev branch and let me know if there is any other issues. Thanks!
Ghost commented 2025-11-19 02:59:32 +00:00 (Migrated from git.disroot.org)

感谢您提供的模型,它正是我需要的。我根据它提供的日志找到了问题所在。问题出在 MMD Tools 处理纹理路径的方式上,具体来说,是它如何确定纹理的查找位置。这是 MMD Tools 的问题,而不是 Cats 的问题。

问题在于 MMD Tools 依赖于一个设置,该设置会在加载时尝试自动查找自身的文件夹位置,但这并不稳定——尤其是在插件安装在自定义或非标准位置时。当嵌入到 Cats 中时,它无法找到正确的纹理文件夹,最终在错误的位置(Blender 安装目录)中查找。

我通过让导入程序绕过这个不可靠的设置,直接在两个地方查找纹理来修复了这个问题:

  1. 模型自身的文件夹(存放纹理的地方)
  2. 嵌入式 MMD 工具文件夹(随《猫》游戏一起提供)

这实际上是一个更广泛的问题,可能会影响其他将独立 MMD 工具安装在自定义位置的用户。但现在有了这个修复程序,无论插件安装在何处,《猫》的用户都不会再遇到纹理丢失的问题。

修复程序已在 4.5 版本的开发分支中 :https://github.com/teamneoneko/Cats-Blender-Plugin/tree/blender-45-dev

它很快也会出现在 5.x 开发分支上: https://github.com/teamneoneko/Cats-Blender-Plugin/tree/blender-5x-dev

它也将包含在即将于本周末发布的 4.5 和 5.0 版本中。

请随意测试开发分支,如有任何其他问题,请告知我。

谢谢!

This is great, thank you very much, so I don't have to switch imports back and forth between multiple versions... However, I suddenly remembered something, as shown in the picture, the N panels they occupy are too redundant, and the two panels are duplicated, so I will choose an N panel management plugin to collect them together

Image Image
> 感谢您提供的模型,它正是我需要的。我根据它提供的日志找到了问题所在。问题出在 MMD Tools 处理纹理路径的方式上,具体来说,是它如何确定纹理的查找位置。这是 MMD Tools 的问题,而不是 Cats 的问题。 > > 问题在于 MMD Tools 依赖于一个设置,该设置会在加载时尝试自动查找自身的文件夹位置,但这并不稳定——尤其是在插件安装在自定义或非标准位置时。当嵌入到 Cats 中时,它无法找到正确的纹理文件夹,最终在错误的位置(Blender 安装目录)中查找。 > > 我通过让导入程序绕过这个不可靠的设置,直接在两个地方查找纹理来修复了这个问题: > > 1. 模型自身的文件夹(存放纹理的地方) > 2. 嵌入式 MMD 工具文件夹(随《猫》游戏一起提供) > > 这实际上是一个更广泛的问题,可能会影响其他将独立 MMD 工具安装在自定义位置的用户。但现在有了这个修复程序,无论插件安装在何处,《猫》的用户都不会再遇到纹理丢失的问题。 > > 修复程序已在 4.5 版本的开发分支中 [:https://github.com/teamneoneko/Cats-Blender-Plugin/tree/blender-45-dev](https://github.com/teamneoneko/Cats-Blender-Plugin/tree/blender-45-dev) > > 它很快也会出现在 5.x 开发分支上: https://github.com/teamneoneko/Cats-Blender-Plugin/tree/blender-5x-dev > > 它也将包含在即将于本周末发布的 4.5 和 5.0 版本中。 > > 请随意测试开发分支,如有任何其他问题,请告知我。 > > 谢谢! This is great, thank you very much, so I don't have to switch imports back and forth between multiple versions... However, I suddenly remembered something, as shown in the picture, the N panels they occupy are too redundant, and the two panels are duplicated, so I will choose an N panel management plugin to collect them together <img width="284" height="692" alt="Image" src="https://github.com/user-attachments/assets/2329879e-487c-49d0-83d5-965ec332747e" /> <img width="292" height="621" alt="Image" src="https://github.com/user-attachments/assets/0b6eb64f-66f6-4f81-a774-cd0771013b02" />
Ghost commented 2025-11-19 03:02:31 +00:00 (Migrated from git.disroot.org)

I can't fix that sadly, those are external plugins (We used to be able to hide them, but blender stopped allowing that) however you can filter them out via N -> tool -> filter addons -> disable the filter

Image
I can't fix that sadly, those are external plugins (We used to be able to hide them, but blender stopped allowing that) however you can filter them out via N -> tool -> filter addons -> disable the filter <img width="367" height="637" alt="Image" src="https://github.com/user-attachments/assets/770b2c07-c0c9-4cf6-8f38-a8a53d4f116d" />
Ghost commented 2025-11-19 03:06:01 +00:00 (Migrated from git.disroot.org)

很遗憾,我无法解决这个问题,这些是外部插件(以前我们可以隐藏它们,但Blender不再允许这样做了)。不过,你可以通过按N键 -> 工具 -> 过滤插件 -> 禁用过滤器来过滤掉它们。

图像

It turns out that there is also this tip, thank you very much, I wish you all the best

> 很遗憾,我无法解决这个问题,这些是外部插件(以前我们可以隐藏它们,但Blender不再允许这样做了)。不过,你可以通过按N键 -> 工具 -> 过滤插件 -> 禁用过滤器来过滤掉它们。 > > <img alt="图像" width="367" height="637" src="https://private-user-images.githubusercontent.com/104736380/516046737-770b2c07-c0c9-4cf6-8f38-a8a53d4f116d.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjM1MjE2NjYsIm5iZiI6MTc2MzUyMTM2NiwicGF0aCI6Ii8xMDQ3MzYzODAvNTE2MDQ2NzM3LTc3MGIyYzA3LWMwYzktNGNmNi04ZjM4LWE4YTUzZDRmMTE2ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUxMTE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MTExOVQwMzAyNDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zNDI1MGQ5YTYzNGY1NWRhNWUyZDFmNDVlNTMzZmJlODViMWFjN2U4NzNhZWQ5Y2ZmOTYyNGQ1MDk3MTg0YzY4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.UfUL7Hm0Ja6xQZbg-0peH2u3FmZLyO5hqWJsmF1Zi7E"> It turns out that there is also this tip, thank you very much, I wish you all the best
Ghost commented 2025-11-19 03:07:56 +00:00 (Migrated from git.disroot.org)

No worries, i will close this issue now as it's resolved is you have any other issues with texture loss feel free to re-open.

No worries, i will close this issue now as it's resolved is you have any other issues with texture loss feel free to re-open.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Kneelawk/Cats-Blender-Plugin#381
No description provided.