Fedor Posted May 17, 2017 Share Posted May 17, 2017 For my project I need to export models in a popular file format that supports bones and animations. FBX or DAE would spring to mind first. Are there any exporters for BabylonJS out there? Quote Link to comment Share on other sites More sharing options...
Sebavan Posted May 17, 2017 Share Posted May 17, 2017 Hello, Please have a look at this part of the documentation: https://doc.babylonjs.com/exporters The ones supporting the largest set of features being 3DSMax, Blender and Unity. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted May 17, 2017 Share Posted May 17, 2017 The export format is .babylon. This format supports bones and animations. You will find exporter to blender, 3ds Max, maya and cheetah3d that will export all you need to in .babylon https://github.com/BabylonJS/Babylon.js/tree/master/Exporters Quote Link to comment Share on other sites More sharing options...
Fedor Posted May 17, 2017 Author Share Posted May 17, 2017 With exporting, I mean exporting from BabylonJS perspective. I need functionality to export a model in my Babylon-application to one or more popular 3D file formats. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted May 17, 2017 Share Posted May 17, 2017 Maybe this: https://github.com/BabylonJS/Babylon.js/tree/master/loaders Quote Link to comment Share on other sites More sharing options...
Fedor Posted May 17, 2017 Author Share Posted May 17, 2017 This is a loader ... a.k.a. an importer... I need to export. The model is IN my BabylonJS application and needs to get out in a file... Quote Link to comment Share on other sites More sharing options...
Dad72 Posted May 17, 2017 Share Posted May 17, 2017 There is no such thing as this in Babylon. you must create your exporter in this case. Quote Link to comment Share on other sites More sharing options...
Fedor Posted May 18, 2017 Author Share Posted May 18, 2017 Too bad there is not a native functionality in BabylonJS, but I am hoping there are other users who have created some exporting functions themselves. If so, please let me know... Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted May 18, 2017 Share Posted May 18, 2017 I am writing up one for STL format today for a client... I will have to ask permission to submit it to public domain though, and if they say yes Ill make an update on my branch or submit it to someone who can convert it to typescript. Just reverse the importer. jellix 1 Quote Link to comment Share on other sites More sharing options...
Fedor Posted May 18, 2017 Author Share Posted May 18, 2017 Looking forward to see it.... Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted May 18, 2017 Share Posted May 18, 2017 STL was super easy, I can not release what I did today but in like no time I was able to grab the indices and calculate the facet normal from the points then create and ASCII STL file save it as an octet-stream and bam... Im exporting from BJS now. I will ask the company that I made it for if I can supply this code to y'all, but they own it so I cant without written consent. Seriously though it took like an hour to get it right, what format are you trying to export out as? Id say go to its wiki and read its structure then start going down the line of what you need to include and how to get them out of the BJS data. Quote Link to comment Share on other sites More sharing options...
Fedor Posted May 19, 2017 Author Share Posted May 19, 2017 I would like to use a format that supports bones and animations, and textures. I am currently trying to figure FBX out - your succes makes me optimistic about coding an FBX exporter myself. It is also a ASCII format, like STL... Quote Link to comment Share on other sites More sharing options...
Dad72 Posted May 19, 2017 Share Posted May 19, 2017 You will have to do the reverse operation of exporter FBX. Good luck with that Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted May 19, 2017 Share Posted May 19, 2017 FBX is a pain.... I was going to write something up for it a while ago... but It was not easy and took way to much time so I kinda dropped it. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 29, 2017 Share Posted May 29, 2017 We have OBJ exporter as well:https://github.com/BabylonJS/Babylon.js/tree/master/serializers/src Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.