Mittsu: GLTF

GLTF support for Mittsu.

Installation

Just install:

bundle add mittsu-gltf

Then require in your code:

require 'mittsu/gltf'

Usage

Currently this gem just includes an exporter. Loading GLTF files might happen at some point.

exporter = Mittsu::GLTFExporter.new
exporter.export(object, "output.gltf")

You can also write binary files for simple single-mesh models:

exporter.export(object, "output.glb", mode: :binary)

About

This code was originally written for Manyfold, supported by funding from NLNet and NGI Zero.