Invisible imported obj file with mtl


#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


#2

Ping @brianzinn to see if he can check :slight_smile:


#3

Does it work when you delete the MTL?

What program did you use to export it?


#4

https://www.babylonjs-playground.com/#95MJI8#9
with mtl file, but not uploaded.

https://www.babylonjs-playground.com/#95MJI8#1
obj without mtl

I’m using 3ds Max to export


#5

PM me the content of the MTL.


#6

Here is


#7

What happens when you delete the MTL reference from the OBJ file?


#8

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.


#9

Here is an obj without mtl reference and this is working


#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.


#11

It’s the format of your position vertices with an extra space. I will create a PR now to address. Thank-you for reporting.


#12

merged!


#13

Thank you all :muscle: