I’m working on a proof of concept where I’m porting (monkey patching) BabylonJS to work with React Native (Expo in particular).
This is somewhat possible because React Native / Expo exposes a WebGLRenderingContext that I use to create the BabylonJS engine.
I have a basic example working with a spinning cube mesh and an animated sprite. My next task is to get the GLTF Loader working.
That said, I’m having a fair bit of difficulty in this regard. Currently, to get sprites working, I created a custom texture loader and added it to the engine via
Is there something similar I can do with mesh/scene loading? I’m trying to monkey patch the
OfflineProviderFactory (Database) modules but am getting quite confused because the code execution is jumping all over the place.
Is there any documentation regarding extending BabylonJS, overriding loaders (GLTF loaders in particular). Or has someone tried doing something similar before - I’d hate to re-invent the wheel…
Thanks for your help!