KhronosGroup / KhronosGroup/UnityGLTF

GLB models from sketchfab imported with wrong materials

Open
#798 9 comments 0 reactions 1 assignee Claimed by @robertdorn83 View on GitHub
bug
Dominant language
C#
Stars
2.2k
Forks
536
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug 💬

Import GLTF models from sketchfab. I am using URP.

https://sketchfab.com/3d-models/lowpoly-generic-suv-police-259fc16c23d548ba8d5802c563d8ebdc
![image](https://github.com/user-attachments/assets/e5040c49-6144-4255-bbe9-4667a2c344ef)

https://sketchfab.com/3d-models/unc-old-well-13f0b2efb35f4d13868e634a68b6465a

GLFast got the materials for the old well model right.
Both models rendered correctly in https://gltf-viewer.donmccurdy.com/

### Steps to reproduce 🔢

Download the model and import

### Files to reproduce the issue ♻

https://sketchfab.com/3d-models/lowpoly-generic-suv-police-259fc16c23d548ba8d5802c563d8ebdc

### Editor Version 🎲

2021.3

### Render Pipeline and version

URP

### UnityGLTF Version

latest

### Operating System 👩‍💻

Linux

### When does this problem happen?

- [X] Editor Import
- [ ] Runtime Import
- [ ] Editor Export
- [ ] Runtime Export

### Additional Info 📜

_No response_

### Validations 🩹

- [X] I have [searched existing issues](https://github.com/KhronosGroup/UnityGLTF/issues): no issue already exist that reports the same problem.
- [X] I follow the [Code of Conduct](https://www.khronos.org/about/code-of-conduct)
- [X] I provided a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example), including files when necessary.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.