How to load 3d model from url in unity?

What is the best way to load 3d model from url inside unit at runtime. I have tried this obj importer http://wiki.unity3d.com/index.php?title=ObjImporter

But the mesh is not being imported properly. What other options are there? Assetbundle needs a pro version and even that won't solve as I need to load 3d model from url. Any suggestions?

+3


source to share


1 answer


The path to work will be asset packages . This is Unity's (proprietary) way of loading prepackaged, compressed assets from a file or url. All asset packages must be prepared and created in the Unity editor.

If you want a more general approach that loads a raw file format like fbx, obj, 3ds, collada, etc., you should use the Assimp library . The Assimp library is written in C ++, but there is a wrapper for C # .NET here .



There are also wrappers for Unity, such as this Unity Assimp is free but rather outdated. However, the Asset Store packs a specific importer format including this free OBJ importer .

0


source







All Articles