We are trying to add functionality in our iOS AR apps where our users can directly import textured 3D models (using .obj files for the 3D model and .mtl files for the textures). The iOS import feature only gives us the ability to import one file into a scene in our app. However, we need to directly import many files at once (.obj and related .mtl files all in one scene). Can anyone give us guidance on how to allow for the import multiple files at once into directly into an iOS app? Thanks so much!
Importing obj + mtl files into one scene in iOS app
Hi @morphing,
have you found an elegant way to do this? I can use a document picker to open the .obj file but MDLAsset(url:) cannot find the corresponding .mtl and .jpg files. These files are definitely there, with the right names and in the right locations.
Maybe I am using AccessingSecurityScopedResource in the wrong way ?
Thanks for any pointers