Hello! I am currently working on adding an MTL file to my OBJ in three.js. I had successfully loaded my OBJ and went back to address this issue. However, after adding the code to load the MTL file using MTLLoader
, the code seems to be getting stuck at mtlLoader.load(url, ....)
. This has resulted in only the scene rendering without anything inside of it. I have been using alerts to monitor the progress of the code and noticed that alerts are triggered before this particular statement but not after. Most solutions I have come across suggest using OBJMTLLoader
, which unfortunately is no longer supported in the current version of three.js (r74).