BabylonJS is a peer dependency, so using the version in package.json. In other words, it’s using the version in @nipundavid 's project. Does the utility layer thickness start from a specific version?
for rotation I have something which I shared above, I mean API should provide developer a feature to add rings on rotation gizmos and move them away or close to the pivot of the object, yes there would be an off set in that case, but yeah that is that I have in mind.
May I can contribute to this feature in Babylon gitHub
The glb file isn’t JSON, so looks like you maybe didn’t side-load the loaders? import '@babylonjs/loaders';
Make sure you loaders version matches core. With the .glb extension you should have a loader registered for the binary format (via gltf), but to be honest I’ve never tried from a blob. You will need to share your calling code if above doesn’t work.
I made a library recently called react-babylonjs-loaders that handles that and provides fallbacks for Suspense as well. It doesn’t need the main react-babylonjs library (but works with it), but does use babylon-hooks - it only needs context with a scene to work. It’s all in a bit of flux as I’m working on a v3 that is redesigned, but maybe it will be useful for you.
The glb file isn’t JSON, so looks like you maybe didn’t side-load the loaders? import '@babylonjs/loaders';
models were loading fine before, yes I am loading them as GLB and converting them into blob to save them in browser…then each time when page load I check if they are there in the db if not then I req my api server. I also added the import statement in my file where I am loading meshes but still same issue. Any thoughts?
Make sure you loaders version matches core. With the .glb extension you should have a loader registered for the binary format (via gltf), but to be honest I’ve never tried from a blob. You will need to share your calling code if above doesn’t work.
I made a library recently called react-babylonjs-loaders that handles that and provides fallbacks for Suspense as well. It doesn’t need the main react-babylonjs library (but works with it), but does use babylon-hooks - it only needs context with a scene to work. It’s all in a bit of flux as I’m working on a v3 that is redesigned, but maybe it will be useful for you.
We can discuss more on this, I can even support you if you need extra pair of hands to code and get it up as soon as possoble
You need to yarn add @babylonjs/*@preview where * is loader,core, etc.
The other thing is that you are loading from a blob, so probably the SceneLoader can’t determine the type of file. There is a parameter to supply the file extension - I think you need to send “.glb”. You should be able to repro this in the playground and more people would be able to help, if it’s not the version mismatch or missing fileExtension param.