How can I dynamically load a 3D model into a VR application?

Hello folks,

We’re developing a prototype of e-commerce based platform for Meta Quest 2 in a research project. We’ve scanned some products and have them exported to either GLTF (I think this is the best choice) and OBJ. One of the features if that the user can search for an object, for instance, “Sports shoes” and some 3D models will be load dynamically in a VR gallery.

However, the scope of the project requires us that more 3D models can be made and should be available later on. Hence, I think it’s not feasible to have the 3D models as assets being built with the project since they could be a lot and more could be added after the build is done.

How can I dynamically load these models? Should we upload GLTF files in some repository, download them and load them? Do you have any other solution in mind?

Thanks.

Google ‘Unity runtime OBJ importer’ and a ton of results pop up. Replace obj with gltf if you want to use that instead.

For how to host them, that’s up to you. It could be a database with a dictionary to download the model

1 Like