• Editor
  • [Request] - Skinning Tutorial

Related Discussions
...

Hello Animators,

Very excited to use the new skinning feature. I have played around with the new feature attempting to get multiple bones attached to a mesh, however I really could use some documentation or tutorials. By any chance do we have any doc's or tutorials for skinning?

Areas that I need to learn:

  1. Attach multiple bones to 1 mesh.
  2. multiple draw order/Z-index on one mesh? If I have (1) PNG mesh that is for example a fork shape. How do I declare/choose the draw order so one end overlaps the other. In photoshop, using the "Puppet Warp" the first point is the lowest draw order and the last point made is the highest. Allowing you to have red on top or black on top "see example below"

Image supprimée en raison de l'absence de support de HTTPS. | Afficher quand même

EDIT: Starting to figure it out.

Image supprimée en raison de l'absence de support de HTTPS. | Afficher quand même

Sorry for the lack of tutorials for skinning. Since we released skinning we have been insanely busy preparing for A MAZE. I will put up a short video on skinning when I get back from Berlin.

1). Seems like you figured that one out.
2). Can's say exactly what will happen here, if anything.

Regarding smoothing. Yes there will be smoothing, there will also be auto weighting. Additionally we will have subdivision in there so the meshes will deform better without requiring more manually added edges.

Mesh edge subdivision?

Shiu a écrit

2). Can's say exactly what will happen here, if anything.
.

Thanks for the reply Shiu,

It seems the draw order "overlapping black&red" is based on what bone structure was made first. However, if I make two bones and overlap them. the Z-indexing fights and they just chop each other in half. If the other end doesn't have a bone system it behave normal.

Image supprimée en raison de l'absence de support de HTTPS. | Afficher quand même

Technically:
I think "z-indexing" in this context is just a matter of in what order the triangles are stored in the data. The bones wouldn't matter at all because they only move vertices around— that is unless the editor were made to follow the order in which bones were created somehow, but I think that would be quite hackish for an official feature.
I was looking at it with the mesh edges visible and the weird cuts definitely happen at the edges of the triangles. It's not a matter of actual Z.

Right now, I think there's no easy way to order them predictably. But I think we will be able to, eventually.
Thanks for bringing this up. I hope this behavior gets clarified in a future update. Seems like a good thing to be able to define predictably.

https://dl.dropboxusercontent.com/u/567 ... nning.html

Regarding smoothing. Yes there will be smoothing, there will also be auto weighting. Additionally we will have subdivision in there so the meshes will deform better without requiring more manually added edges.

Hopefully in the near future, as it's a pain adding 50+ vertices and weighting everyone of them.

Remember for now you can select multiple at the same time by ctrl+drag

I like how you can drag up and down on an empty space as a shortcut to increase and decrease the weight.
For a few days until I accidentally click-dragged on the viewport, I kept adjusting the weight through the slider in the Skinning Weights panel.

(note: I noticed you tried to remove cases of accidental tool-switching so I thought I might bring this up: With the Weights tool selected, and a bone and a vertex also selected, clicking and dragging on a different bone causes it to switch to the Rotate tool and rotate that bone.)

13 jours plus tard

Good catch on dragging the bone causing a tool switch. Fixed! Note the slider will set an absolute weight for the selected vertices and bones, while dragging up/down in the editor area will adjust the vertices relatively. Weights remembers its selection separately, so you can toggle between Weights and Rotate/Pose to test the weights.

I solved the draw order problem with self intersecting meshes by ordering the triangles based on the bones they are affected by the most. The order the bones appear in the Skinning Weights dialog is used to control which is on top. You can drag the bones to change the order. Cheers! :beer:

Image supprimée en raison de l'absence de support de HTTPS. | Afficher quand même


Image supprimée en raison de l'absence de support de HTTPS. | Afficher quand même

The bone colors change when you change the order, which is disorienting, but you won't be changing the order very often. The order cannot be keyed, but is at least predictable now. It's a nice feature! :rock:

I need to implement smoothing and auto weighting before we can do a proper tutorial. Sorry!

Don't listen to Shiu when he promises subdivision. :wonder: It's difficult to implement, would require meshes to use quads instead of triangles and affects the runtimes. Maybe someday though.

Edge subdivision of the explicitly-defined edges would be simpler, right? The editor already does auto-triangulation anyway.

Or not. 😃

Subdivision creates new vertices (doubles the vertex count) that are positioned based on the original mesh's vertices. Subdividing a mesh of triangles results in "pinching". Subdividing a mesh of quads makes it smoother. This means a coarse mesh can be animated, simplifying FFD and skinning setup, then subdivision makes the mesh deformation smooth. There is less processing on the coarse mesh for applying FFD and skinning, but more processing to compute the subdivision. There is also the problem of how to create meshes that use quads rather than triangles. Maybe we could force vertices to be a uniform grid for this type of mesh. This would be ok if the mesh hull is rectangular but I imagine we'd want to support an arbitrary polygon for the mesh hull.

Ah, you were talking about a nondestructive subdivision modifier/filter thing, rather than a permanent subdivide operation.

Yeah, I see where this would be useful but difficult to implement.

Actually I don't think the difficulty in implementation differs that much from permanent to non-destructive subdivision. The cool thing with non-destructive or non-permanent subdivision is: You have less points to weigh when using skinning and less points to move around when using FFD. If you do find you need more points to move around, you can always add them. Catmull-clark subdivision (which we might use, there are some other newer algorithms that might be faster) makes all polygons quads (two triangles) so it results in very nice deformation. If you are interested in seeing how it would look, let me know and I can put up a small video of it.

oh and here's some info on it, it's surprisingly simple. http://en.wikipedia.org/wiki/Catmull%E2 ... on_surface

Woot 🙂 Thanks for the fix!

18 jours plus tard

I know Esoteric is making a video eventually, but it seems like everyone knows how to get skinning working, and I can't get far at all. Can someone (maybe someone who isn't Esoteric) post a simple 5-? step process to start bending stuff with bones? I see hints in the UI for how to get to that point, but I just don't have enough information to get all the way there.

This is what I imagine the first steps are, and I may be wrong:

  1. Add an image.
  2. Add bones to that image.
  3. Create mesh from image.
  4. Manually add vertices all along the mesh so that it can bend smoothly.
  5. ???

Something something about vertex weights? I can't get that far in the UI apparently. Thanks!

  1. Choose Weights tool and select the mesh.
  2. Click Bind and choose bones to affect mesh, click Bind again when done.
  3. Select mesh vertices for which you want to change the weight.
  4. Select bone(s) in Skinning Weights dialog for which you want to change the weight.
  5. Click and drag up/down in the editor area to change the weight, or use the weight slider.

This worked perfectly. Thank you so much!

2 ans plus tard

I have had this work well for me in the past but now when I try to select weighted vertices on a mesh that has been bound to several bones, they no longer select. I have been wrestling with this problem for a several hours and can't figure out what I am doing wrong. I am drag selecting and using ctrl-click to select and the verts all stay the same in appearance. Because I can't select verts I can't drag up and down to change the weighting of the verts.

I have followed the Spine documentation to the letter.
Version 3.2.01

Thanks for your help in advance!

Eckoh, that doesn't sound right. Have you tried restarting Spine? If it still happens, can you email us the .spine file? contact@esotericsoftware.com We don't need the images.