benoit-1842 Posted June 12, 2015 Share Posted June 12, 2015 I am pretty sure it's implemented somewhere in the documentation but I couldn't find it. How can we drag and drop a .babylon scene created with blender (with an animation)? For example I have an animated .babylon scene and I want to drag and drop a new babylon scene (with animation) without to make change in notepad ++.. Thanx in advance, Benoit Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 12, 2015 Share Posted June 12, 2015 See here. I am using jQuery-EasyUI to do it, or jQuery-UI:http://www.html5gamedevs.com/topic/13744-add-mesh-to-scene-with-dragdrop/?p=78518 You can see how I did it in my game editor:http://www.castorengine.com/ Quote Link to comment Share on other sites More sharing options...
benoit-1842 Posted June 12, 2015 Author Share Posted June 12, 2015 Wow i didn't know it was complex like that I will explore that code and try to figure it out..... thanx, benoit Quote Link to comment Share on other sites More sharing options...
RaananW Posted June 13, 2015 Share Posted June 13, 2015 The function fileAdded() here https://github.com/BabylonJS/Extensions/blob/master/MaterialEditor/MaterialEditor/canvas/CanvasController.ts is taking a zip file added as a HTML input, reading it, and running the public loadScene(sceneBlob: string, binaries: Array<any>) in https://github.com/BabylonJS/Extensions/blob/master/MaterialEditor/MaterialEditor/canvas/CanvasService.ts Using this for drag and drop would work the same, the only difference is the input method. 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.