Skip to content

Swift framework for loading various 3d models in SceneKit

License

Notifications You must be signed in to change notification settings

AKosmachyov/asset-import-kit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AssetImportKit

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

Requirements

  • Xcode 10 or later
  • Swift 5.0
  • iOS 10.3 or later
  • macOS 10.12 or later

Installation via CocoaPods

pod 'AssetImportKit'

Usage

do {
  let assimpScene = try SCNScene.assimpScene(filePath: filePath,
                                              postProcessSteps: [.defaultQuality])
  let modelScene = assimpScene.modelScene
  modelScene.rootNode.childNodes.forEach {
    sceneView.scene?.rootNode.addChildNode($0)
  }
} catch {
  debugPrint(error.localizedDescription)
}

License

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

About

Swift framework for loading various 3d models in SceneKit

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 99.4%
  • Ruby 0.6%