Transparent materials appear black or opaque after runtime import on Meta Quest.
@robertdorn83 y travaille déjà.
Depuis le 13/2/2025.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
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.
- Langage dominant
- C#
- Étoiles
- 2.3k
- Forks
- 539
- Merge moyen
- 3 j 15 h
- PR mergées (30 j)
- 2
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de KhronosGroup/UnityGLTF
-
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
KhronosGroup/UnityGLTF#911 · 6 commentaires ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
KhronosGroup/UnityGLTF#894 ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
KhronosGroup/UnityGLTF#893 · 1 commentaire ·
-
Vertex reordering after importOuverte
Difficulté 4/5 3-5 jours Accessibilité débutants 38/100
KhronosGroup/UnityGLTF#890 · 3 commentaires ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
KhronosGroup/UnityGLTF#889 · 1 commentaire ·
Toutes les issues de KhronosGroup/UnityGLTF
Issues similaires
-
launcher item missingOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
Realm667/WolfenDoom#1758 ·
-
SDK version compatibility issueOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 82/100
-
AI documentation good first issue help wanted
Difficulté 1/5 1-3 heures Accessibilité débutants 84/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
Keboo/SimplyBudget#334 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 77/100
Les mainteneurs répondent en général sous 1 jour