I am trying to convert MMD files into gltf files for use on the web. I use a plugin called https://github.com/powroupi/blender_mmd_tools to import them into blender, but when I export them, they don't keep their textures. I understand that this happens because the generated materials use complex nodes, so I was wondering if there was a quick way to flatten all materials into a simple unlit material.
Asked
Active
Viewed 2,683 times
1
-
1How about just removing all materials: https://blender.stackexchange.com/a/7161 ? – brockmann May 26 '20 at 10:22
-
1Can you edit this question to include a screenshot of the shader nodes output by that tool? – emackey May 26 '20 at 17:45
-
2The preferred material setup is documented in https://docs.blender.org/manual/en/2.82/addons/import_export/scene_gltf2.html. You can use a process like https://blender.stackexchange.com/questions/13508/how-do-i-bake-a-texture-using-cycles-bake to bake a diffuse texture (or other things) which are compatible with that setup. – Don McCurdy May 29 '20 at 01:38
-
Thanks Don McCurdy I used the second process, I wasn't able to get it to work, but I did it again and it worked. :) – Ramon González Fernández May 30 '20 at 03:49
-
Can someone mark this as duplicate or make the comment an answer? – Ramon González Fernández May 30 '20 at 03:54
-
OK, I've made the comment an answer. – Don McCurdy Jun 12 '20 at 02:37
-
Thanks! I marked it as the answer already. – Ramon González Fernández Jun 14 '20 at 03:38
1 Answers
1
The preferred material setup is described in the Blender glTF addon docs. You can use a process like How do I bake a texture using Cycles bake to bake a diffuse texture (or other things) which are compatible with that setup.
Don McCurdy
- 1,214
- 6
- 21