spine-canvas
does not support meshes, and the visual issues you're seeing highlight its limitations.
If you don’t need a full-featured rendering library like PixiJS or Phaser, consider using spine-webgl
, spine-player
, or the new spine-webcomponents
. The last two are built ont top of spine-webgl
.
spine-webgl
is our lightweight but complete WebGL-based solution that supports all Spine features directly in the browser.
spine-player
is a robust, battle-tested library that includes a UI and offers higher-level control over your skeletons. Note: using > 4 Spine players on a single page may hit the browser's WebGL context limit.
spine-webcomponents
is our Web Component-based solution that lets you embed any number of Spine animations directly in HTML. Example:
<spine-skeleton
atlas="/files/spine-widget/assets/spineboy-pma.atlas"
skeleton="/files/spine-widget/assets/spineboy-pro.skel"
animation="run"
></spine-skeleton>
If you describe your use case in more detail, we can help determine which option is most suitable for your needs.