Transparent materials appear black or opaque after runtime import on Meta Quest.
@robertdorn83 已經在處理了。
開始於 2025年2月13日。
評估
這個 Issue 還沒有評估資料。
描述
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.
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.
Steps to reproduce 🔢
- Open Unity and place the GLB model directly into the scene. (this will work fine)
- Ensure the transparent materials (e.g., glass of the glasses, EyeAO) are displayed correctly in the editor.
- Add a EmptyGO with a GLTFComponent attached to it. This is what will instantiate the avatarToTest.glb at run time .
- Add the avatarToTest.glb to a streaming assets folder in the project and reference it in the GLTFComponent .
- Build and run the application.
- At runtime, use the GLTFComponent to load the same GLB model into the scene.
- Observe the model’s materials: all surfaces with transparent materials are rendered as black or opaque instead of transparent.
Files to reproduce the issue ♻
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 🩹
- I have searched existing issues: no issue already exist that reports the same problem.
- I follow the Code of Conduct
- I provided a minimal reproducible example, including files when necessary.
- 主要語言
- C#
- 星號
- 2.3k
- 分支
- 539
- 平均合併
- 3 天 15 小時
- 30 天內合併 PR
- 2
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
KhronosGroup/UnityGLTF 的其他 Issue
-
難度 4/5 3-5 天 新手友好度 48/100
KhronosGroup/UnityGLTF#911 · 6 則留言 ·
-
難度 5/5 一週以上 新手友好度 25/100
KhronosGroup/UnityGLTF#894 ·
-
難度 3/5 1-2 天 新手友好度 35/100
KhronosGroup/UnityGLTF#893 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 38/100
KhronosGroup/UnityGLTF#890 · 3 則留言 ·
-
難度 5/5 一週以上 新手友好度 25/100
KhronosGroup/UnityGLTF#889 · 1 則留言 ·
查看 KhronosGroup/UnityGLTF 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 62/100
Realm667/WolfenDoom#1758 ·
-
難度 1/5 1 小時以內 新手友好度 82/100
-
AI documentation good first issue help wanted
難度 1/5 1-3 小時 新手友好度 84/100
-
難度 2/5 1-3 小時 新手友好度 62/100
Keboo/SimplyBudget#334 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 77/100
維護者通常 1 天內回覆