• Stars
    star
    290
  • Rank 142,981 (Top 3 %)
  • Language
    Swift
  • License
    MIT License
  • Created over 7 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

glTF loader for SceneKit

Carthage compatible

GLTFSceneKit

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.4.0

Using Swift Package Manager

  1. Open your project with Xcode
  2. Select File > Swift Packages > Add Package Dependency...
  3. Put https://github.com/magicien/GLTFSceneKit in the search box and click Next

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 = [source sceneWithOptions:nil error:&error];
if (error != nil) {
  NSLog(@"%@", error);
  return;
}

See also

GLTFQuickLook - QuickLook plugin for glTF files

More Repositories

1

GLTFQuickLook

macOS QuickLook plugin for glTF files
C
237
star
2

JoyKeyMapper

Nintendo Joy-Con/ProController Key mapper for macOS
Swift
144
star
3

JSceneKit

Port of SceneKit framework to JavaScript
JavaScript
78
star
4

JoyConSwift

IOKit wrapper for Nintendo Joy-Con and ProController (macOS, Swift)
Swift
52
star
5

VRMQuickLook

macOS QuickLook plugin for VRM files
C
37
star
6

MMDSceneKit

SceneKit expansion for MikuMikuDance
RPC
36
star
7

undo-canvas

Add undo/redo functions to CanvasRenderingContext2D
JavaScript
36
star
8

MikuMikuDanceQuickLook

macOS QuickLook plugin for MikuMikuDance files
Objective-C
28
star
9

SceneKitBoundingBoxOnScreen

Xcode Playground to show how to calculate the size of the bounding box in screen space
Swift
14
star
10

OBSOutlineFilterJP

OBS用スクリプト:縁取りフィルタ(簡易版、日本語)
Lua
12
star
11

DH3DLibrary

JavaScript Libary for WebGL
JavaScript
10
star
12

JSceneKitExample

Online examples of JSceneKit
JavaScript
8
star
13

JMMDSceneKit

JavaScript framework for JSceneKit and MikuMikuDance
JavaScript
8
star
14

JoyfulPlayer

MIDI Player for Nintendo Joy-Con and ProController (macOS, Swift)
Swift
8
star
15

OBSTeyvatPicnicKit

OBS用スクリプト:原神っぽいフィルタ5種(+1)
Lua
6
star
16

VRMPreview

VRM Viewer for macOS
Swift
5
star
17

ElectronMMDSample

Sample application for Electron + JMMDSceneKit
JavaScript
4
star
18

TGAImage

TGA Image Loader for Web browsers
JavaScript
3
star
19

mennakuMaker

Men's Knuckle like image maker
JavaScript
2
star
20

ARKitWithMMDUsingPlaneDetection

Test project for ARKit and MikuMikuDance using PlaneDetection
Logos
1
star
21

IQRevenge

WebGL game using DH3DLibrary
JavaScript
1
star
22

ARKitWithMMD

Test project for ARKit and MikuMikuDance using PlaneDetection
Logos
1
star
23

react-native-marked-text

Test app for react-native TextInput bugfix.
Objective-C
1
star
24

JMMDSceneKitExample

Online examples of JMMDSceneKit
JavaScript
1
star