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.34k stars 142 forks source link

Bug report: UV Maps other than UV0 are not exported #635

Open lackofbindings opened 2 weeks ago

lackofbindings commented 2 weeks ago

Describe the bug

If you export a mesh that has more than one UV map, only the first one will be exported.

To Reproduce

Steps to reproduce the behavior:

  1. Create a mesh that has more than one UV map.
  2. Export as VRM.
  3. View in another tool such as Unity Editor and see that only the first UV map was preserved.

Expected behavior

All UV Maps that are present in blender should be present in the export (or at least the first four UV0-UV3).

Desktop

saturday06 commented 5 days ago

A bug in VRM0 export did not allow the correct UV map to be selected. This has been corrected in the latest version.

VRM1 exports all UVs correctly; VRM0 currently does not support this.

lackofbindings commented 2 days ago

Dang, well UniVRM can't seem to parse the VRM1 files that this addon generates so I was just using VRM0 since they seemed otherwise identical for my uses. I can't technically tell if that's an issue with UniVRM or this addon, but I'll probably have to take this up with UniVRM. Thanks for the explanation.