Skeleton/Joints WIP
This commit is contained in:
+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>
|
||||
@@ -183,6 +183,11 @@ void Menu::GetMaterialData()
|
||||
MGlobal::displayInfo(MString() + AllMaterials->at(0).Color[0]);
|
||||
}
|
||||
|
||||
void Menu::GetSkeletonData()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Menu::~Menu()
|
||||
{
|
||||
//delete exportSelectedButton;
|
||||
|
||||
@@ -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__
|
||||
Reference in New Issue
Block a user