OliverJPost / HumGen3D

Main code of the Human Generator 3D add-on for Blender
GNU General Public License v3.0
79 stars 14 forks source link

Mesh / armature size mismatch #47

Closed rbregier closed 1 year ago

rbregier commented 1 year ago

Hi,

The batch generator produces meshes which are much smaller than the armature in 2-6 percent of cases (according to my observations). Teeth and eyeballs seem correct however.

Additionally, error messages regularly pop up during the generations, e.g.: image image image image

Screenshots image

Applying a random pose to such a model leads to weird results due to the mesh/armature mismatch: image

To Reproduce

Run this script multiple times until you get a monster:

import bpy
from HumGen3D.batch_generator.generator import BatchHumanGenerator
from HumGen3D import Human

context = bpy.context

generator = BatchHumanGenerator(add_clothing=False, add_hair=True, add_expression=True)

# Scene cleaning, if needed
bpy.ops.object.select_all(action='DESELECT')
if 'HumGen' in bpy.data.collections.keys():
    while len(bpy.data.collections['HumGen'].objects) > 0:
        obj = bpy.data.collections['HumGen'].objects[0]
        human = Human.from_existing(obj)
        human.delete()

human = generator.generate_human(context=context)

Desktop (please complete the following information):

OliverJPost commented 1 year ago

Very intriguing bug, will look into it. Thanks for the detailed report! The mentioned error messages are harmless, but I will take care of them

OliverJPost commented 1 year ago

It seems like it's caused by a faulty expression, most likely "talking". I've created #60 for this. In the next beta update where we update the Base_Humans pack this will be fixed