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

Import時に頂点バッファが重複して後ろに連結されてしまう #610

Closed
ousttrue opened this issue Nov 13, 2020 · 3 comments
Labels
bug Something isn't working
Milestone

Comments

@ousttrue
Copy link
Contributor

ousttrue commented Nov 13, 2020

バグについて

Import時に頂点バッファが重複して後ろに連結されてしまう

v0.56以降のimporterで

  • mesh.extras.targetNames が存在する
  • len(mesh.primitives) > 1

のデータをロードする`と起きる。

再現方法

  1. morphTarget があって、subMeshが2個以上ある vrm/glb をimport する
  2. vertes 数が x subMesh.count される

スクリーンショット

verts

ある場合は、問題の説明に役立つスクリーンショットを追加してください。

環境情報

  • OS: Windows10
  • Unity version: Unity-2018.4
  • UniVRM version: v0.56以降

追加の状況・背景

この問題に関するその他の状況・背景など記載したい場合にここに記載してください。

ousttrue added a commit to ousttrue/UniVRM that referenced this issue Nov 13, 2020
@ousttrue ousttrue added the bug Something isn't working label Nov 13, 2020
@ousttrue ousttrue added this to the v0.62 milestone Nov 13, 2020
@ousttrue
Copy link
Contributor Author

position, normal, uv, bone, joint などが同じ頂点が、異なる subMesh で共有されている可能性は低い。共有頂点バッファ方式やめた方が良いのでは。GLTF的にはトリッキーになっている。

@ousttrue
Copy link
Contributor Author

https://github.com/vrm-c/UniVRM/pull/581/files

から発動するので、
UniVRMのエクスポートでは、まだ起きない。別のエクスポーターで作ったデータは起きている可能性がある。

mesh.extras.targetNames がトリガー。

@ousttrue
Copy link
Contributor Author

共有バッファ方式は、 1.0 ではやめる方針。
0系では据え置きかも。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant