#include "stdafx.h" #include "NITools/NiSMemory.h" #include "Rotation.h" #include "MessageBoxDLG.h" //#include "ParameterSet.h" #include "anm_data.h" /* 使用するパラメータ appParam.animationUUID CSetAnimation */ CNiSMemory::CNiSMemory(void) { indexHandle = NULL; ptrAnimIndex = NULL; for (int i=0; i* posVect, Quaternion* rotQuat, NiSDK_Lib lib, int joints_num) { /* // mPelvis(0) double* shm = ptrMapData[0]; if (shm!=NULL) { if (posVect[0].c>=0.0) { shm[1] = posVect[0].x; shm[2] = posVect[0].y; shm[3] = posVect[0].z; } if (rotQuat[0].c>=0.0) { shm[4] = rotQuat[0].x; shm[5] = rotQuat[0].y; shm[6] = rotQuat[0].z; shm[7] = rotQuat[0].s; } } for (int i=1; i=0) { shm = ptrMapData[n]; if (shm!=NULL) { if (rotQuat[i].c>=0.0) { shm[4] = rotQuat[i].x; shm[5] = rotQuat[i].y; shm[6] = rotQuat[i].z; shm[7] = rotQuat[i].s; } } } } */ // mPelvis(0) double* shm = ptrMapData[0]; if (shm!=NULL) { if (posVect[0].c>=0.0) { shm[1] = posVect[0].x; shm[2] = posVect[0].y; shm[3] = posVect[0].z; } //if (rotQuat[0].c>=0.0) { // shm[4] = rotQuat[0].x; // shm[5] = rotQuat[0].y; // shm[6] = rotQuat[0].z; // shm[7] = rotQuat[0].s; //} } // if (appParam.outSMemoryCord) { for (int i=1; i=0) { shm = ptrMapData[n]; if (shm!=NULL) { if (posVect[i].c>=0.0) { shm[1] = posVect[i].x; shm[2] = posVect[i].y; shm[3] = posVect[i].z; } } } } } // if (appParam.outSMemoryQuat) { for (int i=0; i=0) { shm = ptrMapData[n]; if (shm!=NULL) { if (rotQuat[i].c>=0.0) { shm[4] = rotQuat[i].x; shm[5] = rotQuat[i].y; shm[6] = rotQuat[i].z; shm[7] = rotQuat[i].s; } } } } } } void CNiSMemory::clearLocalAnimationData(void) { for (int i=0; i=0 && n=0 && n