Soften edges of triangulated 2D mesh?

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
litote
Posts: 30
Joined: Mon Feb 18, 2019 12:16 pm

Soften edges of triangulated 2D mesh?

Post by litote »

When I use a smart warp layer with a vector layer to animate a triangulated mesh of a face image, the mouth I cut out has hard edges, making the mouth edges look very "cut out" from the face as if by scissors. Is there a way to feather the alpha of the cut out so it softens the edges? In After Effects, for example, you can feather masks to make the edges softer.
User avatar
Maestral
Posts: 531
Joined: Tue Jan 27, 2009 5:44 pm
Location: Belgrade, Serbia

Re: Soften edges of triangulated 2D mesh?

Post by Maestral »

You should search the forum since there were some writings about tMesh which are in fact shapes and can be further edited.
litote
Posts: 30
Joined: Mon Feb 18, 2019 12:16 pm

Re: Soften edges of triangulated 2D mesh?

Post by litote »

Maestral wrote:You should search the forum since there were some writings about tMesh which are in fact shapes and can be further edited.
If I knew what exactly to search for I would not need to post the question 8)
User avatar
Greenlaw
Posts: 9191
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Soften edges of triangulated 2D mesh?

Post by Greenlaw »

The mesh edge is always going to be 'hard' but there are a couple of things you can do to address your needs:

If you want a feathered edge for the image:

1. Feather the edges of the artwork itself in a paint program. You can do this by giving the image with a transparent background and saving it as a 32-bit PNG file.

...or...

2. Create a vector layer mask in Moho and use one of the edge blur options (i.e., Layer or style FX.) Then apply the mesh warp to this layer. (Multiple layers, vector or image, can share the same mesh warp.) naturally, the mask should have an appropriate number and placement of points for good deformation by the mesh.

If you want the mesh to have 'smooth' edges, you need to increase the polygon density. This is because the triangulated mesh cannot use smooth edges the way a normal vector path does, but increasing the polygon count will make it look less faceted. But if you decided to feather the edges of the image/mask as described above, you can disregard this part; just make sure the mesh is larger than the image/mask.

Hope this helps.
Last edited by Greenlaw on Thu Feb 28, 2019 4:34 pm, edited 6 times in total.
litote
Posts: 30
Joined: Mon Feb 18, 2019 12:16 pm

Re: Soften edges of triangulated 2D mesh?

Post by litote »

Thanks, I figured out the feathering method using Photoshop. Thanks for confirming edges will always be hard.
Post Reply