animate1978 / MB-Lab

MB-Lab is a character creation tool for Blender 4.0 and above, based off ManuelBastioniLAB
Other
1.84k stars 314 forks source link

vertex groups for procedural hairs #169

Closed dribeiro73rj closed 4 years ago

dribeiro73rj commented 4 years ago

Is your feature request related to a problem? Please describe.

create hairstyles in a mb-lab character demands to create 3 vector groups each time

Describe the solution you'd like

I would like a good set of vertex groups, even related hair particle systems on each of them

Describe alternatives you've considered add at least 3 vertex groups on the base models for procedural hair :

top - the top scalp side - the side scalp back - the back scalp

Additional context**

image

Noizirom commented 4 years ago

Within the next week I'm going to try to upload the scripts for my fork. I have a rotation limits for bones and polygon maps for hair. I just need to transfer the script into mb_lab.

On Sat, Nov 2, 2019, 7:45 AM Daniel Ribeiro notifications@github.com wrote:

Is your feature request related to a problem? Please describe.

create hairstyles in a mb-lab character demands to create 3 vector groups each time

Describe the solution you'd like

I would like a good set of vertex groups, even related hair particle systems on each of them

Describe alternatives you've considered add at least 3 vertex groups on the base models for procedural hair :

top - the top scalp side - the side scalp back - the back scalp

Additional context**

[image: image] https://user-images.githubusercontent.com/53482482/68070439-033ab900-fd4d-11e9-9429-3d080a64a524.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/animate1978/MB-Lab/issues/169?email_source=notifications&email_token=AKYHC3VLWJWKA22DRF6ZQKDQRVR37A5CNFSM4JIE2HJKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HWKHE5A, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKYHC3VYVSJH3BSPY6TPHZ3QRVR37ANCNFSM4JIE2HJA .

animate1978 commented 4 years ago

FINAL_TEST_002

Initial testing and viewport rendering done after merging the Hair Engine into the Developmental branch

animate1978 commented 4 years ago

@Noizirom is there a way to attach the generated Hair object to the MB-Lab character? As a test I moved the character, the hair remains in place.

I know that we can parent it to the mesh, how hard would it be to do this in the code?

Noizirom commented 4 years ago

I'll have to test it again. Currently it should follow the head in pose. It has an Armature mod, but I can test parenting also. I'll look at it tonight. Let you know by tomorrow.

On Tue, Nov 5, 2019, 1:40 PM animate1978 notifications@github.com wrote:

@Noizirom https://github.com/Noizirom is there a way to attach the generated Hair object to the MB-Lab character? As a test I moved the character, the hair remains in place.

I know that we can parent it to the mesh, how hard would it be to do this in the code?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/animate1978/MB-Lab/issues/169?email_source=notifications&email_token=AKYHC3RBIV3SIJKPOXJUTWLQSG4YVA5CNFSM4JIE2HJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDD3YZQ#issuecomment-549960806, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKYHC3VDNHTNDVZXG24K4KLQSG4YVANCNFSM4JIE2HJA .

animate1978 commented 4 years ago

Ah ok. It does in move in Pose mode, I am just concerned that when / if users move the character, lets say an animation, and the body (actually in this case the armature) moves in Object mode, then the Hair object remains in place.

If that makes sense?

Noizirom commented 4 years ago

I corrected the parenting. It is now patented to the armature. I also added a button to add hair to selected polygons. I will be uploading in a hour or so. The hairs can be added anywhere, but I suggested only adding hair to the head. Its the only way it will work properly, but anywhere else will need the targets changed manually. And you can still used the head hair with it. Also, you can now add as many head hair or loose hairs as you want. But I strongly recommend just adding facial hair. And btw, these haven't been tested with shapekeys. I'll post something after I update the scripts on github. I'm just not by the computer at the moment.

On Wed, Nov 6, 2019, 12:26 AM animate1978 notifications@github.com wrote:

Ah ok. It does in move in Pose mode, I am just concerned that when / if users move the character, lets say an animation, and the body (actually in this case the armature) moves in Object mode, then the Hair object remains in place.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/animate1978/MB-Lab/issues/169?email_source=notifications&email_token=AKYHC3WNJ774OKYMRBCSIX3QSJIQNA5CNFSM4JIE2HJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDFKA5A#issuecomment-550150260, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKYHC3SKSBAKURWISVPTC4TQSJIQNANCNFSM4JIE2HJA .

Noizirom commented 4 years ago

The “Add Hair” button is now the “Particle Hair” button. Both can be found as the last items in the “ASSETS LIBRARY” menu.

Select the body mesh.

Go into “EDIT' mode and select the desired polygons.

WARNING! Any polygon can be selected, but it is recommended to on select polygons in the head.

Switch back to “OBJECT” mode and press the “Hair from Selected” Button.

Adjust and Groom the Hair.

The “Particle Hair” button still can be used with selected polygons hair.

You can add an unlimited amount of hair objects.

On Wed, Nov 6, 2019, 5:40 AM Zion Hill Hill noizirom@gmail.com wrote:

I corrected the parenting. It is now patented to the armature. I also added a button to add hair to selected polygons. I will be uploading in a hour or so. The hairs can be added anywhere, but I suggested only adding hair to the head. Its the only way it will work properly, but anywhere else will need the targets changed manually. And you can still used the head hair with it. Also, you can now add as many head hair or loose hairs as you want. But I strongly recommend just adding facial hair. And btw, these haven't been tested with shapekeys. I'll post something after I update the scripts on github. I'm just not by the computer at the moment.

On Wed, Nov 6, 2019, 12:26 AM animate1978 notifications@github.com wrote:

Ah ok. It does in move in Pose mode, I am just concerned that when / if users move the character, lets say an animation, and the body (actually in this case the armature) moves in Object mode, then the Hair object remains in place.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/animate1978/MB-Lab/issues/169?email_source=notifications&email_token=AKYHC3WNJ774OKYMRBCSIX3QSJIQNA5CNFSM4JIE2HJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDFKA5A#issuecomment-550150260, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKYHC3SKSBAKURWISVPTC4TQSJIQNANCNFSM4JIE2HJA .

animate1978 commented 4 years ago

@Noizirom I hate to report but the Latino male nor female do not have JSON hair export associated. I know that you have translated these to npz, but this is an example of using JSON over npz, I can add the Latino JSON right now, as opposed to the npz (mainly because I am not sure the workflow).

Something to think about before we make a commitment to a binary file

Noizirom commented 4 years ago

If you have a list of the polygon indexes, I can give you a script to update the .npz or I could update them myself. I will get the script to you later. I've been making node setters and getters for the EEVEE hair shader. I should have something within the next week for EEVEE.

On Wed, Nov 20, 2019, 8:23 AM animate1978 notifications@github.com wrote:

@Noizirom https://github.com/Noizirom I hate to report but the Latino male nor female do not have JSON hair export associated. I know that you have translated these to npz, but this is an example of using JSON over npz, I can add the Latino JSON right now, as opposed to the npz (mainly because I am not sure the workflow).

Something to think about before we make a commitment to a binary file

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/animate1978/MB-Lab/issues/169?email_source=notifications&email_token=AKYHC3UK7MPX2QLW4FSUD6LQUU24NA5CNFSM4JIE2HJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEER6RHY#issuecomment-556001439, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKYHC3RCXFROUTJ3QAF5EFLQUU24NANCNFSM4JIE2HJA .

animate1978 commented 4 years ago

This is long overdue to be closed