ViktorB

Hi,

I have a question about clipping attachments on Canvas. I don't see in spine-ts runtime in SkeletonRenderer for Canvas any usage of clipping attachment. Is it mean that Canvas can't render clipping or I miss something?
Can someone clarify it to me, please?

Thanks.

---

I found this issue: [runtimes] Implement clipping · #852, and it says - spine-ts canvas (not supported).
But in the release notes for 3.6 version of Spine written the following: Clipping is implemented CPU-side in all runtimes...

Can soneone confirm that clipping is not supported for Canvas?
ViktorB
Bài viết: 5

Pharan

Clipping is actually implemented as polygon clipping, which uses meshes.
It's not supported for Canvas just like meshes in general aren't supported for Canvas.
Hình đại diện của thành viên
Pharan

Pharan
Bài viết: 4450

Nate

Note spine-ts says:
Experimental support for mesh attachments can be enabled by setting spine.canvas.SkeletonRenderer.useTriangleRendering to true. Note that this method is slow and may lead to artifacts on some browsers.
You could give that a try, and clipping should work, but it may not be usable in production due to the browser specific rendering problems.
Hình đại diện của thành viên
Nate

Nate
Bài viết: 7550


Quay về Runtimes