pmndrs / three-stdlib

📚 Stand-alone library of threejs examples designed to run without transpilation in node & browser
https://npmjs.com/three-stdlib
MIT License
704 stars 117 forks source link

.obj loaded Model materials are off #334

Open Shane-oo opened 8 months ago

Shane-oo commented 8 months ago

Problem description:

Materials loaded with the MTLLoader and OBJLoader are not the same as threes.js' loaders. Colours are different between the two. this is colours loaded with three.js mtl and obj loader:

Screenshot 2024-01-11 142935

and this is colours loaded with three-stdlib mtl and obj loader:

Screenshot 2024-01-11 142928

Suggested solution:

I believe we are missing the commit: https://github.com/mrdoob/three.js/commit/f49819bc21babf06c935f902f64629daab9f8ddc where colours are converted from SRGB to Linear. There might be something else but I believe this could be it.

Thank you!