Skip to content

ennikin-skywalker/GLTFSceneKit

 
 

Repository files navigation

GLTFSceneKit

glTF loader for SceneKit (swift)

ScreenShot

Installation

Using CocoaPods

Add the following to your Podfile:

pod 'GLTFSceneKit', :git => 'https://github.com/ennikin-skywalker/GLTFSceneKit.git'

Usage

Swift

import GLTFSceneKit

var scene: SCNScene
do {
  let sceneSource = try GLTFSceneSource(named: "art.scnassets/Box/glTF/Box.gltf")
  scene = try sceneSource.scene()
} catch {
  print("\(error.localizedDescription)")
  return
}

See also

GLTFQuickLook - QuickLook plugin for glTF files

About

glTF loader for SceneKit

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 87.6%
  • JavaScript 6.0%
  • GLSL 3.9%
  • ShaderLab 1.4%
  • Objective-C 0.7%
  • Ruby 0.4%