Uncaught TypeError: Cannot read property 'map' of undefined [RESOLVED]

My first attempt at showing some .obj models created awhile ago, using three.js. So, a complete and total three.js and WebGL n00b, but with JS experience.

I followed this tutorial code, but updated the libraries to the latest from the thee.js repo.

I’ve already worked through a few errors, but this one is persistent, and the similar questions I can find on StackOverflow don’t help.

My repo is here.

What happens if you remove these lines?

materials.materials.default.map.magFilter = THREE.NearestFilter;
    
materials.materials.default.map.minFilter = THREE.LinearFilter;

1 Like

Commented these out, and it works, thanks! Remaining issue is one of scale - I’m right inside the bowl and it’s too big, but I guess that’s something I can tinker with now.

1 Like