Latest 0.0.2
Homepage https://github.com/tattn/VRMKit
License MIT
Platforms ios 10.0
Frameworks Foundation
Authors

VRMKit

VRM loader and VRM renderer

demo

Features

  • [x] Load VRM file
  • [x] Render VRM models on SceneKit (experimental)

Requirements

  • Xcode 9.x
  • Swift 4.x
  • iOS 10.0+

Installation

Carthage

github "tattn/VRMKit"

CocoaPods

pod 'VRMKit'
pod 'VRMSceneKit' # for rendering

Usage

Load VRM

import VRMKit

let vrm = try VRMLoader().load(named: "model.vrm")
// let vrm = try VRMLoader().load(withUrl: URL(string: "/path/to/model.vrm"))
// let vrm = try VRMLoader().load(withData: data)

// VRM meta data
vrm.meta.title
vrm.meta.author

// model data
vrm.gltf.jsonData.nodes[0].name

Render VRM

import VRMKit
import VRMSceneKit

@IBOutlet weak var sceneView: SCNView!

let loader = try VRMSceneLoader(named: "model.vrm")
let scene: VRMScene = try loader.loadScene()

sceneView.scene = scene

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

ToDo

  • [ ] CocoaPods support
  • [ ] VRM shaders support
  • [ ] Improve rendering quality
  • [ ] Animation support
  • [ ] VRM editing function

License

VRMKit is released under the MIT license. See LICENSE for details.

Latest podspec

{
    "name": "VRMKit",
    "version": "0.0.2",
    "summary": "VRM loader and VRM renderer",
    "description": "VRM loader and VRM renderer.nnVRMKit can read VRM metadata and show the 3D models.",
    "homepage": "https://github.com/tattn/VRMKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "git": "[email protected]"
    },
    "source": {
        "git": "https://github.com/tattn/VRMKit.git",
        "tag": "0.0.2"
    },
    "social_media_url": "https://twitter.com/tanakasan2525",
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "Sources/VRMKit/**/*",
    "public_header_files": "Sources/VRMKit/**/*.h",
    "frameworks": "Foundation"
}

Pin It on Pinterest

Share This