Textures not fully loading until page it refreshed

mtl-loader
obj-loader

#1

Hi, I have an app built for loading OBJ objects in layers, a few of them with MTL textures. On my local server the textures load well, but when I upload the app to Amazon S3 I need to refresh the browser to get all of the textures to load in Chrome. In Mozilla, only one texture will load. The live example is here:

https://s3.ca-central-1.amazonaws.com/vr-vision/3DforWeb/index.html

Any advice on getting all of the textures to load during the preloader?

Best regards,


#2

Without analyzing your code, it’s best when you switch from OBJ to glTF. I think this step will automatically solve your problem. Any you use the better 3D format. Read the following guide for more information about glTF.

https://threejs.org/docs/index.html#manual/en/introduction/Loading-3D-models


#3

Thank you @Mugen87, this worked.