In my project I am projecting 3d files using ARKit. I am able to project Dae and Obj format models.
Is there anyway I could load fbx
files?
In my project I am projecting 3d files using ARKit. I am able to project Dae and Obj format models.
Is there anyway I could load fbx
files?
You can download Reality Converter app from Apple. This allows converting fbx to usdz.
Try using AssimpKit to use your fbx file in a SceneKit scene.
Other supported file formats:
June 2020
To convert FBX to USDZ you need the usdzconvert utility from Apple. To get it to work, read the install instructions carefully.
You will need both the "FBX Python SDK" and the "FBX Python Bindings" from here.
Please note that the current (June 2020) version of the FBX Python SDK is 2020.1, so you'll have to change the following line in USB.command
to
To use usdzconvert, double-click /Applications/usdpython/USD.command and type usdzconvert into the terminal that opens up.
That's it!
ARKit itself isn't loading models in 3D scene. It's a work for a SceneKit framework. SceneKit doesn't directly support
.fbx
now. You could implement a reading of.fbx
file format via ModelIO but it's non-trivial thing.The best way to prepare your model for working in ARKit, SceneKit and RealityKit is to convert it into usdz file format via new
usdzconvert
command found in Xcode 11.For converting
fbx
file intousdz
just type the following line in Terminal:To use this conversion tool, download usdz Tools from developer resource and don't forget to setup a global variables.