Go to file
Volodymyr Boichentsov c92a014bcf use single queue for downloading images 2018-07-02 13:31:51 +01:00
Draco@9bdbe49ea0 update draco with bitcode 2018-05-18 15:44:54 +01:00
Sources/glTFSceneKit use single queue for downloading images 2018-07-02 13:31:51 +01:00
Tests fix in JSONCodingKeys 2018-05-21 10:46:29 +01:00
glTFSceneKit.xcodeproj update xcode project 2018-05-31 09:27:12 +01:00
.gitignore add Draco submodule 2018-05-17 11:17:10 +01:00
.gitmodules add Draco submodule 2018-05-17 11:17:10 +01:00
LICENSE Create LICENSE 2017-11-12 19:54:50 +00:00
Package.resolved fix in JSONCodingKeys 2018-05-21 10:46:29 +01:00
Package.swift make draco included in glTFSceneKit 2018-05-17 14:42:27 +01:00
README.md single convert method; 2018-05-04 09:22:37 +01:00
glTFSceneKit-Bridging-Header.h make draco included in glTFSceneKit 2018-05-17 14:42:27 +01:00

README.md

GLTF extension for SceneKit

General

  • Compilable for macOS and iOS
  • Objective-C support
  • swift package
  • GLTF swift extension with wrapper for JSONDecoder
  • Tests
  • Convert SceneKit to GLTF

Encodings

  • JSON
  • Binary (.glb)

Primitive Types

  • Points
  • Lines
  • Line Loop
  • Line Strip
  • Triangles
  • Triangle Strip
  • Triangle Fan

Animation

  • Transform animations
  • Linear interpolation
  • Morph animation
  • Skin and joint animation

Extensions

  • KHR_draco_mesh_compression - Draco (supported draft version, need to fix when indices is short)
  • 3D4M_compressed_texture - Draft of unofficial extension.

Dependecies

Example:

import glTFSceneKit

let directory = "..." // path to folder where is gltf file located
let decoder = JSONDecoder()
let glTF = try? decoder.decode(GLTF.self, from: jsonData)
let scene = glTF?.convert(view:sceneView, directoryPath:directory)