-
Original .glb 3D model has a color, normal, and MRO texture, with the last one structured as G=roughness, B=metallic, R=occlusion. Uploading the file in the model-viewer editor results in the correct formatting. See the picture below: Image removed Running gtlfpack on the .glb with simpe -i .glb -o .glb command line results in .glb that is highly glossy in the model-viewer editor. No other changes were made to the .glb. Image removed Any ideas on how to fix this? Turning of the normal map in model-viewer editor solves the problem, but also creates a new one (no normals) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
That seems like a bug. Would you mind opening an issue with a source model file attached if possible? If you aren't able to share the model publicly you can email it to [email protected] |
Beta Was this translation helpful? Give feedback.
-
After an offline investigation this was determined to be a bug in three.js that had a rather unique set of conditions so it only manifested in model-viewer. The fix for the bug has been submitted to three.js repository: mrdoob/three.js#21511 |
Beta Was this translation helpful? Give feedback.
After an offline investigation this was determined to be a bug in three.js that had a rather unique set of conditions so it only manifested in model-viewer. The fix for the bug has been submitted to three.js repository: mrdoob/three.js#21511