Coder Social home page Coder Social logo

jiaxiangshang / blendshapegeneration Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jpl917/blendshapegeneration

0.0 0.0 0.0 147.47 MB

a method for generating facial blendshape rigs from a set of example poses of a CG character

CMake 65.26% C++ 27.65% Python 7.09%

blendshapegeneration's Introduction

Example-Based Facial Rigging

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.

Dependencies

  • trimesh2
  • Eigen 3.3.3
  • SuiteSparse
  • ceres solver 1.12.0

install trimesh2

cd third_party/trimesh2
make clean && make

install SuiteSparse

cd third_party/SuiteSparse
make
sudo make install

install ceres

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.

Compile

mkdir build
cd build
cmake ..
make -j8

mkdir B
mkdir initBlendshape
mkdir reconstruct
mkdir S

./TestCases

results

SampleSample

SampleSample

Upper: reference blendshapes, Below: calculated blendshapes for another subject

install problems

install gflags

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

install glog

cd third_party/glog
./autogen.sh
./configure
make -j8
sudo make install

if occurs error

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"

blendshapegeneration's People

Contributors

jpl917 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.