Art Vandelay Posted November 15, 2017 Share Posted November 15, 2017 Hi, I am trying to load an obj file into a scene. The mesh loads fine, but the MTL file (which is in the same directory as the OBJ) doesn't load so the mesh basically has no texture. I am not sure why. In the documentation it says that babylonjs should load it automatically. What am I missing? Thanks for the help! Quote Link to comment Share on other sites More sharing options...
Gijs Posted November 15, 2017 Share Posted November 15, 2017 I've never done that, but can you maybe see anything of interest in F12 > Console or F12 > Network? Quote Link to comment Share on other sites More sharing options...
RaananW Posted November 15, 2017 Share Posted November 15, 2017 How does your .obj file declare the .mtl file? maybe the path is wrong there? Quote Link to comment Share on other sites More sharing options...
brianzinn Posted November 15, 2017 Share Posted November 15, 2017 In the blender exporter you can specify no materials, so would suggest look at export options. Compare .OBJ files with and without exported textures. If the material is specified look for 404s and reload browser cache. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.