FaceGen 3 SDKs Reference
|
Non-linear controls include demographics, caricature and asymmetry: More...
#include <FanControls.hpp>
Public Member Functions | |
bool | readFromFile (FutBinaryFileC &file, uint dim[FANTYPE_SIZE][FANSYMM_SIZE]) |
float | getAttribute (FanRaceE, FanAttribE, FanTypeE, Sam3Coord const &) const |
void | setAttributes (FanRaceE, FanTypeE, const float val[FANATT_SIZE], Sam3Coord &) const |
float | getCaricature (FanRaceE, FanTypeE, FanSymmE, Sam3Coord const &) const |
void | setCaricature_ (FanRaceE, FanTypeE, FanSymmE, float, Sam3Coord &) const |
float | getRace (FanRaceE, FanRaceE, Sam3Coord const &, FanTypeE type=FANTYPE_SIZE) const |
float | getRaceCS (FanRaceE, FanRaceE, Floats const &) const |
void | setRace_ (FanRaceE, FanRaceE, float, Sam3Coord &, FanTypeE type=FANTYPE_SIZE) const |
Sam3Coord | random (FanRaceE race, FanGender gender, float GSstdev=1.0f, float GAstdev=1.0f, float TSstdev=1.0f) const |
Random face coordinate from given racial group and gender: | |
Sam3Coord | randomHispanic (FanGender gender, float GSstdev=1.0f, float GAstdev=1.0f, float TSstdev=1.0f) const |
Random face coordinate to approximate hispanic faces. | |
Floats | geneticRandom (float randomness, Floats const &baseCoord) const |
Genetic random for a type/symm component: | |
Sam3Coord | geneticRandom (float randomness, Sam3Coord const &baseCoord) const |
A type/symm coord component. | |
void | reflect (FanRaceE, Sam3Coord &) const |
void | geneticTween (FanTypeE, FanSymmE, float, Sam3Coord const &, Sam3Coord const &, Sam3Coord &) |
Sam3Coord | genderRandom (FanGender gend, float GSstdev=1.0f, float GAstdev=1.0f, float TSstdev=1.0f) const |
Random face from gender-specific distributions: | |
Public Attributes | |
bool | initialized |
FanRaceDistS | distrib [FANRACE_SIZE] |
FanPrtOffLinCtlS | attr [FANRACE_SIZE][FANATT_SIZE][FANTYPE_SIZE] |
FanOffLinCtlS | raceCtrls [FANRACE_SIZE][FANRACE_SIZE] |
MatF | basis [FANRACE_SIZE][FANTYPE_SIZE][FANATT_SIZE] |
Mat22F | invAttCov [FANRACE_SIZE][FANTYPE_SIZE] |
FanGenderDist | genderDistrib [FANGENDER_SIZE] |
Non-linear controls include demographics, caricature and asymmetry:
Definition at line 121 of file FanControls.hpp.
|
inline |
Definition at line 138 of file FanControls.hpp.
Sam3Coord Fg::Sam3NLCtrls::genderRandom | ( | FanGender | gend, |
float | GSstdev = 1.0f , |
||
float | GAstdev = 1.0f , |
||
float | TSstdev = 1.0f |
||
) | const |
Random face from gender-specific distributions:
GSstdev | Must use specific gender here, not FANGENDER_SIZE |
Floats Fg::Sam3NLCtrls::geneticRandom | ( | float | randomness, |
Floats const & | baseCoord | ||
) | const |
Genetic random for a type/symm component:
baseCoord | Typically between 0.1 and 0.5 |
A type/symm coord component.
Genetic random over shape/color, symm/asym:
baseCoord | Typically between 0.1 and 0.5 |
void Fg::Sam3NLCtrls::geneticTween | ( | FanTypeE | , |
FanSymmE | , | ||
float | , | ||
Sam3Coord const & | , | ||
Sam3Coord const & | , | ||
Sam3Coord & | |||
) |
A caricature-preserving tween, which better preserves unique features of the parents than a linear interpolation:
Sam3Coord Fg::Sam3NLCtrls::random | ( | FanRaceE | race, |
FanGender | gender, | ||
float | GSstdev = 1.0f , |
||
float | GAstdev = 1.0f , |
||
float | TSstdev = 1.0f |
||
) | const |
Random face coordinate from given racial group and gender:
gender | Use FANRACE_ALL for random racial group |
GSstdev | Use FANGENDER_SIZE for random gender |
Sam3Coord Fg::Sam3NLCtrls::randomHispanic | ( | FanGender | gender, |
float | GSstdev = 1.0f , |
||
float | GAstdev = 1.0f , |
||
float | TSstdev = 1.0f |
||
) | const |
Random face coordinate to approximate hispanic faces.
GSstdev | Use FANGENDER_SIZE for random gender |
FanPrtOffLinCtlS Fg::Sam3NLCtrls::attr[FANRACE_SIZE][FANATT_SIZE][FANTYPE_SIZE] |
Definition at line 126 of file FanControls.hpp.
MatF Fg::Sam3NLCtrls::basis[FANRACE_SIZE][FANTYPE_SIZE][FANATT_SIZE] |
Definition at line 131 of file FanControls.hpp.
FanRaceDistS Fg::Sam3NLCtrls::distrib[FANRACE_SIZE] |
Definition at line 125 of file FanControls.hpp.
FanGenderDist Fg::Sam3NLCtrls::genderDistrib[FANGENDER_SIZE] |
Definition at line 136 of file FanControls.hpp.
bool Fg::Sam3NLCtrls::initialized |
Definition at line 123 of file FanControls.hpp.
Mat22F Fg::Sam3NLCtrls::invAttCov[FANRACE_SIZE][FANTYPE_SIZE] |
Definition at line 133 of file FanControls.hpp.
FanOffLinCtlS Fg::Sam3NLCtrls::raceCtrls[FANRACE_SIZE][FANRACE_SIZE] |
Definition at line 128 of file FanControls.hpp.