Seeking assistance to resolve an error message while attempting to load a 3D Model in Three.js. Unable to find any information online about this issue. Can anyone provide guidance? I have confirmed that the mtl and obj libraries are being called in the correct sequence - directly after threejs and before the model script.
The code snippet is shown below:
'use strict';
var scene6, camera6, renderer6, light, model, shipMtl, shipObj;
function init() {
//Code for initializing the scene, camera, lights, renderer, and model
}
function animate6() {
//Code for animation and rendering
}
window.onload = init;
Encountering the following error message:
OBJLoader.js:530 Uncaught Error: Unexpected line: 'usemap _defaultMat'
at THREE.OBJLoader.parse (OBJLoader.js:530)
at OBJLoader.js:51
at XMLHttpRequest.<anonymous> (three.js:30090)
Your help will be greatly appreciated. Thank you.