Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Maya Basics & Newbie Lounge (https://simplymaya.com/forum/forumdisplay.php?f=31)
-   -   Make vertex normals point in same direction (https://simplymaya.com/forum/showthread.php?t=41532)

unready 16-06-2015 10:03 AM

Make vertex normals point in same direction
 
1 Attachment(s)
Hey guys! My first post on this forum, glad to be here!

I have a problem with the 'average vertex normal' command.

I have a human mesh, separated into two parts - head and torso.

On the edge where the head and torso are connected, the vertex normals point in different direction,
which makes the shading inconsistent. Easy fix, I thought. I selected all the vertices on torso and neck edges, then issued the 'average vertex command'. However, the results are not as expected, the vertices still point in different directions as you can see on the image below:

I just want to make the normals point in the same direction. I also tried combining the mesh, running the average command through all the vertices (which fixes the shading problem), but when I try to transfer attributes back to the separated mesh, it just turns black... This issue has been frustrating me for the last couple of days, so I would really appreciate any help! How to make vertices on two separate meshes have the same angle? Thanks so much!

mtmckinley 18-06-2015 11:03 PM

Just curious, is there a reason you don't want to combine the meshes together? If you combine the mesh and then merge the vertices at the seam (so that instead of having 2 stacked verts along the seam, you merge them down to 1), it should fix the issue after softening the normals on the new edge that is created.

unready 22-06-2015 07:30 AM

Quote:

Originally Posted by mtmckinley (Post 358914)
Just curious, is there a reason you don't want to combine the meshes together? If you combine the mesh and then merge the vertices at the seam (so that instead of having 2 stacked verts along the seam, you merge them down to 1), it should fix the issue after softening the normals on the new edge that is created.

The reason are blendshapes on the head. I might to extensive modifications on the torso in the future, and having head and torso separated saves me from a lot of potential headaches. Thanks for your advice!

mtmckinley 24-06-2015 02:20 PM

I see. What I've typically done in the past with head blendshapes is use the character's clothes or some other obvious "divider" between the head and the body as a geometry seam. Like if the character has a shirt on, the shirt can cover the seam where the head geometry is separate from the rest of him. Even if that means the head geometry goes partway down his chest, the seam will be hidden by the covering clothes or whatnot.

If you're not planning on using clothes, you could try doing as I suggested (combine, merge, soften) and then extract the faces. Hopefully the normals will still match enough after the extraction.

Another option would be animated the face with a skeleton rather than blendshapes, but I can understand if that's not an ideal alternative.

NextDesign 24-06-2015 03:12 PM

You can do this in the following way, however be warned that it's a bit fragile. You can't edit the geometry after this, or delete the history.

Once you have all of your blend shapes connected, simply combine the target head and the body into a single object and smooth the normals. The history dependency will keep the blendshape intact.

A better way would be to write a script that would take the vertex normals from overlapping vertices and average them.


All times are GMT. The time now is 07:59 PM.

Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Simply Maya 2018