• Content Count

  • Joined

  • Last visited

  1. @trevordev Adding isPickable = false worked. Thanks.
  2. Hi, I am creating a scene which will have a huge translucent sphere around a mesh and I want to be able to walk through the sphere to look at the mesh. I am using VR helper methods but I am not able to teleport inside sphere. I tried overriding the raySelectionPredicate method and returned false for the specific sphere so that the ray doesn't collide with the sphere, but its not helping. Any leads will be appreciated. Thanks.
  3. I think I should have directly explained what my project is about, apologies. I am creating a tool in typescript, where user can upload multiple mesh files and the tool will download a csv which contains a matrix for number of indices, vertices, sub meshes etc (later will be extended). I am initializing a null engine for this. the html input element will pass on the updated files. Then it will load mesh files one by one and calculate the complexity parameters of each and fill the matrix and download the csv. So according to the above answers, I used URL.createObjectURL(file) with SceneLoader.ImportMesh and also with assetManager, but browser throws: Unable to find a plugin to load files. Trying to use .babylon default plugin. but when I use same techniques with local url (folder path eg. "./assets/"), it works fine. Here is what I did for local files: let meshTask: BABYLON.MeshAssetTask = this.assetsManager.addMeshTask( + "MeshTask", "", "./assets/",; meshTask.onSuccess = (task) => { task.loadedMeshes.forEach((loadedMesh) => { vertices += loadedMesh.getTotalVertices(); indices += loadedMesh.getIndices().length; subMeshes++; }); meshInfoT = new MeshInfo(, vertices, indices, subMeshes); this.meshInfoArray.push(meshInfoT); }; meshTask.onError = (_, message, exception) => { console.error("Error loading mesh " + + "\nMessage: " + message + "\nException: " + exception); }; Do suggest me if there are any other techniques where I can get mesh information for multiple files without actually loading them on scene. Thanks.
  4. Hi, I was working with loading external meshes/scenes through assetmanager or sceneloader methods of babylonjs. I wanted to ask if there is a feature also to load meshes directly from preloaded files, like currently i need to provide a local URL of the file (stored on my machine) and file name. But what if a user uploads a glb file and I want to just pass the file directly to babylon instead of storing it at a local storage and passing the location.