• Content Count

  • Joined

  • Last visited

About DarkLight

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hello @aFalcon, Currently i'm focusing on GLTF loading, it's working but i got regressions in many functionalities due to structure and parent/child transformations (for obj it should work perfectly). Mesh editing is the most important module i think, both in vertices and surface levels. It will be really nice if you have something already done, i'm not trying to do all by myself, if anything is already existing it will be better. Also the same for save and export functionalities. Just one thing i'm trying to make the application stable and reliable. i don't want to publish something that will contain any bugs, that's why i prefer to do not publish it right now to babyblon front page until i reach a good maturity level. If you want you can be part of the project on github.
  2. Hello all, I just finished the migration to the new Babylonjs and all dependencies for my project. now i'm pointing to the latest builds directly from URLs. Something that i could not fix and that was working before is the showBoundingBox attribute in mesh, it looks like that Babylonjs is generating a wrong mesh fro the bounding box. It's reproducible in Playgroundground, tested on Firefox, Chrome and MS Edge http://playground.babylonjs.com/#07U3EY Best regards DarkLight
  3. 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
  4. 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
  5. 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
  6. 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