Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

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

Discussion in 'VR' started by rgmzdev, Jul 18, 2023.

  1. rgmzdev

    rgmzdev

    Joined:
    Oct 18, 2021
    Posts:
    1
    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.
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,529
    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
     
    rgmzdev likes this.