MarianG
February 21, 2019, 12:36pm
1
Hi. I just updated my library version to alpha.28
It no more work to import in the scene an obj file which has mtl file.
Playground
https://www.babylonjs-playground.com/#95MJI8#8
Stable
https://www.babylonjs-playground.com/indexStable.html#95MJI8#8
Ping @brianzinn to see if he can check
Pryme8
February 21, 2019, 6:26pm
3
Does it work when you delete the MTL?
What program did you use to export it?
MarianG
February 21, 2019, 6:42pm
4
Pryme8
February 21, 2019, 6:44pm
5
PM me the content of the MTL.
Pryme8
February 21, 2019, 7:09pm
7
What happens when you delete the MTL reference from the OBJ file?
That really looks like something in the loader, since the MTL file is loaded in the network tab and additionally the onSuccess is triggered. Won’t be able to look at that until late this evening, but will report here findings as soon as I can.
2 Likes
MarianG
February 21, 2019, 7:18pm
9
Here is an obj without mtl reference and this is working
Pryme8
February 21, 2019, 7:21pm
10
Kinda figured it would… hmm ok I have a really good idea what is going on. When I get more time to look into it Ill get you a solid solution.
It’s the format of your position vertices with an extra space. I will create a PR now to address. Thank-you for reporting.
2 Likes