mirror of
https://github.com/overte-org/overte.git
synced 2025-04-07 23:53:54 +02:00
Rename FACESHIFT_BLENDSHAPES to BLENDSHAPE_NAMES
This commit is contained in:
parent
e0767e2f8c
commit
77dbe7a254
7 changed files with 11 additions and 9 deletions
|
@ -296,7 +296,7 @@ void ModelPackager::populateBasicMapping(QVariantHash& mapping, QString filename
|
|||
mapping.insert(JOINT_FIELD, joints);
|
||||
|
||||
// If there are no blendshape mappings, and we detect that this is likely a mixamo file,
|
||||
// then we can add the default mixamo to "faceshift" mappings
|
||||
// then we can add the default mixamo to blendshape mappings.
|
||||
if (!mapping.contains(BLENDSHAPE_FIELD) && likelyMixamoFile) {
|
||||
QVariantHash blendshapes;
|
||||
blendshapes.insertMulti("BrowsD_L", QVariantList() << "BrowsDown_Left" << 1.0);
|
||||
|
|
|
@ -157,7 +157,7 @@ void Head::simulate(float deltaTime) {
|
|||
updateEyeLookAt();
|
||||
}
|
||||
|
||||
// use data to update fake Faceshift blendshape coefficients
|
||||
// Use data to update fake blendshape coefficients.
|
||||
if (getProceduralAnimationFlag(HeadData::AudioProceduralBlendshapeAnimation) &&
|
||||
!getSuppressProceduralAnimationFlag(HeadData::AudioProceduralBlendshapeAnimation)) {
|
||||
|
||||
|
|
|
@ -421,7 +421,7 @@ HFMModel* FBXSerializer::extractHFMModel(const hifi::VariantHash& mapping, const
|
|||
|
||||
QMultiHash<hifi::ByteArray, WeightedIndex> blendshapeIndices;
|
||||
for (int i = 0;; i++) {
|
||||
hifi::ByteArray blendshapeName = FACESHIFT_BLENDSHAPES[i];
|
||||
hifi::ByteArray blendshapeName = BLENDSHAPE_NAMES[i];
|
||||
if (blendshapeName.isEmpty()) {
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -84,7 +84,7 @@ FST* FST::createFSTFromModel(const QString& fstPath, const QString& modelFilePat
|
|||
|
||||
|
||||
// If there are no blendshape mappings, and we detect that this is likely a mixamo file,
|
||||
// then we can add the default mixamo to "faceshift" mappings
|
||||
// then we can add the default mixamo to blendshape mappings.
|
||||
if (likelyMixamoFile) {
|
||||
QVariantHash blendshapes;
|
||||
blendshapes.insertMulti("BrowsD_L", QVariantList() << "BrowsDown_Left" << 1.0);
|
||||
|
|
|
@ -1550,7 +1550,7 @@ bool GLTFSerializer::buildGeometry(HFMModel& hfmModel, const hifi::VariantHash&
|
|||
QMultiHash<QString, WeightedIndex> blendshapeIndices;
|
||||
|
||||
for (int i = 0;; ++i) {
|
||||
hifi::ByteArray blendshapeName = FACESHIFT_BLENDSHAPES[i];
|
||||
hifi::ByteArray blendshapeName = BLENDSHAPE_NAMES[i];
|
||||
if (blendshapeName.isEmpty()) {
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
#include "BlendshapeConstants.h"
|
||||
|
||||
const char* FACESHIFT_BLENDSHAPES[] = {
|
||||
const char* BLENDSHAPE_NAMES[] = {
|
||||
"EyeBlink_L",
|
||||
"EyeBlink_R",
|
||||
"EyeSquint_L",
|
||||
|
@ -80,7 +80,7 @@ const char* FACESHIFT_BLENDSHAPES[] = {
|
|||
const QMap<QString, int> BLENDSHAPE_LOOKUP_MAP = [] {
|
||||
QMap<QString, int> toReturn;
|
||||
for (int i = 0; i < (int)Blendshapes::BlendshapeCount; i++) {
|
||||
toReturn[FACESHIFT_BLENDSHAPES[i]] = i;
|
||||
toReturn[BLENDSHAPE_NAMES[i]] = i;
|
||||
}
|
||||
return toReturn;
|
||||
}();
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
/// The names of the blendshapes expected by Faceshift, terminated with an empty string.
|
||||
extern const char* FACESHIFT_BLENDSHAPES[];
|
||||
/// The names of the supported blendshapes, terminated with an empty string.
|
||||
extern const char* BLENDSHAPE_NAMES[];
|
||||
extern const QMap<QString, int> BLENDSHAPE_LOOKUP_MAP;
|
||||
|
||||
enum class Blendshapes : int {
|
||||
|
@ -97,6 +97,8 @@ enum class LegacyBlendshpaes : int {
|
|||
LegacyBlendshapeCount
|
||||
};
|
||||
|
||||
// Original blendshapes were per Faceshift.
|
||||
|
||||
// NEW in ARKit
|
||||
// * MouthClose
|
||||
// * MouthUpperUp_L
|
||||
|
|
Loading…
Reference in a new issue