Latest 1.0.1
Homepage https://github.com/SVRF/SvrfGLTFSceneKit
License MIT
Platforms ios 11.0, osx 10.13, requires ARC

glTF loader for SceneKit

ScreenShot

Installation

Using CocoaPods

Add the following to your Podfile:

pod 'SvrfGLTFSceneKit'

Manually

Download SvrfGLTFSceneKit_vX.X.X.zip from Releases.

Usage

Swift

import SvrfGLTFSceneKit

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 SvrfGLTFSceneKit;

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

Latest podspec

{
    "name": "SvrfGLTFSceneKit",
    "version": "1.0.1",
    "summary": "SvrfGLTF loader for SceneKit",
    "homepage": "https://github.com/SVRF/SvrfGLTFSceneKit",
    "license": "MIT",
    "authors": "SVRF",
    "platforms": {
        "ios": "11.0",
        "osx": "10.13"
    },
    "source": {
        "git": "https://github.com/SVRF/SvrfGLTFSceneKit.git",
        "tag": "1.0.1"
    },
    "source_files": "Source/**/*.swift",
    "resources": "Source/**/*.shader",
    "requires_arc": true,
    "swift_version": "4.0",
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "4.0",
        "SWIFT_ACTIVE_COMPILATION_CONDITIONS": "SEEMS_TO_HAVE_VALIDATE_VERTEX_ATTRIBUTE_BUG SEEMS_TO_HAVE_PNG_LOADING_BUG"
    }
}

Pin It on Pinterest

Share This