Try adding light to the scene or simply assign Obj a MeshBasicMaterial to see its shape:
var objLoader = new THREE.OBJLoader(); var material = new THREE.MeshBasicMaterial({color: 'yellow', side: THREE.DoubleSide}); objLoader.load('file.obj', function (obj) { obj.traverse(function (child) { if (child instanceof THREE.Mesh) { child.material = material; } }); scene.add(obj); });
Then you can see that the model is already loaded. If not, try adjusting the position of your camera.
There is no light in the documentation, so it seems rather confusing at this point for beginners, including me. :)
source share