Search Unity

Import 3D models in Realtime

Discussion in 'Asset Importing & Exporting' started by mohsenz, Dec 16, 2020.

  1. mohsenz

    mohsenz

    Joined:
    Aug 10, 2016
    Posts:
    29
  2. ParadoxSolutions

    ParadoxSolutions

    Joined:
    Jul 27, 2015
    Posts:
    325
    There are open source tools like assimp for runtime importing.

    TriLib is a paid asset that is a unity wrapper for assimp and supports imports from urls.
     
  3. Siccity

    Siccity

    Joined:
    Dec 7, 2013
    Posts:
    255
    I've written an importer for glTF files that a lot of people use to import from Sketchfab.
    GLTFUtility
     
  4. mohsenz

    mohsenz

    Joined:
    Aug 10, 2016
    Posts:
    29
    thanks for the suggestions
    the plugin looks amazing! but is it possible to import in realtime from Sketchfab? while Sketchfab needs Log in to give a link to fine, and as well the links are to a Zip file with many other login information in it.

    The same problem in TriLib Here,
    do I need to somehow get the models downloaded, then load them? [no realtime possibility in sending a request and get the model?]
     
  5. Siccity

    Siccity

    Joined:
    Dec 7, 2013
    Posts:
    255
    I've never loaded models from Sketchfab myself so i'm not really sure. I'm guessing you have to find an API for sketchfab, and then use an additional library to unzip the file after download, and then pass the file into the loader.
     
  6. evelynchin

    evelynchin

    Joined:
    Apr 16, 2020
    Posts:
    1
    hey @mohsenz did you ever happen to get this figured out? I'm trying to accomplish the same thing
     
  7. ShramikDalvi

    ShramikDalvi

    Joined:
    Aug 9, 2021
    Posts:
    1
    @Siccity How can we Import other 3D file formats using GLTF utility.
    Thanks.
     
  8. Siccity

    Siccity

    Joined:
    Dec 7, 2013
    Posts:
    255
    You cannot. GLTFUtility is for glTF file format only.