mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +02:00
Move Faceshift constants to their own file in shared
This commit is contained in:
parent
6d9deffdaa
commit
bbf6ae7b01
4 changed files with 94 additions and 66 deletions
|
@ -22,6 +22,7 @@
|
|||
#include <glm/gtx/quaternion.hpp>
|
||||
#include <glm/gtx/transform.hpp>
|
||||
|
||||
#include <FaceshiftConstants.h>
|
||||
#include <GeometryUtil.h>
|
||||
#include <GLMHelpers.h>
|
||||
#include <OctalCode.h>
|
||||
|
@ -610,60 +611,6 @@ QString getID(const QVariantList& properties, int index = 0) {
|
|||
return processID(properties.at(index).toString());
|
||||
}
|
||||
|
||||
const char* FACESHIFT_BLENDSHAPES[] = {
|
||||
"EyeBlink_L",
|
||||
"EyeBlink_R",
|
||||
"EyeSquint_L",
|
||||
"EyeSquint_R",
|
||||
"EyeDown_L",
|
||||
"EyeDown_R",
|
||||
"EyeIn_L",
|
||||
"EyeIn_R",
|
||||
"EyeOpen_L",
|
||||
"EyeOpen_R",
|
||||
"EyeOut_L",
|
||||
"EyeOut_R",
|
||||
"EyeUp_L",
|
||||
"EyeUp_R",
|
||||
"BrowsD_L",
|
||||
"BrowsD_R",
|
||||
"BrowsU_C",
|
||||
"BrowsU_L",
|
||||
"BrowsU_R",
|
||||
"JawFwd",
|
||||
"JawLeft",
|
||||
"JawOpen",
|
||||
"JawChew",
|
||||
"JawRight",
|
||||
"MouthLeft",
|
||||
"MouthRight",
|
||||
"MouthFrown_L",
|
||||
"MouthFrown_R",
|
||||
"MouthSmile_L",
|
||||
"MouthSmile_R",
|
||||
"MouthDimple_L",
|
||||
"MouthDimple_R",
|
||||
"LipsStretch_L",
|
||||
"LipsStretch_R",
|
||||
"LipsUpperClose",
|
||||
"LipsLowerClose",
|
||||
"LipsUpperUp",
|
||||
"LipsLowerDown",
|
||||
"LipsUpperOpen",
|
||||
"LipsLowerOpen",
|
||||
"LipsFunnel",
|
||||
"LipsPucker",
|
||||
"ChinLowerRaise",
|
||||
"ChinUpperRaise",
|
||||
"Sneer",
|
||||
"Puff",
|
||||
"CheekSquint_L",
|
||||
"CheekSquint_R",
|
||||
""
|
||||
};
|
||||
|
||||
const int NUM_FACESHIFT_BLENDSHAPES = sizeof(FACESHIFT_BLENDSHAPES) / sizeof(char*);
|
||||
|
||||
const char* HUMANIK_JOINTS[] = {
|
||||
"RightHand",
|
||||
"RightForeArm",
|
||||
|
@ -1716,13 +1663,13 @@ FBXGeometry extractFBXGeometry(const FBXNode& node, const QVariantHash& mapping,
|
|||
#endif
|
||||
}
|
||||
material.id = getID(object.properties);
|
||||
|
||||
material._material = model::MaterialPointer(new model::Material());
|
||||
material._material->setEmissive(material.emissive);
|
||||
material._material->setDiffuse(material.diffuse);
|
||||
material._material->setSpecular(material.specular);
|
||||
material._material->setShininess(material.shininess);
|
||||
material._material->setOpacity(material.opacity);
|
||||
|
||||
material._material = model::MaterialPointer(new model::Material());
|
||||
material._material->setEmissive(material.emissive);
|
||||
material._material->setDiffuse(material.diffuse);
|
||||
material._material->setSpecular(material.specular);
|
||||
material._material->setShininess(material.shininess);
|
||||
material._material->setOpacity(material.opacity);
|
||||
|
||||
materials.insert(material.id, material);
|
||||
|
||||
|
|
|
@ -32,11 +32,6 @@ class FBXNode;
|
|||
|
||||
typedef QList<FBXNode> FBXNodeList;
|
||||
|
||||
/// The names of the blendshapes expected by Faceshift, terminated with an empty string.
|
||||
extern const char* FACESHIFT_BLENDSHAPES[];
|
||||
/// The size of FACESHIFT_BLENDSHAPES
|
||||
extern const int NUM_FACESHIFT_BLENDSHAPES;
|
||||
|
||||
/// The names of the joints in the Maya HumanIK rig, terminated with an empty string.
|
||||
extern const char* HUMANIK_JOINTS[];
|
||||
|
||||
|
|
66
libraries/shared/src/FaceshiftConstants.cpp
Normal file
66
libraries/shared/src/FaceshiftConstants.cpp
Normal file
|
@ -0,0 +1,66 @@
|
|||
//
|
||||
// FaceshiftConstants.cpp
|
||||
//
|
||||
//
|
||||
// Created by Clement on 1/23/15.
|
||||
// Copyright 2015 High Fidelity, Inc.
|
||||
//
|
||||
// Distributed under the Apache License, Version 2.0.
|
||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
//
|
||||
|
||||
#include "FaceshiftConstants.h"
|
||||
|
||||
const char* FACESHIFT_BLENDSHAPES[] = {
|
||||
"EyeBlink_L",
|
||||
"EyeBlink_R",
|
||||
"EyeSquint_L",
|
||||
"EyeSquint_R",
|
||||
"EyeDown_L",
|
||||
"EyeDown_R",
|
||||
"EyeIn_L",
|
||||
"EyeIn_R",
|
||||
"EyeOpen_L",
|
||||
"EyeOpen_R",
|
||||
"EyeOut_L",
|
||||
"EyeOut_R",
|
||||
"EyeUp_L",
|
||||
"EyeUp_R",
|
||||
"BrowsD_L",
|
||||
"BrowsD_R",
|
||||
"BrowsU_C",
|
||||
"BrowsU_L",
|
||||
"BrowsU_R",
|
||||
"JawFwd",
|
||||
"JawLeft",
|
||||
"JawOpen",
|
||||
"JawChew",
|
||||
"JawRight",
|
||||
"MouthLeft",
|
||||
"MouthRight",
|
||||
"MouthFrown_L",
|
||||
"MouthFrown_R",
|
||||
"MouthSmile_L",
|
||||
"MouthSmile_R",
|
||||
"MouthDimple_L",
|
||||
"MouthDimple_R",
|
||||
"LipsStretch_L",
|
||||
"LipsStretch_R",
|
||||
"LipsUpperClose",
|
||||
"LipsLowerClose",
|
||||
"LipsUpperUp",
|
||||
"LipsLowerDown",
|
||||
"LipsUpperOpen",
|
||||
"LipsLowerOpen",
|
||||
"LipsFunnel",
|
||||
"LipsPucker",
|
||||
"ChinLowerRaise",
|
||||
"ChinUpperRaise",
|
||||
"Sneer",
|
||||
"Puff",
|
||||
"CheekSquint_L",
|
||||
"CheekSquint_R",
|
||||
""
|
||||
};
|
||||
|
||||
const int NUM_FACESHIFT_BLENDSHAPES = sizeof(FACESHIFT_BLENDSHAPES) / sizeof(char*);
|
20
libraries/shared/src/FaceshiftConstants.h
Normal file
20
libraries/shared/src/FaceshiftConstants.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
//
|
||||
// FaceshiftConstants.h
|
||||
//
|
||||
//
|
||||
// Created by Clement on 1/23/15.
|
||||
// Copyright 2015 High Fidelity, Inc.
|
||||
//
|
||||
// Distributed under the Apache License, Version 2.0.
|
||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
//
|
||||
|
||||
#ifndef hifi_FaceshiftConstants_h
|
||||
#define hifi_FaceshiftConstants_h
|
||||
|
||||
/// The names of the blendshapes expected by Faceshift, terminated with an empty string.
|
||||
extern const char* FACESHIFT_BLENDSHAPES[];
|
||||
/// The size of FACESHIFT_BLENDSHAPES
|
||||
extern const int NUM_FACESHIFT_BLENDSHAPES;
|
||||
|
||||
#endif // hifi_FaceshiftConstants_h
|
Loading…
Reference in a new issue