- Изменено
Spine character works with WebGL and not Canvas
Hi! I'm trying to get this spine character that our artist created to work on Canvas but I cannot figure out why it's missing some of it's parts... It does work with WebGL though.
Any ideas why this could be happening?
WebGL example: https://x.teachingtextbooksapp.com/k/spinewebgl/
Canvas example: https://x.teachingtextbooksapp.com/k/spinets/example.html
The Canvas backend doesn't have mesh support enabled by defaut. All mesh attachments will thus be missing. You can enable it by setting spine.SkeletonRenderer.useTriangleRendering
to true
. Note however, that this is experimental and will have artifacts in many browsers.
WebGL is supported pretty much anywhere. I suggest to simply use that backend.
Thank you for the info!
spine.SkeletonRenderer.useTriangleRendering=true
doesn't seem to change anything.
I'll try sticking to WebGL then.