Latest0.1.3
Homepagehttps://github.com/magicien/GLTFSceneKit
LicenseMIT
Platformsios 11.0, osx 10.13, requires ARC

Carthage compatible

glTF loader for SceneKit

ScreenShot

Installation

Using CocoaPods

Add the following to your Podfile:

pod 'GLTFSceneKit'

Using Carthage

Add the following to your Cartfile:

github "magicien/GLTFSceneKit" ~> 0.1.3

Manually

Download GLTFSceneKit_vX.X.X.zip from Releases.

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
}

Objective-C

@import GLTFSceneKit;

GLTFSceneSource *source = [[GLTFSceneSource alloc] initWithURL:url options:nil];
NSError *error;
SCNScene *scene = ;
if (error != nil) {
  NSLog(@"%@", error);
  return;
}

See also

GLTFQuickLook – QuickLook plugin for glTF files

Latest podspec

{
    "name": "GLTFSceneKit",
    "version": "0.1.3",
    "summary": "glTF loader for SceneKit",
    "homepage": "https://github.com/magicien/GLTFSceneKit",
    "license": "MIT",
    "authors": "magicien",
    "platforms": {
        "ios": "11.0",
        "osx": "10.13"
    },
    "source": {
        "git": "https://github.com/magicien/GLTFSceneKit.git",
        "tag": "v0.1.3"
    },
    "source_files": "Source/**/*.swift",
    "resources": "Source/**/*.shader",
    "requires_arc": true,
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "4.0",
        "SWIFT_ACTIVE_COMPILATION_CONDITIONS": "SEEMS_TO_HAVE_VALIDATE_VERTEX_ATTRIBUTE_BUG SEEMS_TO_HAVE_PNG_LOADING_BUG"
    },
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This