Viewing this model in AR mode on Android causes Scene Viewer to crash

オープン
#5,148 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
android, typescript

調査の方向性

まず、添付された Light.zip モデルを使って Android Scene Viewer でクラッシュを再現し、その後、Y=0 以下のジオメトリに対して AR カメラの near および far plane の値がどのように計算されるかを追跡します。モデルが、報告された Filament の assertion やクラッシュなしに AR モードで開くこと(地面の平面より上に頂点が1つもない場合も含む)が完了の条件です。

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

説明

I have pinpointed the issue to the fact that this model has no vertices above the Y=0 ground plane. If I create another version of the file with all the vertices shifted a tiny amount above the Y=0 plane, or a version with the transform itself shifted up a tiny amount, then it no longer crashes. I think it's because it's using only the mesh data found above the Y=0 plane to calculate the near and far plane values for the camera, but since there isn't any, it uses near=0 and far=0 and then Filament crashes.

04-21 13:46:24.330 E Filament: reason: Camera preconditions not met in setCustomProjection(): near = far = 0
04-21 13:46:24.485 F libc    : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL)

Light.zip

主要言語
TypeScript
スター
8.4k
フォーク
964
平均マージ
5日 11時間
マージ済み PR(30日)
8

環境構築

はじめの一歩

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

google/model-viewer のほかの issue

google/model-viewer の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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