Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

MB Lab Internals

animate1978 edited this page Feb 22, 2019 · 10 revisions

MB-Lab Modules


_ init _.py

This is the core of the addon.

  • Function calls
  • UI Elements

algorithms.py

Contains various functions for every engine.


animationengine.py

Handles the animation import and assigning to skeleton...

  • Retargeting
  • Identifies Bones
  • Similar functions (expand)
  • Loads BVH files, saves and loads poses.

humanoid.py

Handles much of the character changing functions including Auto-Modelling.


materialengine.py

This is where the image textures get loaded and applied to nodes


morphengine.py

This is where the morphs of the character are loaded from JSON files


proxyengine.py

Handles the Proxy Fitting functions


skeletonengine.py

Loads and applies the skeleton (either FK or IK) to the character


MB-Lab Data


humanoid_library.blend

Contains the following

Mesh

  • MBLab_human_female
  • MBLab_human_male
  • MBLab_anime_female
  • MBLab_anime_male

Armatures

  • MBLab_skeleton_base_fk
  • MBLab_skeleton_base_ik
  • MBLab_skeleton_muscle_fk
  • MBLab_skeleton_muscle_ik

Shaders

Realistic Shaders

  • MBlab_pupil
  • MBlab_human_teeth
  • MBlab_fur
  • MBlab_generic
  • MBlab_human_eyes
  • MBlab_cornea
  • MBlab_human_skin

Cell Shaders

  • MBlab_toon_black
  • MBlab_generic
  • MBlab_anime_skin
  • MBlab_anime_eyes

FaceRig

  • Face_Rig_widgets
  • Phenome_rig
  • MBLab_skeleton_face_rig

WARNING! Editing humanoid_library.blend can cause irreversible damage! Do not edit unless you know exactly what you are doing!


characters_config.json

The base models, textures and JSON data are referenced from this file


retarget_knowledge.json

Retargetting data


anthropometry

Contains measurement data for male and female base models

assets

Contains the demo asset files, as well as associated texture maps.

bboxes

(?) Bounding Box?

expressions_comb

Contains human readable expressions

expressions_morphs

joints

Contains some kind of data related to joints between bones of the armature, is called by skeletonengine.py

measures

Contains measurement data

morphs

pgroups

Polygon Indices?

phenotypes

Morphs for each base model that change the character based on geographic location

poses

Pose JSON files for each base model

presets

Morphs to describe different body types

textures

The texture maps for MB-Lab

transformations

vertices

Contains vertice info?

vgroups

Contains vertice group data