Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mmdtools cant work in the blender 4.0 #116

Open
Ray-lea opened this issue Nov 14, 2023 · 16 comments
Open

mmdtools cant work in the blender 4.0 #116

Ray-lea opened this issue Nov 14, 2023 · 16 comments
Labels
enhancement New feature or request

Comments

@Ray-lea
Copy link

Ray-lea commented Nov 14, 2023

when I import the models,it say:

@Ray-lea
Copy link
Author

Ray-lea commented Nov 14, 2023

error

@nagadomi
Copy link

Blender 4.x breaks many compatibility.
Many changes are needed to make mmd_tools work. (I don't know about 4.x support plans of mmd_tools.)

Here are some incompatibilities I have confirmed.

  • Material Node Socket spec is changed (links.new(a, b) -> bpy_extras.node_utils.connect_socket(a, b), and more)
  • Linear Colorspace is renamed (Image.colorspace_settings)
  • Bone Layer is removed (new Bone Collection)

@1790374044
Copy link

see UuuNyaa/blender_mmd_uuunyaa_tools#108 (comment)
The situation is similar. According to https://mmd-blender.fandom.com/wiki/MMD_Tools#Requirements , it may be difficult to support 4.x at this stage.
(Non-native English speaker, so the above content may contain grammatical errors(;´д`)ゞ

@UuuNyaa UuuNyaa added the enhancement New feature or request label Nov 15, 2023
@wikid24
Copy link

wikid24 commented Nov 17, 2023

@UuuNyaa
Copy link
Owner

UuuNyaa commented Nov 20, 2023

@Ray-lea
Copy link
Author

Ray-lea commented Nov 20, 2023

Thanks for uuunyaa,the model import successfully,but there is still a lot of functions is not work,such as "convert to blender",there is lots of adaptive changes for blender V4 need to do.

@97lily
Copy link

97lily commented Nov 29, 2023

First of all, I would like to mention that this is a comment because I am reporting the results of a trial run on a version that is not yet supported, and I am using LTS when creating my work.

Currently, the shape of the model is generally loaded, but the model is displayed as a pure white, probably because the paths such as textures cannot be referenced correctly (I tried running it experimentally with 4.0. )

If it helps, I can provide the error log when loading the basic model of mmd.

@nagadomi
Copy link

Not sure if this is related,
all hidden materials are visible when loaded (Alpha is 1 in all mmd_shader nodes).

works fine with the following changes

diff --git a/mmd_tools/core/material.py b/mmd_tools/core/material.py
index c98a4a5..ffbf741 100644
--- a/mmd_tools/core/material.py
+++ b/mmd_tools/core/material.py
@@ -728,7 +728,7 @@ class _FnMaterialCycles(_FnMaterialBI):
             input_socket = shader.node_tree.interface.items_tree[name]
             if hasattr(input_socket, 'min_value'):
                 val = min(max(val, input_socket.min_value), input_socket.max_value)
-            input_socket.default_value = val
+            shader.inputs[name].default_value = val
 
     def __update_shader_nodes(self):
         mat = self.material

@UuuNyaa
Copy link
Owner

UuuNyaa commented Nov 29, 2023

@97lily @nagadomi Thanks for the reports 😀
Node API is changing destructively. And I still don't understand it properly....

7ce9364

@emendez17
Copy link

how long mmd will be fix?

@UuuNyaa
Copy link
Owner

UuuNyaa commented Dec 27, 2023

how long mmd will be fix?

According to MMD Tools support policy, only Blender LTS releases will be supported.
So, we are developing MMD Tools to meet the Blender 4.3 LTS release milestone, targeting November 12, 2024.

@emendez17
Copy link

mmd tool not work!? I Don't know how long with blender will be done online?

@UuuNyaa
Copy link
Owner

UuuNyaa commented Dec 27, 2023

mmd tool not work!? I Don't know how long with blender will be done online?

MMD Tools works on Blender 3.6 LTS.
But MMD Tools does not work on Blender 4.0, 4.1 and 4.2.
In the future, MMD Tools will work on Blender 4.3.

@UuuNyaa
Copy link
Owner

UuuNyaa commented Jan 9, 2024

Blender 4.2 will be released on July 16, 2024 as the next LTS.
So I plan to release MMD Tools for Blender 4.2 LTS on July 16, 2024.

see: Blender 4.2 LTS release milestone

@97lily
Copy link

97lily commented Jan 17, 2024

@UuuNyaa There are still people who file issues without reading the explanation if it doesn't work on 4.0,
(sadly like this #126)
so it might be better to highlight it by writing something like (Releasethe module version [version of Blender that works]) like with other add-on release name.
I think this is an unnecessary inconvenience, but I hope it will help reduce stress for developers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants