/AssetImportKit

Swifty cross platform library (macOS, iOS) that converts Assimp supported models to SceneKit scenes.

Primary LanguageC++BSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

License

AssetImportKit is a cross platform library (macOS, iOS) that coverts the files supported by Assimp to SceneKit scenes.

Features

AssetImportKit allows you to import Assimp supported file formats directly in SceneKit at runtime. The library supports:

  • Geometry
  • Materials (with color, embedded textures and external textures)
  • Cameras and
  • Skeletal animations.
  • Serialization to .scn format

Supported file formats

AssetImportKit supports the following file formats: 3D, 3DS, 3MF, AC, AC3D, ACC, AMJ, ASE, ASK, B3D, BLEND (Blender), BVH, COB, CMS, DAE/Collada, DXF, ENFF, FBX, glTF 1.0 + GLB, glTF 2.0, HMB, IFC-STEP, IRR / IRRMESH, LWO, LWS, LXO, MD2, MD3, MD5, MDC, MDL, MESH / MESH.XML, MOT, MS3D, NDO, NFF, OBJ, OFF, OGEX, PLY, PMX, PRJ, Q3O, Q3S, RAW, SCN, SIB, SMD, STL, STP, TER, UC, VTA, X, X3D, XGL, ZGL.

Demos

This repository includes 2 small demos for macOS and iOS.

Requirements

  • Xcode 9.0 or later
  • Swift 4
  • iOS 11.0 or later
  • macOS 10.12 or later

Usage

To use the library in your projects just build the iOS of macOS version of the framework and grab it from the target folder of the AssetImportKit project.

Carthage support will be added in future.

Note for iOS builds: if you are developing an iOS application, set the Enable Bitcode under Build Settings->Build Options of your target to NO.

License

AssetImportKit's license is based on the modified, 3-clause BSD-License.