Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eugenebokhan/asset-import-kit
Swift framework for loading various 3d models in SceneKit
https://github.com/eugenebokhan/asset-import-kit
3d assimp scenekit
Last synced: about 2 months ago
JSON representation
Swift framework for loading various 3d models in SceneKit
- Host: GitHub
- URL: https://github.com/eugenebokhan/asset-import-kit
- Owner: eugenebokhan
- License: bsd-3-clause
- Created: 2019-01-27T10:41:01.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-15T18:27:45.000Z (about 4 years ago)
- Last Synced: 2024-08-09T23:01:48.024Z (4 months ago)
- Topics: 3d, assimp, scenekit
- Language: Swift
- Size: 29.6 MB
- Stars: 85
- Watchers: 6
- Forks: 23
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - AssetImportKit - Swifty cross platform library (macOS, iOS) that converts Assimp supported models to SceneKit scenes. (Games / Getting Started)
README
# AssetImportKit
**AssetImportKit** is a cross platform library (macOS, iOS) that coverts the files supported by [`Assimp`](https://github.com/assimp/assimp) to [`SceneKit`](https://developer.apple.com/reference/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`
```Ruby
pod 'AssetImportKit'
```## Usage
```Swift
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](LICENSE) is based on 3-clause BSD-License.