When working with models in *.obj format that do not have material files (*.mtl files), I have noticed that some online services like and display them correctly. However, in my project, I am experiencing issues as per the three.js documentation, where the model is displayed incorrectly: https://i.sstatic.net/HQdIe.png instead of: https://i.sstatic.net/B6k3j.png
The developer at mentioned that if the *.mtl file is missing, the script will apply a default color/material, painting the entire product in one color.
My question is, how can I color an object from a *.obj file to a specific color using the tools provided by three.js?
To help with testing, I have included a model file that does not come with a material file: test sample *.obj file.