DarkLight

Members
  • Content count

    7
  • Joined

  • Last visited

  1. 3D Web Constructor

    Thxs @NasimiAsl
  2. Hello thxs @Sebavan that was the solution. I checked the FilesInput code and it was calling the Load function, this one is creating a new instance so i used instead of it the Append and i pass my scene in argument. BABYLON.FilesInput.prototype.reload = function() { var onSuccess = function(scene) { console.log('onSuccess'); }; var onProgress = function() { console.log('onProgress'); }; var onError = function() { console.log('onError'); }; BABYLON.SceneLoader.Append("file:", filesInput._sceneFileToLoad, sceneManager.scene, onSuccess, onProgress, onError); }; And this works Thxs alot dude ! Regards
  3. I'll try to do it on playground. I have a question regardint this FilesInput, does it create a new scene every time ? cause i noticed that the scene was modified in the engine instance. I want to keep the old scene and just take the meshes from the loaded scene, is that possible or not ? Regards
  4. Hello all, Im trying to load a mesh using FilesInput via Drag and drop like in the sandbox. Im always getting the following error: 'Error: No camera defined babylon.js:10:28650' I tried alot of solutions and im always getting the same error. The scene is already created and rendering perfectly i want just to get the meshes from the files. Here the code for the creation of the FilesInput instance. filesInput = new BABYLON.FilesInput(sceneManager.engine, sceneManager.scene, sceneLoaded, null, null, null, function () { BABYLON.Tools.ClearLogCache() }, null, sceneError); And here the call for the loadFiles on drop event. function drop_handler(ev) { console.log("Drop"); ev.preventDefault(); filesInput.loadFiles(ev); } Please note that sceneLoaded callback is not even called. Thxs in advance Regards Darklight
  5. 3D Web Constructor

    Thxs sure i'll do
  6. 3D Web Constructor

    Hello all i want to present you my new project, It's a Web CAD (It will be in the future ) for the moment it's more a viewer. For the moment i am focusing to include the most common features of BabylonJs. Here a capture of the current state As you can see it allows to see the loaded object structure, in the tree you can hide or show or allow wireframe to the a specific object, in addition you have the global actions that will be applied for all meshes. The application also has a custom context menu Here the Prefab creation section Here what i call the compound objects Mode (CSG Balybon plugin) I implemented a 3D section mode also (Still contains some bugs ) For the moment the Import is hard coded i don't have yet a server side implementation, this is the next step. The toolbar contains some other options like remove, clone mirror a mesh, change camera views, and camera behavior on selection. Your feed backs are all welcome (Positive or negative), any ideas are welcome too. Here the link to the project on github you can try it your self https://darklight4070.github.io/3DWebConstructor/ And here the source code https://github.com/DarkLight4070/3DWebConstructor And thxs for this nice BabylonJs framework Regards DarkLight
  7. Hello all, I'm working on a personal project and im facing a small problem with canvas resizing, Here the initial state: You can see that the scene is well centered, the problem happens when i close a panel (the right or the left panels) then the canvas will be scaled and the scene will be like here: Please note that im creating the canvas like the following: <canvas id="renderCanvas" style="width:100%;height:100%;" touch-action="none"></canvas> Any help will be appreciated Thxs in advance guys Regards DarkLight