Skip to content

πŸ¦€ SpriteStudio Player for wgpu

Play SpriteStudio animations (.ssab) through wgpu β€” one renderer, one set of shaders, and four ways to call it. Your artist rigs the motion in a dedicated editor; you load the file and press play. No video files, no re-authoring, no engine lock-in.

wgpu puts WebGPU, Vulkan, DirectX 12 and Metal behind a single API, which is why a browser canvas, a Windows game and a macOS app can all be served by the same library instead of by four ports of it.

Try it in your browser

▢️ Open the WebGPU demo, published beside these pages. Nothing to install; it needs a WebGPU-capable browser. Drop a folder of your own .ssab on its first page and it plays them, atlases and sibling packs included.

No SpriteStudio data of your own yet?

The official sample data works as-is β€” that page is Japanese only, but the downloads themselves are language-neutral. Ringo is a good character sample, and Particle is a good one if you want effects. To make your own, you use SpriteStudio itself β€” see its site.

πŸš€ Start here

Four ways to call one library. Pick the one your app is written in β€” each path is complete on its own, and you never need the other three.

  • Rust


    You own a wgpu::Device and a render pass β€” your own renderer, winit, egui, Slint. The player draws into the pass you opened.

    Get started with Rust

  • Bevy


    Add a plugin, spawn three components. Characters go into Bevy's own 2D pass, on the device Bevy already owns. You never touch wgpu.

    Get started with Bevy

  • C / C++


    A static library and one header. Hand it your HWND, CAMetalLayer, Window or wl_surface and call two functions per frame β€” DX12, Metal or Vulkan underneath. No wgpu type ever crosses the ABI.

    Get started with C / C++

  • JavaScript / TypeScript


    An npm package with the WebGPU renderer compiled to WebAssembly, plus a <ss-player-webgpu> element for the one-character case. The device is built for you.

    Get started on the web

Whichever you pick, you also need a .ssab β€” see Preparing assets. Nothing of your own is required to try the player first: every sample runs on the SDK's own test animations.

✨ What it does

  • Blend animations instead of cutting. A walk underneath, an aim overlay on top, a one-shot reaction crossfading in: several animations on one character at once (Motion blending).
  • Hooks into your game logic. The markers the animator put on the timeline β€” user data, signals, sound β€” reach you as the playhead crosses them (Events and user data).
  • Change a character at runtime, without re-exporting. Hide a part, swap its cell, tint it, or ask where it is to hang a health bar off a bone (Part overrides); swap a whole atlas for a costume or a palette (Texture replacement).
  • A crowd for close to one character's CPU cost. One character drawn at many placements shares one playhead, one evaluation and one upload of its geometry (Crowds).
  • In a game world or in a box. Characters draw at the size the artist made them, or fit a panel, a card or a preview pane your layout decided (Fitting into a box). Masks clip through a stencil, or without one where the pass has none, as in Bevy (Masks).

🧭 How these docs are laid out

Section Who reads it
Get started Everyone, once. Four short paths, one per environment; each is complete on its own β€” install, load, play, frame loop. This is the only place you choose.
Guide Everyone, from then on. One text with the code in per-language tabs: pick your language on any page and the whole site follows.
API reference When you need the exact name of something. One page per face.
wgpu hosts Only if you own the device β€” a Rust application or an engine adapter. A C++ or browser reader never needs this section.
For Player & SDK Developers Building every face of the library yourself, using a changed Player in a host, and how the player is put together.

Two more things are published beside this text rather than inside it: the Rust API reference (rustdoc for ssplayer_wgpu and ssplayer_bevy) and the WebGPU demo. Both are in the navigation as well: the rustdoc under API reference, the demo under Get started.

πŸ—ΊοΈ From editor to screen

flowchart LR
    sspj[".sspj<br/>+ PNG / WebP"] -->|ssconverter| ssab[".ssab"]
    ssab --> lib

    lib["ssplayer-wgpu<br/>SSRenderer / SSScene / SSPlayer"]

    lib -->|Rust| rust["Your wgpu app"]
    lib -->|Rust adapter| bevy["Bevy"]
    lib -->|C ABI| cpp["C / C++<br/>DX12 Β· Metal Β· Vulkan"]
    lib -->|wasm-bindgen| web["Browser<br/>WebGPU"]

Conversion happens ahead of time: this player converts nothing at runtime and bundles no converter. See Preparing assets.