mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 12:57:59 +02:00
Added more comments to AvatarDataPacket section.
This commit is contained in:
parent
c73943ee19
commit
5fe01acaa8
1 changed files with 13 additions and 0 deletions
|
@ -61,12 +61,14 @@ namespace AvatarDataPacket {
|
||||||
} PACKED_END;
|
} PACKED_END;
|
||||||
const size_t HEADER_SIZE = 49;
|
const size_t HEADER_SIZE = 49;
|
||||||
|
|
||||||
|
// only present if HAS_REFERENTIAL flag is set in header.flags
|
||||||
PACKED_BEGIN struct ParentInfo {
|
PACKED_BEGIN struct ParentInfo {
|
||||||
uint8_t parentUUID[16]; // rfc 4122 encoded
|
uint8_t parentUUID[16]; // rfc 4122 encoded
|
||||||
uint16_t parentJointIndex;
|
uint16_t parentJointIndex;
|
||||||
} PACKED_END;
|
} PACKED_END;
|
||||||
const size_t PARENT_INFO_SIZE = 18;
|
const size_t PARENT_INFO_SIZE = 18;
|
||||||
|
|
||||||
|
// only present if IS_FACESHIFT_CONNECTED flag is set in header.flags
|
||||||
PACKED_BEGIN struct FaceTrackerInfo {
|
PACKED_BEGIN struct FaceTrackerInfo {
|
||||||
float leftEyeBlink;
|
float leftEyeBlink;
|
||||||
float rightEyeBlink;
|
float rightEyeBlink;
|
||||||
|
@ -76,6 +78,17 @@ namespace AvatarDataPacket {
|
||||||
// float blendshapeCoefficients[numBlendshapeCoefficients];
|
// float blendshapeCoefficients[numBlendshapeCoefficients];
|
||||||
} PACKED_END;
|
} PACKED_END;
|
||||||
const size_t FACE_TRACKER_INFO_SIZE = 17;
|
const size_t FACE_TRACKER_INFO_SIZE = 17;
|
||||||
|
|
||||||
|
// variable length structure follows
|
||||||
|
/*
|
||||||
|
struct JointData {
|
||||||
|
uint8_t numJoints;
|
||||||
|
uint8_t rotationValidityBits[ceil(numJoints / 8)]; // one bit per joint, if true then a compressed rotation follows.
|
||||||
|
SixByteQuat rotation[numValidRotations]; // encodeded and compressed by packOrientationQuatToSixBytes()
|
||||||
|
uint8_t translationValidityBits[ceil(numJoints / 8)]; // one bit per joint, if true then a compressed translation follows.
|
||||||
|
SixByteTrans translation[numValidTranslations]; // encodeded and compressed by packFloatVec3ToSignedTwoByteFixed()
|
||||||
|
};
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
#define ASSERT(COND) do { if (!(COND)) { int* bad = nullptr; *bad = 0xbad; } } while(0)
|
#define ASSERT(COND) do { if (!(COND)) { int* bad = nullptr; *bad = 0xbad; } } while(0)
|
||||||
|
|
Loading…
Reference in a new issue