Only 4 bone weights per vertex exported/imported when Unity supports up to 256

オープン
#722 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp, unity
領域
game-dev

調査の方向性

まず、UnityEngine.BoneWeight を使用しているインポーターとエクスポーターのコードパスを特定し、それらの処理を Unity の BoneWeight1 API ドキュメントと比較します。エクスポート時に頂点あたり 4 つを超えるボーンウェイトを持つメッシュが無視されず、インポート時に切り詰められなくなり、リポジトリにテストがある場合は関連するカバレッジが追加されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

I found out that more than 4 bone weights per vertex are not supported for import/export. Both in the exporter and importer code you are using the old UnityEngine.BoneWeight struct. Unity has now a preferred API which uses the UnityEngine.BoneWeight1 struct that supports up to 256 bone weights per vertex. Right now any mesh using this functionality will be ignored by the exporter and any imported glTF with more than 4 weights will also be clamped.

Here is the Unity docs for reference: https://docs.unity3d.com/ScriptReference/BoneWeight1.html

Importer/Exporter code should be updated to use that API instead of the old struct to support more weights per vertex.

主要言語
C#
スター
2.3k
フォーク
539
平均マージ
3日 15時間
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

KhronosGroup/UnityGLTF のほかの issue

KhronosGroup/UnityGLTF の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。