This is an implementation of "Example-Based Facial Rigging, Siggraph 2010."
It is a method for generating facial blendshape rigs from a set of example poses of a CG character.
- trimesh2
- Eigen 3.3.3
- SuiteSparse
- ceres solver 1.12.0
cd third_party/trimesh2
make clean && make
cd third_party/SuiteSparse
make
sudo make install
cd third_party/ceres-solver-1.12.0
mkdir build && cd build
cmake ..
make -j4
sudo make install
if error, please refer to https://blog.csdn.net/calvinpaean/article/details/99761765
.
mkdir build
cd build
cmake ..
make -j8
mkdir B
mkdir initBlendshape
mkdir reconstruct
mkdir S
./TestCases
Upper: reference blendshapes, Below: calculated blendshapes for another subject
cd third_party/gflags
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_SHARED_LIBS=ON -DGFLAGS_NAMESPACE=gflags ../
make -j4
sudo make install
cd third_party/glog
./autogen.sh
./configure
make -j8
sudo make install
usr/bin/ld: /usr/local/lib/libglog.a(libglog_la-logging.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libglog.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
please ./configure CPPFLAGS="-I/usr/local/include -fPIC" LDFLAGS="-L/usr/local/lib"