After following this example on how to load .obj Models using three.js, I decided to experiment with loading more than one model. Here is a snippet of the code I used:
loader.addEventListener( 'load', function ( event ) {
var object = event.content;
object.position.y = - 80;
scene.add( object );
});
loader.load( 'obj/model1.obj' );
loader.load( 'obj/model2.obj' );
Firstly, I am unsure if this approach is correct as I couldn't find any tutorials on loading multiple .obj models.
Secondly, I want to enable users to click on different models displayed on the screen. I attempted to implement a solution from this interactive cubes example, but it didn't work for me. Any suggestions or alternatives?