• Editor
  • Idea: Cliping Mask taking the mesh of another object.

I've had an idea about the Clipping Mask and want to see what people think of it.

The Mesh of an object can be done by tracing set object (in such detail your device might explode off all the vertices).
now would it not be great if the clipping mask could use that Mesh-data for itself?

I mean: making/faking somewhat rounded masks (what I need to do in my current project) is pretty hard.
What I'm doing now is tracing a "round" mesh point-by-point -_-

If I could just trace a circle.png (or whatever shape I need) and use the data from that, would greatly ease the process.

So, what do you think?
Would that be a good feature to have in Spine or not?

Related Discussions
...
  • Изменено

If you take, for example, spineboy's head and delete the internal vertices, you can see the mesh hull has 30 vertices:

Изображение удалено из-за отсутствия поддержки HTTPS. | Показать

Create a clipping attachment with 30 vertices, in no particular shape:

Изображение удалено из-за отсутствия поддержки HTTPS. | Показать

Select spineboy's head, select a vertex, ctrl+a to select all vertices, ctrl+c to copy vertices, select the clipping attachment, ctrl+v to paste the vertices


now your clipping attachment fits the head exactly:

Изображение удалено из-за отсутствия поддержки HTTPS. | Показать

Keep in mind you want to use as few clipping vertices as possible. If you are exporting images/video then it doesn't matter.