Kasia wrote: ↑Fri Apr 17, 2020 8:30 am
When you said Vertex layers, did you mean vector layers?
Sorry, yes,
vector layers. I use too many different programs and sometimes get my terminology mixed up.
A custom 'Smart Warp' mesh isn't always necessary because when you apply bones to an image, Moho is actually creating a mesh for you
invisibly. If this result is exactly what you need, you should go with it.
The time to create a custom mesh for Smart Warp is:
1. When Moho's auto-generated mesh isn't refined or specific enough to do what you want. For example, if you see faceting after rigging a long thin tail using only bones, you can reduce the faceting by creating a mesh with more segments.
2. When you want to deform the image layer using point binding. Naturally, an image layer doesn't have points but you can effectively give it points by assigning a Smart Warp mesh layer.
3. When you want to also add point animation on top of the bones deformations. For example, if the bones-only deformation looks bad at certain angles, you can add point animation corrections in the Smart Bone Action.
4. When you want to punch holes in the mesh. You typically see this in image-based face animations where holes are cut out for the eyes and mouth.
So, yeah, Smart Warp may seem complicated but it opens a whole new level of tricks to animate with.
And to be honest, it's really not difficult work with Smart Warp. Basically, you plot your points in a vector layer over the image layer, where you want your 'handles' to deform the image. Just think of each point in the vector layer as a small bone with a radial fall-off. When you're done with the vector layer, apply Triangulate 2D Mesh. This command triples the polygons in the vector layer which is necessary for a Smart Warp to work. Then all you need to do is choose this mesh layer in the Image layer's Layer Settings under Smart Warp Layer.
Here are some tips for using Smart Warp:
- When using a custom mesh, don't bind the image layer to bones. After applying the Smart Warp, just leave the image layer alone. Remember the mesh layer is already being deformed by bones, and the image layer is being deformed by the mesh layer.
- When creating a custom mesh, you don't need to create only enclosed shapes. Some users will create enclosed shapes for the major areas and just draw open lines where they want a nice flow of polygons for optimal deformation. When you use Triangulate 2D Mesh, it will create proper shapes based on the vertices you plotted, not the shapes.
- Did you know you can create and edit a triangulated 2D mesh manually. Moho basically sees any vector layer containing vector shapes with 3 vertices as a Mesh layer even. This can be helpful when you need something simple but very specific. (Probably a rare situation. I'm mentioning this mainly so you don't get confused when you discover a Mesh layer you didn't think you created.)
- The image layer gets rendered only where there is a filled filled in the mesh layer. This means you can 'mask' the image by knocking out filled shapes, as described above for eye and mouth holes. This is also useful around the edges. Combine this with a PNG image's alpha channel to get both nice deformations and smooth (non-faceted) edges.
- Smart Warp meshes do not have curved edges. To make an edge 'smooth', you'll need to increase the level of detail in your mesh. (And/or combine it with the transparent edge in the PNG image as described above.)
- The mesh layer should be hidden (click off the eyeball icon.) The image layer will still render because it's using the mesh layer for deformation, not its visibility. (Well, that's not exactly true because it's using the mesh's filled shapes as masks...but try not to think about that too much.)
- You can't use the Cropping tool on the image layers when using Smart Warp layers. It just doesn't work. Try it and see what happens. But of course, you don't need the Cropping tool because the mesh layer will 'crop' your image, so if you have Cropping enabled on the image layer before you apply the Smart Warp, disable it.
I can probably think of more tips but that should be plenty to get you started.
Hope this helps.