OBJ files rendering doesn't include materials
@Floppy thanks for reply, but it didn't work. For example below. When I use the upload content with the zip, the content just ends up showing the 5 jpgs, and not even the obj. If I just put the zip in the /models directory and hit scan, nothing shows up.
Originally posted by @ForceConstant in #2306
I've uploaded that file to my local server, and I can see 5 JPGs, one OBJ file and one MTL file.
The OBJ rendering isn't showing the materials properly, which I'll look into, but I can definitely see all the files. @ForceConstant, if you look at the model after uploading the zip, and click "edit all files" do you see a list like above, but without the OBJ and MTL?
Looking at the THREE.js code, it looks to me like the OBJLoader doesn't actually automatically load the MTL file - I thought it did. So, if you're just seeing no textures on the 3D model, that's why, and I can improve that.
But, I'm concerned that you're not getting a 3D model at all...
Yes you are right, the obj/mtl files do show up in the bundle, but I would have expected the obj file to be the default "set as preview" and yes the material is not applied to the obj.
Thanks.
Ok, great, that matches what I can see. I'll have a look at MTL rendering and see if I can think of anything around the previews.