GLB model appearing green during runtime (needle export)

The model appears correctly on unity editor as shown on the link I downloaded from (Hubble Space Telescope - Download Free 3D model by Khaled Abdullah (@khaledabdullah.ezz) [0f4349d] - Sketchfab), but when I try to export it using needle exporter, the model is rendered completely green.
Please help me …

Original Post on Discord

by user 1041936873012080670

Hello, can you give some more info? What renderpipeline are you using and what materials/shaders is the model using?

Hey @Prasoon most likely reason is that it uses the KHR_materials_pbrSpecularGlossiness extension which has been deprecated by Khronos and isn’t supported anymore.

Recommend not using models that use KHR_materials_pbrSpecularGlossiness anymore.
In Unity, you can change the materials to use “UnityGltf/PBGraph” or “URP/Lit” and re-assign textures - you may have to shuffle some texture channels around

You can also convert the asset using gltf-transform (Command-line quickstart | glTF Transform) on the command line,

e.g. gltf-transform metalrough hubble.glb hubble.metalrough.glb which will give you a non-deprecated file :slightly_smiling_face:

@herbst​:cactus: thank you. The model is visible now, even if slightly different it is usable now.:+1:

by user 1041936873012080670

Excellent, thanks for letting me know!