mgear-dev / mgear4

mGear v.4.x.x (python 3 ready) https://mgear4.readthedocs.io
MIT License
266 stars 94 forks source link

Plebes - Skin transfer and more templates #78

Closed ragtag closed 2 years ago

ragtag commented 2 years ago

Adds an option to Plebes to transfer the skin weights from the generated character to the mGear joints, as an alternative to constraining them. This generally looks better and is a better starting point for tweaking weights and continue working on the character. Weights that don't exist in the mGear default biped, such as MakeHumans many face joints, are transferred to the most relative joint in mGear (e.g. head, lips or jaw). This means you may loose some functionality. The transfer happens by exporting a skinPack to a tmp dir, and editing it in code to re-map it to the mGear joints, before bringing it back in again. There is also a checkbox to just export the skinPack, but not bringing it back in again.

Added support for Autodesk Character Generator high and medium skeletons to Plebes.

Adjusted the number of spine joints for the different templates, to better match with what comes out of the character generator, and fixed some minor bugs I found in some of the templates.

Sample characters for Autodesk Character Maker, Character Creator 3, DazStudio, MakeHuman and Mixamo that can be used to test Plebes with are here: https://ragtag.net/xternal/mgear_samples.zip

Tested in Maya 2020 (Python 2) and 2022 (Python 3) on Linux, but should work fine on other OS's.

miquelcampos commented 2 years ago

Hello @ragtag thanks for the PR and all the super nice updates! :D This week an early next one I am in a crunch but I will check and Merge ASAP Thanks!