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.29k stars 141 forks source link

Bug report / バグ報告: Textures are exporting without materials #99

Open CommonStarguy opened 2 years ago

CommonStarguy commented 2 years ago

Describe the bug / バグについて A clear and concise description of what the bug is. どのようなバグが起きているのか書いてください。

When exporting VRM from Blender, no texture materials are able to be baked or saved with the model.

To Reproduce / バグの再現方法 Steps to reproduce the behavior:

  1. Create model/armature
  2. Click on 'File > Export > VRM (.vrm)'
  3. Import to VSeeFace
  4. See error バグが発生する手順を書いてください。 バグが発生するモデルのファイルやそのURL、エラーメッセージを添付してもらえると助かります。

Expected behavior / 期待する動作 A clear and concise description of what you expected to happen. どうのようにバグを直してほしいか書いてください。

Model should have textures/shader

Screenshots / スクリーンショット If applicable, add screenshots to help explain your problem. 何か参考になりそうなスクショがあれば添付してください。

How model looks in viewport: image How model looks in VSeeFace (SpringBones also need adjusting) image

Desktop (please complete the following information) / PC環境情報

Additional context / なにか他に書いておきたいことはこちらへ Add any other context about the problem here.

saturday06 commented 2 years ago

Thanks for reporting!

The add-on exports materials in the same way as the Blender glTF 2.0 Add-on because VRM is derived from glTF 2.0. glTF 2.0 Add-on is limited in the number of supported shader node groups, see documentation. https://docs.blender.org/manual/en/3.0/addons/import_export/scene_gltf2.html?highlight=gltf#exported-materials

In addition, our add-on adds VRM's own shader node group. Materials are exported using them. スクリーンショット 2022-03-20 20 30 22

This is a common pitfall and will be documented in a future document.

saturday06 commented 2 months ago

Documentation written https://vrm-addon-for-blender.info/en/material-pbr