Meshes!

December 19th, 2013

Less than a month after the Kickstarter and just in time for Christmas, meshes are now available in Spine Professional, version 1.7+! The trial can also be used to experiment with meshes.

Meshes provide the foundation for FFD and skinning. They allow you to define a polygon within your image, as well as points and edges within the polygon. We put a lot of effort into making the tools for editing the mesh powerful and easy to use. Below is a quick crash course.

To get started, click the Mesh checkbox on a region attachment’s properties.

Meshes 1

The region is converted to a mesh with four points, one at each corner.

Meshes 2

The mesh can be deformed by manipulating the points using the translate, rotate, and scale tools. Ctrl drag is especially useful to box select points.

Meshes 3

Moving points around deforms because where the points sample the image hasn’t changed. This can be seen by clicking Edit Mesh.

Meshes 4

Where the points sample the image are called the UVs. Here the UVs are at each corner, but this can be changed.

Meshes 5

After exiting Edit Mesh, you can see the deformed mesh is unaffected by changing the UVs, except of course the points sample the image from a different place.

Meshes 6

Another way to edit the UVs is by checking Deformed on the Edit Mesh dialog.

Meshes 7

Now when a point is moved, both the UVs and the deformed mesh are changed. This was quite tricky to implement, but we feel the flexibility it offers was worth it.

Meshes 8

Meshes are not limited to just four points, of course. The easiest way to set up a new mesh is to click Set Points, then click in your image to add points around the edge.

Meshes 9

Next, the Create tool can be used to create internal points and edges by dragging. The edges control how the mesh is deformed, so are used around image features intended to be deformed separately.

Meshes 10

On mobile you may want to keep an eye on the number of points used, but on the desktop or when exporting images or video there won’t be an issue. Often just four or five points is enough for great deformations, but you may want to use more, for example to better control deformation for facial expressions.

It isn’t yet possible to key deformations in animations (which is the FFD Kickstarter goal), but that is coming soon. Also, currently the only runtime that can render meshes is spine-libgdx. Once we have FFD and skinning, we’ll dig into the runtimes.

1.6.39 released, new stuff

December 3rd, 2013

We’ve been heads down for a few weeks, building a solid foundation for meshes and the other new features. Unfortunately this means we haven’t been doing our usual releases every other day or so. To try to make up for the wait we’ve just done a big release: version 1.6.39. This has lots of polish and some nice new features. Meshes are not quite ready yet unfortunately, but you can expect them to be included soon, likely within a week.

You can see the changelog for a full list of the latest changes. There have been many minor improvements, such as how the dopesheet highlights rows for items that are selected in the editor or tree. A few longstanding feature requests have been filled, such as copying keys from one bone to another and copying bone transforms from a set of bones to another.

Probably the most notable is a new Professional feature called “offset keys”. When enabled, this causes keys that are moved past the animation start or end to wrap automatically. Previously it was tedious to manually offset keys for secondary motion, now it’s done in one click and drag!

Well, back to work we go. The next update should have you playing with meshes!

OlderNewer