Hi all,
I am trying to load .obj file. I dont have any errors in the browser but the object is not loaded but I get warnings as ‘THREE.OBJLoader: Unexpected line: “”’.
This is how I load the model
const loader = new OBJLoader()
console.log('')
loader.load('/assets/r2-d2.obj', function(obj) {
scene.add(obj)
})
const animate = () => {
window.requestAnimationFrame(animate)
renderer.render(scene, camera)
}
animate()
as the assets folder is on the same level as my file