MB-Lab
MB-Lab copied to clipboard
Toon Girl Prototype Ver 1.0
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
Above is the base file
The above is after appending the body mesh and the default MB-Lab skeleton into a new dev file.
Some more editing.
Weight Painting in progress, the left instance of Blender is Toon Girl V1 and the right is MB-Lab Anime model
Toon Girl eyes are now complete
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?
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.
Begun to redo the weight painting. This is going to take some time.
Trying again.
smearing persists.
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....
Comparison of the regular MB-Lab models...
So either the code needs work, or the process needs work... I don't know but I am done for the day
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 .
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.
Yeah that didn't work either...
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 .
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.
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?
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.
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.
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.
Not sure what to do at this point
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 .
Very cool, I will wait to further test
Did you get the files I sent?
So some real nice progress has been made with MB-Dev for the Toon Girl model!
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.
This opens doors to amazing potential, especially if it can be joined to something like this: https://shunsukesaito.github.io/PIFuHD/
So continuing to have issues here.
- Multiple vertex groups are created. Not sure why.
I have edited the file multiple times, but the problem persists.
- 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.