Search code examples
3dsmaxbabylonjs

Issue trying to use a .babylon file on html


I'm trying to import a 3D scene from 3ds max to a html page, this is where I came up:

1) I imported a obj scene to 3ds max. 2) I exported the scene to a .babylon file (with one of the github exporters). 3) I opened the file in the sandbox of babylonjs.com. 4) I saved the html page. 5) I made the changes ("Loading your .babylon inside your page / app") listed in:http://blogs.msdn.com/b/eternalcoding/archive/2013/06/28/babylon-js-how-to-load-a-babylon-file-produced-with-blender.aspx?CommentPosted=true&PageIndex=3#comments. and Import a 3d scene into babylonJS

But when I want to open through my web server (xampp) just a blank screen appears, and if I do not make changes of the point 5 gets stuck in "loading" message.

What am I doing wrong? Sorry if my question is very obvious, I'm new to babylonjs.

Here some images: https://mega.co.nz/#!6VUDSIqL!ARNCGHJPutaChKWlWy0vtUi74anr3LtsiN2Pgd3niG8


Solution

  • This is because your apache server is not serving .babylon mimes types. If you are looking at your network tab in f12 tools you will see that .babylon file request returns a 403