Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Load a .obj and .stl in Babylon.js

Tags:

babylonjs

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.

like image 456
Oli Avatar asked Nov 13 '14 19:11

Oli


1 Answers

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

like image 198
David Catuhe Avatar answered Oct 18 '22 14:10

David Catuhe