Load a .obj and .stl in Babylon.js

Oli picture Oli · Nov 13, 2014 · Viewed 7.1k times · Source

I want to load a file, using Babylon.js, that has been uploaded by the user. I've looked around but can only find examples of loading babylon scene files.

Is there a way of loading .obj and/or .stl files directly with Babylon.js without having to convert them to .babylon files?

Thanks.

Answer

David Catuhe picture David Catuhe · Nov 21, 2014

to reduce framework size, Babylon.js does not include file loader. But you can go there an use one of our loader: https://github.com/BabylonJS/Babylon.js/tree/master/loaders