Go to file
Volodymyr Boichentsov 4deff56d4a DEBUG; 2018-05-04 09:55:13 +01:00
Sources/gltf_scenekit DEBUG; 2018-05-04 09:55:13 +01:00
Tests rename gltf_scenekit to glTFSceneKit; 2018-04-25 17:17:59 +01:00
glTFSceneKit.xcodeproj DEBUG; 2018-05-04 09:55:13 +01:00
.gitignore commit project 2017-11-12 20:39:24 +00:00
LICENSE Create LICENSE 2017-11-12 19:54:50 +00:00
Package.resolved simplified extension loading. 2018-04-23 18:22:15 +01:00
Package.swift rename gltf_scenekit to glTFSceneKit; 2018-04-25 17:17:59 +01:00
README.md single convert method; 2018-05-04 09:22:37 +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)