Currently, I am attempting to import a model into my scene.
These are the files that I have included at the beginning of my project:
<script src="js/build/three.min.js"></script>
<script src="js/loaders/OBJLoader.js"></script>
Below is the code I am using:
var loader = new THREE.OBJLoader();
loader.load( "res/rose/ModelsAndTextures/rose.obj", function ( object ) {
scene.add( object );
} );
However, an error occurs: OBJLoader.js:46 Uncaught TypeError: THREE.FileLoader is not a constructor(…)
I examined the OBJLoader.js file and identified where the error is occurring:
var loader = new THREE.FileLoader( scope.manager );
Strangely enough, similar examples from other sources work perfectly fine for them