Transparent materials appear black or opaque after runtime import on Meta Quest.

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

@robertdorn83 がすでに取り組んでいます。

2025年2月13日 から。

評価

この issue はまだ評価されていません。

説明

bug
Describe the bug 💬

When placing the GLB model in the Unity scene before building the app, all transparent materials (e.g., glass and EyeAO) render correctly. However, after building the app and loading the model at runtime using the GLTFComponent, all surfaces with transparent materials are rendered as black or opaque instead of transparent.

Image

Image

On the left (black eyes), you can see the model that has been instantiated, and on the right, the model that was already in the scene.
Image

Steps to reproduce 🔢
  1. Open Unity and place the GLB model directly into the scene. (this will work fine)
  2. Ensure the transparent materials (e.g., glass of the glasses, EyeAO) are displayed correctly in the editor.
  3. Add a EmptyGO with a GLTFComponent attached to it. This is what will instantiate the avatarToTest.glb at run time .
  4. Add the avatarToTest.glb to a streaming assets folder in the project and reference it in the GLTFComponent .
  5. Build and run the application.
  6. At runtime, use the GLTFComponent to load the same GLB model into the scene.
  7. Observe the model’s materials: all surfaces with transparent materials are rendered as black or opaque instead of transparent.
Files to reproduce the issue ♻

avatarToTest.zip

Editor Version 🎲

2022.3

Render Pipeline and version

URP

UnityGLTF Version

2.14.1

Operating System 👩‍💻

Android

When does this problem happen?
  • Editor Import
  • Runtime Import
  • Editor Export
  • Runtime Export
Additional Info 📜

No response

Validations 🩹
主要言語
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 を短くまとめたダイジェスト。