google-ar / three.ar.js

A helper three.js library for building AR web experiences that run in WebARonARKit and WebARonARCore
https://developers.google.com/ar/develop/web/getting-started
Apache License 2.0
2.91k stars 365 forks source link

`loadBlocksModel()` issue with some MTL textures #57

Closed jsantell closed 6 years ago

jsantell commented 6 years ago

Loading this blocks model, I get an all red box like this when calling ARUtils.loadBlocksModel('model.obj', 'materials.mtl'):

screen shot 2017-11-04 at 5 15 19 pm

When I manually use OBJLoader/MTLLoader in the same method as A-Frame's obj-model component, I get the full texture, including the white lid:

screen shot 2017-11-04 at 5 16 03 pm

My paths look like 'model.obj' and 'materials.mtl'. I tried with './model.obj'/'./materials.mtl' as well with the same result