Swiftpack.co - Package - 3D4Medical/glTFSceneKit

GLTF extension for SceneKit

General

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

Encodings

  • [X] JSON
  • [ ] Binary (.glb)

Primitive Types

  • [ ] Points
  • [x] Lines
  • [ ] Line Loop
  • [ ] Line Strip
  • [x] Triangles
  • [x] Triangle Strip
  • [ ] Triangle Fan

Animation

  • [X] Transform animations
  • [X] Linear interpolation
  • [X] Morph animation
  • [ ] Skin and joint animation

Extensions

  • [X] KHR_draco_mesh_compression - Draco (supported draft version, need to fix when indices is short)
  • [X] 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)

Github

link
Stars: 16
Help us keep the lights on

Used By

Total: 1

Releases

0.0.10 - Jul 18, 2018

0.0.9 - Jul 16, 2018

0.0.8 - Jul 12, 2018

0.0.7 - Jul 2, 2018

0.0.6 - Jun 11, 2018