infosia / readyplayerme-Tpose

T-pose readyplayer.me avatars

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

T-pose Ready Player Me full-body glTF binary (.glb)

This project has been archived and is no longer maintained Check out avatar-asset-pipeline for equivalent feature

Background

The avatar you can create from Ready Player Me full-body avatar demo glTF binary (.glb) defaults to A-pose. This tool make it to T-pose.

Avatar

Usage

> me2tpose -i A_pose.glb -c config.json

This generates glTF binary file which defaults to T-pose. Generated *.bin and *.json temporary files are only for debugging purpose.

Options

  • --input : input glTF binary (.glb) file name
  • --config: Bone configuration (JSON)

Bone configuration JSON contains rotation of the bones in order to convert to A-pose as quaternion. You can get quaternion value visually from quaternions.online.

{
	"pose": {
		"LeftArm":  [ -0.386, 0, 0, 0.923 ],
		"RightArm": [ -0.386, 0, 0, 0.923 ]
	}
}

License

Building

You need Cmake and Visual Studio with C++ environment installed. There is a CMakeLists.txt file which has been tested with Cmake on Windows. For instance in order to generate a Visual Studio 10 project, run cmake like this:

> mkdir build; cd build
> cmake -G "Visual Studio 10" ..

About

T-pose readyplayer.me avatars

License:MIT License


Languages

Language:C++ 89.0%Language:C 10.9%Language:CMake 0.1%