Local Compute Avatar SDK
3.0.1
To generate Full Body avatars
|
Go to the source code of this file.
Typedefs | |
typedef void(* | avatar_sdk_full_body::ReportProgress) (float) |
Functions | |
DllExport int | avatar_sdk_full_body::initAvatarSdk (const char *programName, const char *resourcesPath) |
DllExport int | avatar_sdk_full_body::releaseAvatarSdk () |
DllExport int | avatar_sdk_full_body::generateAvatar (AvatarSdkParams &avatarParams, ReportProgress reportProgress) |
DllExport int | avatar_sdk_full_body::exportAvatar (char *outputDirPath, char *intermediateDirPath, AvatarSdkExportParams &exportParams) |
DllExport const char * | avatar_sdk_full_body::getAvailableHaircuts (unsigned int &size) |
DllExport const char * | avatar_sdk_full_body::getAvailableOutfits (unsigned int &size) |
DllExport const char * | avatar_sdk_full_body::getAvailableBlendshapes (unsigned int &size) |
DllExport AvatarSdkModelInfoEntry | avatar_sdk_full_body::getAvatarModelInfo () |
DllExport int | avatar_sdk_full_body::getAvatarBonesCount () |
DllExport AvatarSdkBone | avatar_sdk_full_body::getAvatarBone (int boneIdx) |
DllExport int | avatar_sdk_full_body::getHaircutsMeshesCount () |
DllExport int | avatar_sdk_full_body::getOutfitsMeshesCount () |
DllExport AvatarSdkMesh | avatar_sdk_full_body::getAvatarMesh () |
DllExport AvatarSdkMesh | avatar_sdk_full_body::getHaircutMesh (const char *haircutName) |
DllExport AvatarSdkMesh | avatar_sdk_full_body::getHaircutMeshByIdx (int haircutIdx) |
DllExport AvatarSdkMesh | avatar_sdk_full_body::getOutfitMesh (const char *outfitName) |
DllExport AvatarSdkMesh | avatar_sdk_full_body::getOutfitMeshByIdx (int outfitIdx) |
DllExport void | avatar_sdk_full_body::clearLatestAvatarData () |
DllExport void | avatar_sdk_full_body::getLastError (char *buffer, int bufferSize) |
DllExport void | avatar_sdk_full_body::setLoggingFile (const char *logFile) |
DllExport void | avatar_sdk_full_body::setAdvancedLogs (bool isAdvanced) |
DllExport bool | avatar_sdk_full_body::isHardwareSupported () |
DllExport void | avatar_sdk_full_body::enableNetworkTracing (bool detailedDump, char *logFile) |
DllExport void | avatar_sdk_full_body::setApiUrl (const char *apiUrl) |
This file contains public methods of the itSeez3D Offline Avatar SDK.
Definition in file avatar_sdk.hpp.
typedef void(* avatar_sdk_full_body::ReportProgress) (float) |
The handler of the calculation progress.
[in] | float | The calculation progress in percents. |
Definition at line 24 of file avatar_sdk.hpp.
DllExport void avatar_sdk_full_body::clearLatestAvatarData | ( | ) |
Release memory that is used to store latest avatar's data.
DllExport void avatar_sdk_full_body::enableNetworkTracing | ( | bool | detailedDump, |
char * | logFile | ||
) |
Enables tracking of network packets. By default tracing is performed into the stderr.
[in] | detailedDump | To show packets content, not only headers. |
[in] | logFile | Path to the log file. |
DllExport int avatar_sdk_full_body::exportAvatar | ( | char * | outputDirPath, |
char * | intermediateDirPath, | ||
AvatarSdkExportParams & | exportParams | ||
) |
This method allows to make additional exports of an avatar. The avatar can be exported in a different format or with other assets such as haircuts, outfits and blendshapes.
[in] | outputDirPath | Output directory where the exported avatar will be saved. |
[in] | intermediateDirPath | Path to the intermediate data of the avatar. This data is generated in the "generateAvatar" method. |
[in] | exportParams | Export parameters. |
DllExport int avatar_sdk_full_body::generateAvatar | ( | AvatarSdkParams & | avatarParams, |
ReportProgress | reportProgress | ||
) |
Generates an avatar with the given params. Only one avatar can be genearted at a time.
[in] | avatarParams | Generation parameters. |
[in] | reportProgress | Callback that is invoked when the calculation progress is changed. |
DllExport const char* avatar_sdk_full_body::getAvailableBlendshapes | ( | unsigned int & | size | ) |
Get blendshapes sets names that can be generated for an avatar.
[out] | size | Number of symbols in the list |
DllExport const char* avatar_sdk_full_body::getAvailableHaircuts | ( | unsigned int & | size | ) |
Get haircuts names that can be generated for an avatar.
[out] | size | Number of symbols in the list |
DllExport const char* avatar_sdk_full_body::getAvailableOutfits | ( | unsigned int & | size | ) |
Get outfits names that can be generated for an avatar.
[out] | size | Number of symbols in the list |
DllExport AvatarSdkBone avatar_sdk_full_body::getAvatarBone | ( | int | boneIdx | ) |
Get bone data for the latest generated avatar.
[in] | boneIdx | Bone index |
DllExport int avatar_sdk_full_body::getAvatarBonesCount | ( | ) |
Get bones count in the avatar's skeleton for the latest generated avatar.
DllExport AvatarSdkMesh avatar_sdk_full_body::getAvatarMesh | ( | ) |
Get mesh data for the latest generated avatar.
DllExport AvatarSdkModelInfoEntry avatar_sdk_full_body::getAvatarModelInfo | ( | ) |
Get model info for the latest generated avatar.
DllExport AvatarSdkMesh avatar_sdk_full_body::getHaircutMesh | ( | const char * | haircutName | ) |
Get haircut mesh data for the latest generated avatar.
[in] | haircutName | Name of the haircut. |
DllExport AvatarSdkMesh avatar_sdk_full_body::getHaircutMeshByIdx | ( | int | haircutIdx | ) |
Get haircut mesh data for the latest generated avatar.
[in] | haircutIdx | Index of the haircut mesh. |
DllExport int avatar_sdk_full_body::getHaircutsMeshesCount | ( | ) |
Get a count of haircuts meshes for the latest avatar.
DllExport void avatar_sdk_full_body::getLastError | ( | char * | buffer, |
int | bufferSize | ||
) |
Returns the description of the latest error.
[out] | buffer | Pointer to the buffer where the message will be written. |
[in] | bufferSize | Size of the buffer. |
DllExport AvatarSdkMesh avatar_sdk_full_body::getOutfitMesh | ( | const char * | outfitName | ) |
Get outfit mesh data for the latest generated avatar.
[in] | outfitName | Name of the outfit. |
DllExport AvatarSdkMesh avatar_sdk_full_body::getOutfitMeshByIdx | ( | int | outfitIdx | ) |
Get outfit mesh data for the latest generated avatar.
[in] | outfitIdx | Index of the outfit. |
DllExport int avatar_sdk_full_body::getOutfitsMeshesCount | ( | ) |
Get a count of outfits meshes for the latest avatar.
DllExport int avatar_sdk_full_body::initAvatarSdk | ( | const char * | programName, |
const char * | resourcesPath | ||
) |
Initializes the Avatar SDK. Should be called once before any other methods.
[in] | programName | Name of your application. |
[in] | resourcesPath | Path to the resources. |
DllExport bool avatar_sdk_full_body::isHardwareSupported | ( | ) |
Check if the avatar can be generated with this hardware configuration. Windows requirements: CPU must support AVX extensions set.
DllExport int avatar_sdk_full_body::releaseAvatarSdk | ( | ) |
Deinitializes the Avatar SDK and releases available resources. Should be called before the app terminates.
DllExport void avatar_sdk_full_body::setAdvancedLogs | ( | bool | isAdvanced | ) |
Configures if the advanced (more detailed) logs are written.
[in] | isAdvanced | True for advanced logging. |
DllExport void avatar_sdk_full_body::setApiUrl | ( | const char * | apiUrl | ) |
Set API URL address. Possible examples: https://api.avatarsdk.com or https://avatar-api.itseez3d.com
[in] | apiUrl | API URL address. |
DllExport void avatar_sdk_full_body::setLoggingFile | ( | const char * | logFile | ) |
Set the logs file. By default logs are not written to file.
[in] | logFile | Path to the log file. |