MB-Lab icon indicating copy to clipboard operation
MB-Lab copied to clipboard

Toon Girl Prototype Ver 1.0

Open animate1978 opened this issue 5 years ago • 19 comments

New mesh project for FUTURE (1.7.7?) release.

Based off of this model found here - https://www.blendswap.com/blend/17677

License - CC-0

new_mesh_girl_001

Above is the base file

new_mesh_girl_003

The above is after appending the body mesh and the default MB-Lab skeleton into a new dev file.

new_mesh_girl_005

Some more editing.

Screenshot from 2019-09-06 09-28-13

Weight Painting in progress, the left instance of Blender is Toon Girl V1 and the right is MB-Lab Anime model

animate1978 avatar Sep 06 '19 14:09 animate1978

TOON_GIRL_eye_dev_005

Toon Girl eyes are now complete

animate1978 avatar Sep 10 '19 13:09 animate1978

I assume this opens the door to adding new meshes to MB-Lab.

Do you plan to create a tutorial showing how you did this?

blaisefaint avatar Sep 11 '19 16:09 blaisefaint

It does. Well at THIS point it is a total WIP and I am not sure if it will entirely work well, had some issues with the weights (I am assuming) after I tested adding it MB-Lab.

https://vimeo.com/359182294

This was recorded the second time around after the first time trying. So I wanted to record it to show just how difficult this is going to be.

A tutorial will be done once a successful test has been completed, which I hope will happen.

animate1978 avatar Sep 11 '19 17:09 animate1978

weight_paint_dev_001

Begun to redo the weight painting. This is going to take some time.

animate1978 avatar Oct 29 '19 12:10 animate1978

toon_dev_001

Trying again.

smearing_01

smearing persists.

animate1978 avatar Feb 08 '20 16:02 animate1978

Something is not going right with this process.

To begin I separated the mesh by material, so that made up the teeth, the tongue, the mouth, the eyelashes, the eyebrows.

Then I weight painted each one using the same vertex group name, for the head vertex group. For now.

I painted the eyes which have been separate in the file for some time.

Joined all the mesh together as one. Saved.

Ran the export script and THIS is where it gets bad. Previous exports produced a vertex group JSON file around 2 MB, this new rework is exporting to a size of 12 MB now.

Appended the final model to humanoid library blend file.

I also decided to start checking the weight paint results after I exported.

Here lies problems....

bad_weights_001

Comparison of the regular MB-Lab models... mb_lab_normal_weights_001

So either the code needs work, or the process needs work... I don't know but I am done for the day

animate1978 avatar Mar 29 '20 17:03 animate1978

At first glance it seems to be an index issue. Meaning it's applying the weights to the wrong indexes and/ or further operations may be needed for instance, subtract the weight from 1. Just a theory.

On Sun, Mar 29, 2020, 1:16 PM animate1978 [email protected] wrote:

Something is not going right with this process.

To begin I separated the mesh by material, so that made up the teeth, the tongue, the mouth, the eyelashes, the eyebrows.

Then I weight painted each one using the same vertex group name, for the head vertex group. For now.

I painted the eyes which have been separate in the file for some time.

Joined all the mesh together as one. Saved.

Ran the export script and THIS is where it gets bad. Previous exports produced a vertex group JSON file around 2 MB, this new rework is exporting to a size of 12 MB now.

Appended the final model to humanoid library blend file.

I also decided to start checking the weight paint results after I exported.

Here lies problems....

[image: bad_weights_001] https://user-images.githubusercontent.com/479115/77855553-bbfb0c00-71b6-11ea-956e-9d8ec399e4f5.png

Comparison of the regular MB-Lab models... [image: mb_lab_normal_weights_001] https://user-images.githubusercontent.com/479115/77855588-ecdb4100-71b6-11ea-92ce-e20544562655.png

So either the code needs work, or the process needs work... I don't know but I am done for the day

— 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/161#issuecomment-605669167, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKYHC3SOOEDGPZOIEPQLCXDRJ57ABANCNFSM4IUJVRBQ .

Noizirom avatar Mar 29 '20 23:03 Noizirom

I think you may be right, it may be related to the way I was painting it. I added vertex groups to the eye objects named head. Really should know better lol, thinking about it now

So what I am going to do now is Join all the objects first, then separate by material, paint, then re-join. I think that was the process I did before, or similar.

animate1978 avatar Mar 30 '20 00:03 animate1978

Yeah that didn't work either...

animate1978 avatar Mar 30 '20 00:03 animate1978

You also have to make sure that it assigns the correct weight with the correct group if it has several. (When transferring). For example, if a vertex has a vertex group it is guaranteed to have an index of 0, but if the vertex belongs to more than one, then you have to record the index for the vertex as well as the index for the vertex group. The index 12 is usually the "head" vertex group but that could be index 0 or 1,etc. For the actual vertex. If that makes sense.

On Sun, Mar 29, 2020, 8:37 PM animate1978 [email protected] wrote:

Yeah that didn't work either...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/animate1978/MB-Lab/issues/161#issuecomment-605727844, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKYHC3X55R5X2QUJHXAGJGLRJ7SVZANCNFSM4IUJVRBQ .

Noizirom avatar Mar 30 '20 02:03 Noizirom

It does.

I have figured out something is that the recent attempts I have been separating the mesh, painting them and then re-joining them. This may be one issue as to the size of the JSON file when exported. I opened up an earlier attempt from last year, this model was already weight painted, ran the script, the JSON was around 2 MB as opposed to the newer attempt, where it was 12 MB.

So it leads me to believe that the separating -> paint -> re-joining of the mesh is causing this.

animate1978 avatar Mar 30 '20 14:03 animate1978

Thought of something that might have been an issue which is all this time I have been appending the mesh of Toon Girl to humanoid library WITH the vertex weights, whereas the regular MB-Lab mesh do NOT have them.

Result?

bad_weights_002

Still no change, if not made the weights worse?

On the other hand this persistent error I would get regarding the node tree has stopped, not sure what I did to change.

Now the only error is that it can't seem to find the expressions for this mesh but that is expected.

animate1978 avatar Mar 31 '20 13:03 animate1978

Ok so there is something VERY wrong with this script I believe. I deleted all the weight groups and started new. Just the head, again for this test. Except the eyes of course.

base_weight_test

Once it wrote to file I took this JSON, renamed it, placed it where it needed to go and booted up Blender... got this result.

base_weight_test_bad

Not sure what to do at this point

animate1978 avatar Apr 01 '20 03:04 animate1978

I'm currently working on a better vertex group getters/ setters. Once I finish the scripts and do some testing, I'll send you a copy to test. I was having similar issues with something I was testing.

On Tue, Mar 31, 2020, 11:44 PM animate1978 [email protected] wrote:

Ok so there is something VERY wrong with this script I believe. I deleted all the weight groups and started new. Just the head, again for this test. Except the eyes of course.

[image: base_weight_test] https://user-images.githubusercontent.com/479115/78096870-6a15da00-73a0-11ea-83d5-a80c3ba068e9.png

Once it wrote to file I took this JSON, renamed it, placed it where it needed to go and booted up Blender... got this result.

[image: base_weight_test_bad] https://user-images.githubusercontent.com/479115/78096877-6d10ca80-73a0-11ea-8df6-06c94ff27d25.png

Not sure what to do at this point

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/animate1978/MB-Lab/issues/161#issuecomment-607010276, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKYHC3W2OVPK67IYQX4SXILRKK2APANCNFSM4IUJVRBQ .

Noizirom avatar Apr 01 '20 06:04 Noizirom

Very cool, I will wait to further test

animate1978 avatar Apr 01 '20 12:04 animate1978

Did you get the files I sent?

Noizirom avatar Apr 13 '20 22:04 Noizirom

So some real nice progress has been made with MB-Dev for the Toon Girl model!

weight_paint_success_01 full_WP_slight_smear_01

The "Vertices Group Tools" export to JSON works fantastic! I successfully saved the JSON (the formatting is weird but whatever) and Toon Girl, aside from the slight smear you see in that image above, is successful!

Some editing has to be done but the testing I have done has given me huge hope that new characters can be added in the future.

animate1978 avatar Jul 07 '20 14:07 animate1978

This opens doors to amazing potential, especially if it can be joined to something like this: https://shunsukesaito.github.io/PIFuHD/

blaisefaint avatar Jul 07 '20 19:07 blaisefaint

So continuing to have issues here.

  1. Multiple vertex groups are created. Not sure why. multiple_vertex_groups_issue_02

I have edited the file multiple times, but the problem persists.

  1. Morphs are causing errors.

Again I have tried to get this problem "fixed" but there seems to be no solution at the moment.

So after careful consideration, this part of the project will NOT be released as 1.7.8, the addition of Toon Girl that is.

I will be testing the development of MB-Dev with Manuel models so that 1.7.8 could be released in a decent time frame. It has been worked on for 7 months now and a lot of people are expecting a new version I would assume. This decision is not being made lightly I REALLY wanted to add Toon Girl to this version but with all the issues it does not seem to be a huge priority at this time.

Maybe 1.7.9 it can be added after more development and troubleshooting but for now I think it is best to just put this on the backburner until a later time.

animate1978 avatar Jul 09 '20 14:07 animate1978