How do I convert a 3D OBJ to GLB or GLTF for use in a 3D Viewer plugin?

Hey everyone. I need help figuring out how to view/render 3D files that are in OBJ format!

I use an API that generates 3D OBJ files. I’d like for those files to render in my Bubble app for the user to interact with. I’ve figured out how to copy the file into my Bubble database using :saved to S3. I also found a 3D viewer plugin that works pretty well for glTF and GLB formats. However, it doesn’t work at all for OBJs.

Does anyone have a clever tip for how to automatically convert OBJs into glTF or GLB formats? Or better yet, how to render the OBJ somehow.