saturday06 / VRM-Addon-for-Blender

VRM Importer, Exporter and Utilities for Blender 2.93 to 4.2
https://vrm-addon-for-blender.info
MIT License
1.32k stars 142 forks source link

Bug report: Mesh, textures, and armature are imported, but data such as Meta, Humanoid, Blend Shape Proxy, and Spring Bone are not imported. #336

Open nilepereiraa opened 1 year ago

nilepereiraa commented 1 year ago

Describe the bug

I am able to import the models and the armature just fine, but bringing up the VRM Panel through the "N" menu shows that all the data is empty. Meta info, Humanoid bone assignments, Blendshape Proxy, First Person, and Spring Bone data are nonexistent. "vrm.json" does not seem to be imported

To Reproduce

Steps to reproduce the behavior:

  1. Install latest version of VRM Addon
  2. Import model
  3. Check VRM N Panel
  4. No data in any of the sections

Expected behavior

VRM Addon should import the data associated with the model, instead of just the Textures, Armature, Meshes, and Empties.

Screenshots

image image

Desktop (please complete the following information)

Additional context

I'm not sure what causes it to behave this way. Could it be the custom workspaces? Or Filter Addons being enabled? Everything else works fine. Back when it was still working, there was a vrm.json that would get imported along with all the files, but now I don't see that file being imported or created with the addon.

saturday06 commented 1 year ago

Thanks for reporting!

Maybe it is a bug in the add-on. To investigate the bug, error messages are shown in the console, so please go to the menu "Window" -> "Toggle System Console" to display the console and share its contents.

screenshot
saturday06 commented 1 year ago

This console may contain your PC username, so to be safe, please remove it from the screenshot.

nilepereiraa commented 1 year ago

Hello! I may have determined the cause for the bug. image

To reproduce the bug:

It seems that the addon fails to import the rest of the VRM data like the meta info, bone assignments, and blend shape proxy if the building of the mToon shaders fail.

I have gotten around this problem by installing the color transformations from Blender 4.0, which does include "Non-color". Perhaps a fallback could be added to force the addon to continue importing data despite the mToon shaders failing to build?

saturday06 commented 1 year ago

The error was resolved with the latest add-on released a while ago. Please try!

Perhaps a fallback could be added to force the addon to continue importing data despite the mToon shaders failing to build?

Although this is possible, it is difficult because the data will be corrupted without the user knowing. It's a pain to add a process to make the user aware of the bug, so I'll deal with it another time.