Great questions! Let me address both points:
1. Multiple clipping attachments
Actually, multiple clipping attachments can be visible at the same time on a single skeleton. However, there is an important limitation: the slots they clip cannot overlap in the draw order. So while you can use more than one clipping attachment, you need to plan your draw order carefully to ensure the ranges of affected slots don't intersect with each other.
2. Self-intersecting / complex polygon shapes
This is a known limitation. Clipping will not work correctly if the clipping attachment polygon self-intersects — meaning the polygon edges must never cross each other. A star shape, for example, would have self-intersecting edges, which is why it wouldn't behave as expected (producing a pentagon-like result instead of a star).
For complex shapes like a star, a possible workaround would be to use multiple non-self-intersecting clipping attachments to approximate the desired shape, keeping in mind the draw order overlap restriction mentioned above.
General tips to keep in mind:
- Clipping is implemented on the CPU in the Spine Runtimes and can be expensive, especially with many vertices. Use it judiciously.
- Use as few vertices as possible in your clipping attachment — the minimum is 3.
- Arranging clipping attachment vertices so they form a convex shape can greatly reduce CPU usage, since convex polygons require less processing.
- The size of the clipping polygon does not affect performance, only the vertex count does.
You can find more details in the Spine clipping documentation and the clipping demos and examples.