WombatTurkey Posted November 27, 2016 Share Posted November 27, 2016 I'm kind of not feeling the vibe to create my 2d game anymore And plus, I really just found out how popular 3d models are especially after looking at cgtrader Anyways, I am pretty versed with Blender and found an artist who sells a lot of character models that have tons of animations (idle, walk, run, hit, die, etc) (https://www.cgtrader.com/maxbugor). I'm just curious if Babylon would be okay to use these fbx files (I assume I need to load them in Blender or whatever, then export them to Babylon?) Here is the type of game: Obviously not exactly like that as I would need a large team. But I'm just saying like moving around in a skybox, using animations and hitting mobs, etc. With some decent lightning. Maybe there is an example out already for this type of game that I can learn from? Thanks in advance! Quote Link to comment Share on other sites More sharing options...
dbawel Posted November 27, 2016 Share Posted November 27, 2016 The best method currently is not FBX but to import into Blender as OBJ. Then export to .babylon. I wrote some of the FBX code, so this is not personal. DB Quote Link to comment Share on other sites More sharing options...
WombatTurkey Posted November 27, 2016 Author Share Posted November 27, 2016 4 minutes ago, dbawel said: The best method currently is not FBX but to import into Blender as OBJ. Then export to .babylon. I wrote some of the FBX code, so this is not personal. DB Hey, thanks! If I import the obj, does that still retain animation data? Even after, for the .babylon file as well? Quote Link to comment Share on other sites More sharing options...
dbawel Posted November 27, 2016 Share Posted November 27, 2016 No OBJ doesn't pass animation. Use FBX and import the animation into Blender (or whatever) and then import OBJ and re-attach the animation to your geometry, However, once you export from Blender (the best method to a .babylon file) all info will be exported, however I like to do my texturing and shading BJS. DB WombatTurkey 1 Quote Link to comment Share on other sites More sharing options...
rgalindox Posted November 29, 2016 Share Posted November 29, 2016 Hi, I'm new with BabylonJS. I'm assessing it for a big project. I have a scene in Unity with more than 50 different assets all are FBX. How can I import 50 .babylon files, can you import more than one .babylon file? I thought the .babylon file is like as full scene. Quote Link to comment Share on other sites More sharing options...
Lightnet Posted November 30, 2016 Share Posted November 30, 2016 Using the blender since it can export .babylon file note not much detail on how export that I yet looked. You can check out their GitHub where there are tools for exporting and converting files. You can export the whole scene but you can select export mesh only or skeleton mesh with animation. You need to toggle hide mesh or bones to export what you wanted. Quote Link to comment Share on other sites More sharing options...
gryff Posted November 30, 2016 Share Posted November 30, 2016 On 2016-11-28 at 7:18 PM, rgalindox said: can you import more than one .babylon file? I thought the .babylon file is like as full scene. @rgalindox : Hi and welcome to the forum. You can load multiple .babylon files using "SceneLoader.Append". See a simple example by @JCPalmer : I'm not sure if there is a limit - either theoretical or practical - but you may want to consider combining some of those 54 files before writing out 54 "Append" statements If you look at my "Man From Babylon" demo it uses 2 "Appends" to create the scene. cheers, gryff Quote Link to comment Share on other sites More sharing options...
rgalindox Posted November 30, 2016 Share Posted November 30, 2016 Thanks for the replies. I'll test the Append method. Is any of you having success importing FBX or OBJ objects to BabylonJS? I should have the objects on the scene (50 as I informed above) and then instantiate some of them several times. I can convert from FBX to OBJ, but reading some forums it seems it is not working well, but if you can have a link or steps to do it correctly I'll appreciate it a lot! Thanks Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 30, 2016 Share Posted November 30, 2016 Just random question: if you have everything in Unity, why not exporting them FROM unity to babylon.js ? 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.