Engine Integration

Use Bone3 2D Skeletal Animations in PixiJS (spine-pixi)

Bone3 itself runs on PixiJS WebGL and exports official-runtime-tested Spine 4.2 and 3.8 packages that load cleanly in PixiJS v7/v8 via @esotericsoftware/spine-pixi-v8 or pixi-spine.

WYSIWYG WebGL preview — Bone3's editor canvas uses PixiJS, ensuring visual parity with web games.

Exports Spine 4.2 (.json / .skel + .atlas) for @esotericsoftware/spine-pixi-v8 and Spine 3.8 for legacy pixi-spine.

Ideal for HTML5 instant games, interactive web apps, and playable ads.

Step-by-Step Workflow

  1. 1

    Install the PixiJS Spine Runtime

    Install pixi.js alongside @esotericsoftware/spine-pixi-v8 (for Spine 4.2) or pixi-spine (for Spine 3.8).

  2. 2

    Export Spine Assets from Bone3

    Export your character as Spine 4.2 JSON/binary + .atlas + PNG and serve them from your public/ folder.

  3. 3

    Preload with PixiJS Assets

    Load both the skeleton data and .atlas file using Assets.add and Assets.load.

  4. 4

    Create Spine Display Object & Play

    Instantiate Spine.from({skeleton, atlas}) and call state.setAnimation(0, 'idle', true).

Runtime Integration Example

load-spine-pixi.tstypescript
import { Application, Assets } from "pixi.js";
import { Spine } from "@esotericsoftware/spine-pixi-v8";

const app = new Application();
await app.init({ width: 960, height: 540 });
document.body.appendChild(app.canvas);

Assets.add({ alias: "heroData", src: "/assets/hero.json" });
Assets.add({ alias: "heroAtlas", src: "/assets/hero.atlas" });
await Assets.load(["heroData", "heroAtlas"]);

const hero = Spine.from({ skeleton: "heroData", atlas: "heroAtlas" });
hero.position.set(480, 420);
hero.state.setAnimation(0, "idle", true);
app.stage.addChild(hero);

Frequently Asked Questions

Does Bone3 support PixiJS v8?
Yes. Export Spine 4.2 JSON or binary .skel from Bone3 and load it with the official @esotericsoftware/spine-pixi-v8 package.
Why does Bone3 match PixiJS rendering so closely?
Bone3's own editor viewport is built on PixiJS WebGL, so mesh deformation, blend modes, and alpha behavior align closely with PixiJS games.

Related Guides & Integrations