Skip to content

magicien/MMDSceneKit

Repository files navigation

MMDSceneKit

SceneKit expansion for MikuMikuDance

ScreenShot

Install

Using CocoaPods

Add the following to your Podfile:

pod 'MMDSceneKit'

Manually

Download MMDSceneKit_vX.X.X.zip from Releases.

Usage

Swift

import MMDSceneKit

guard let sceneSource = MMDSceneSource(named: "art.scnassets/projectFile.pmm") else { return }
var scene = sceneSource.getScene()

Objective-C

@import MMDSceneKit;

MMDSceneSource *source = [[MMDSceneSource alloc] initWithNamed:@"art.scnassets/projectFile.pmm" options:nil models:nil];
SCNScene *scene = [source getScene];

See Also

MikuMikuDanceQuickLook - macOS QuickLook plugin for MikuMikuDance files