Skeleton/Joints WIP

This commit is contained in:
antc13
2015-12-14 12:59:54 +01:00
parent a22d086e60
commit 60b3ce89b2
7 changed files with 53 additions and 1 deletions
+1 -1
Submodule assets updated: 4bd902b697...56305dcca6
@@ -174,6 +174,7 @@
</ClCompile>
<ClCompile Include="Main.cpp" />
<ClCompile Include="Mesh.cpp" />
<ClCompile Include="Skeleton.cpp" />
</ItemGroup>
<ItemGroup>
<CustomBuild Include="MayaExporter.ui">
@@ -197,6 +198,7 @@
</ItemGroup>
<ItemGroup>
<ClInclude Include="Mesh.h" />
<ClInclude Include="Skeleton.h" />
<CustomBuild Include="Menu.h">
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Moc%27ing Menu.h...</Message>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
@@ -56,6 +56,9 @@
<ClCompile Include="Mesh.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="Skeleton.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<CustomBuild Include="leeeeel.qrc">
@@ -81,5 +84,8 @@
<ClInclude Include="Mesh.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="Skeleton.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
</Project>
+5
View File
@@ -183,6 +183,11 @@ void Menu::GetMaterialData()
MGlobal::displayInfo(MString() + AllMaterials->at(0).Color[0]);
}
void Menu::GetSkeletonData()
{
}
Menu::~Menu()
{
//delete exportSelectedButton;
+1
View File
@@ -42,6 +42,7 @@ public:
~Menu();
void GetMaterialData();
void GetSkeletonData();
private slots:
void ExportSelected(bool checked);
@@ -0,0 +1,11 @@
#include "Skeleton.h"
//std::vector<SkeletonNode>* Skeleton::DoIt()
//{
// MItDependencyNodes jointIt(MFn::kJoint);
//
// for (; !jointIt.isDone(); jointIt.next())
// {
// //MFnDependencyNode
// }
//}
@@ -0,0 +1,27 @@
#ifndef Skeleton_Skeleton_h__
#define Skeleton_Skeleton_h__
#include <vector>
#include <array>
#include "MayaIncludes.h"
struct Joint {
int ParentIndex;
std::array<float, 3> Rotation;
std::array<float, 3> Translation;
std::array<float, 3> Scale;
};
struct SkeletonNode {
std::string Name;
std::vector<Joint> joints;
};
class Skeleton {
public:
//std::vector<SkeletonNode>* DoIt();
private:
//std::vector<SkeletonNode> m_AllSkeletons;
};
#endif //Skeleton_Skeleton_h__