Mass produce

Works in progress and technical screen shots.

Moderator: joepal

Mass produce

Postby joepal » Thu Jan 10, 2019 3:19 pm

Having grown very annoyed with the OpenGL refactoring, I've taken a break and worked on what I hope will be a rather desired feature: a mass randomization plugin

massproduce.png


The idea is to automate the whole modeling process, including saving/exporting models. It currently supports randomizing most macro modifiers and picking a relevant skin based on this, for example a skin named "... causasian female" if the gender was set to female and ethnicity to caucasian. Further, it so far supports saving MHM files, but not yet any actual export formats.

The source is available here: https://github.com/makehumancommunity/c ... assproduce. You'll need a MHAPI from today to run it.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4465
Joined: Wed Jun 04, 2008 11:20 am

Re: Mass produce

Postby wolgade » Fri Jan 11, 2019 11:16 am

Interesting idea, but it might be not so easy to set the sliders without any kind of visual feedback. Let me propose a way that might be more convenient: Instead of setting minimum and maximum values manually, the user provides two .mhm-files e.g. minimum.mhm and maximum.mhm to set the values.
wolgade
 
Posts: 795
Joined: Wed Jan 30, 2013 6:50 pm

Re: Mass produce

Postby joepal » Fri Jan 11, 2019 11:21 am

Wouldn't that mean a lot of MHM files? I mean, a toon with max-muscle / min-height / min-weight will look rather different than a toon with min-muscle / max-height / max-weight. I mean there's no guarrantee you'll end up at max muscle and max weight just because you're at max height.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4465
Joined: Wed Jun 04, 2008 11:20 am

Re: Mass produce

Postby wolgade » Fri Jan 11, 2019 11:37 am

Of course, my approach will end up with characters that are interpolated between these two given files. I probably didn't get you right, but what is the difference between setting min_value and max_value manually or simply reading these values from two files?
wolgade
 
Posts: 795
Joined: Wed Jan 30, 2013 6:50 pm

Re: Mass produce

Postby joepal » Fri Jan 11, 2019 12:06 pm

wolgade wrote:Of course, my approach will end up with characters that are interpolated between these two given files. I probably didn't get you right, but what is the difference between setting min_value and max_value manually or simply reading these values from two files?


I think possibly we're talking about two different types of randomization. Note that the point here isn't to generate characters interpolated on a span between two possible extremes. The idea is to generate a large set of characters with the slider values distributed separately and randomly between their individual allowed max and mean values. In the current approach, the value of the theoretical slider A wouldn't have any relation to the value of theoretical slider B. Whereas if we interpolate between two possible extremes, A and B would have a strong correlation.

If we wanted to interpolate between two possible extremes, I could see the value of a visual feeback. But with each slider randomized separately, I don't see the point.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4465
Joined: Wed Jun 04, 2008 11:20 am

Re: Mass produce

Postby wolgade » Fri Jan 11, 2019 2:56 pm

joepal wrote:I think possibly we're talking about two different types of randomization.

No, we don't.
joepal wrote:If we wanted to interpolate between two possible extremes, I could see the value of a visual feeback. But with each slider randomized separately, I don't see the point.

This might be true. I just thought it might be more convenient, but probably it's useless. The generated characters will look very different from those defined in two mhm-files. Well, it was just an idea.
wolgade
 
Posts: 795
Joined: Wed Jan 30, 2013 6:50 pm

Re: Mass produce

Postby joepal » Mon Feb 11, 2019 10:14 am

I've finished a first draft of the mass produce plugin now, and posted a demo video: https://youtu.be/jRHnJX-TdT4
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4465
Joined: Wed Jun 04, 2008 11:20 am

Re: Mass produce

Postby polylearn » Wed May 08, 2019 9:29 pm

Testing this plugin as it comes with 1.2.0-a3, it's working mostly very well even for MHX2 exports. There is only one major problem, namely the size and firmness of breasts tends to be maximized way too often.

Setting "max deviation from default" to the left-most position gives BreastSize 1.0 and BreastFirmness 1.0 for 100% of characters every time and setting max deviation slider all the way to the right still gives size 1.0 and firmness 1.0 for just about 50% of generated characters, regardless of gender. Values < 0.5 are rare, seen for maybe 10% of characters. All other modifiers seem to be randomized correctly without any bias as far as I can tell.

I suppose getting very large breasts for the generated characters might be desirable for some users and of course I can just manually set a smaller size and then disable randomization of breast but I would really like some natural variation also in this regard. Actually it would be best to be allowed to set a minimum and maximum for breast size just like you have for the macro settings. Going further with development, firmness could be made to inversely correlate with age possibly by a "prefer natural anatomy" switch.

One thing to massively improve convenience of this plug-in would be a possibility to save the customized settings to a separate file so that you could have predefined selections of allowed clothes, hairs and other features for your chosen groups of characters. It is quite tedious to go through all the checkboxes for each new session to avoid getting ladies with a half bald head or a group of men with ponytails and braided princess hair :D
polylearn
 
Posts: 6
Joined: Sat Apr 06, 2019 7:45 am

Re: Mass produce

Postby joepal » Sat May 11, 2019 2:25 pm

Huh. I hadn't seen the breast problem. I'll have to look into it.

Your other suggestions seem sensible too. The save preset thing I had planned, but hadn't got around to.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4465
Joined: Wed Jun 04, 2008 11:20 am

Re: Mass produce

Postby joepal » Sun May 12, 2019 10:23 am

I've turned these things into github issues now:

Breast size bug: https://github.com/makehumancommunity/c ... e/issues/2
Breast firmness dependent on age: https://github.com/makehumancommunity/c ... e/issues/3
Save/load presets: https://github.com/makehumancommunity/c ... e/issues/4
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4465
Joined: Wed Jun 04, 2008 11:20 am

Next

Return to WIP (Work In Progress)

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron