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

UniVRM0.83以降で、特定のGLBモデルのロードに失敗する #1257

Closed
fantom1x opened this issue Sep 28, 2021 · 3 comments
Closed
Labels
bug Something isn't working
Milestone

Comments

@fantom1x
Copy link
Contributor

環境情報

  • UniVRM version: 0.83以降
  • Unity version: Unity-2020.3
  • OS: Windows 10

バグについて

  • バグの内容
    UniVRM0.82までは正常にロードできてましたが、ものによってはGLBモデルが読み込めないようです(エディタ上ではエラーが出ます)。

  • ConsoleLog
    ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    (以下略)

  • スクリーンショット
    ※最初の1つ(Unityちゃんのコイン)は正常に読み込める例

(UniVRM0.82) ※正常にロードできている例

UniVRM0.82_glb_load_success.mp4

(UniVRM0.84) ※最初の1つ以外はロードに失敗

UniVRM0.84_glb_load_fail.mp4
@ousttrue
Copy link
Contributor

ousttrue commented Sep 29, 2021

報告ありがとうございます。
サンプルを修正しました。

原因は、v0.83.0 でサンプルのコードを更新したときに vrm とそれ以外の gltf の分岐方法を変えたことでした。
分岐方法をファイルの拡張子に基づく方法に変更しました。

エラーの発生する glb の条件は、

  • glb の中に extensions.VRM が存在する => new VRMDataNotVrm0Exception が throw されずに通過する
  • vrm の後続の処理でエラーになる

です。

  • vrm として作成して glb にリネームしているモデルの一部で発生する可能性があります。

@ousttrue
Copy link
Contributor

v0.85.0

@ousttrue ousttrue added this to the v0.85 milestone Sep 29, 2021
@fantom1x
Copy link
Contributor Author

そう言えば、glbロードでサムネイルが表示されてましたが、そういうことだったんですね…。

理解しました。ありがとうございます。

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

2 participants