joo
spine-pixi
is an extension to the famous PixiJS library to load and render Spine animations. You usually choose it if you need PixiJS capabilities for your app. For example, you're developing a game or a very dynamic web app. It uses a canvas with WebGL to render your graphics.
spine-webgl
is a library with zero dependencies (apart from the spine-core
that is the ts
render-agnostic runtime) that simply allows you to render your Spine animation into your webpage. As the name suggests, it uses a canvas with WebGL like PixiJS.
This implies that spine-webgl
is an essential kit to render your animations into a webpage, while spine-pixi
is an extension to render your animations for a full kit to develop a game or a complex web app.
I'd say, if you need Pixi capabilities, it's better to use spine-pixi
. Otherwise, I'd keep it simple and use spine-webgl
.
We're also testing a spine-webgl-overlay
version to render everything in a single canvas to be used as the single WebGL context to overcome the number of context limitations on browsers for WebGL.