Riggle

OBJ · glTF · CPU skinning

Bring 3D assets into Ruby.

Load OBJ, glTF, and GLB into Ruby scene objects with mesh, material, animation, and skinning data.

gem install riggle

Mesh and node graphasset → primitive → RBGL

From file format to scene data.

Traverse nodes, inspect primitives, and evaluate animation and skinning in Ruby.

01

Load common assets

OBJ, glTF JSON, and GLB with buffers and accessors.

02

Keep scene structure

Nodes, materials, animations, and scene traversal.

03

Deform and render

Linear blend or dual quaternion skinning, with an RBGL adapter.

A small first step

Start with one example.

Install the gem, then follow the project guide for platform requirements and the full API.

Read the installation guide ↗

require "riggle"

scene = Riggle.load("model.obj", normals: :smooth)
primitive = scene.meshes.first.primitives.first
puts primitive.positions.length

vertex_buffer, index_buffer = primitive.to_rbgl