diff --git a/MshViewer/Source/Object.cpp b/MshViewer/Source/Object.cpp index 6208b27..5d77adf 100644 --- a/MshViewer/Source/Object.cpp +++ b/MshViewer/Source/Object.cpp @@ -530,7 +530,7 @@ void Object::analyseClthChunks(Modl * dataDestination, std::list& std::vector tempPoly; // for every triangle.. - for (unsigned int i = 0; i < tempSize; i += 3) + for (unsigned int i = 0; i < tempSize * 3; i += 3) { tempPoly.clear(); diff --git a/MshViewer/main.cpp b/MshViewer/main.cpp index 5cb889d..ec83c8d 100644 --- a/MshViewer/main.cpp +++ b/MshViewer/main.cpp @@ -18,7 +18,7 @@ int main(int argc, char** argv) scene = OpenGLController::getInstance(); #ifdef _DEBUG - scene->loadMsh("..\\Release\\Msh\\quadPoly.msh"); + scene->loadMsh("..\\Release\\Msh\\triClothMan.msh"); #endif // DEBUG do { diff --git a/README.md b/README.md index 8163e70..f3c76d0 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ Feel free to use my code the way you like. But remember i used some public libra licence, too. ### To Do +- rotation problem - cloth not working correctly - optional display bones, shadow, collision,... - integrate into a software: diff --git a/Release/Msh/triClothMan.msh b/Release/Msh/triClothMan.msh new file mode 100644 index 0000000..16ea767 Binary files /dev/null and b/Release/Msh/triClothMan.msh differ