Skeleton/Joints WIP
This commit is contained in:
+1
-1
Submodule assets updated: 4bd902b697...56305dcca6
@@ -174,6 +174,7 @@
|
|||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Main.cpp" />
|
<ClCompile Include="Main.cpp" />
|
||||||
<ClCompile Include="Mesh.cpp" />
|
<ClCompile Include="Mesh.cpp" />
|
||||||
|
<ClCompile Include="Skeleton.cpp" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<CustomBuild Include="MayaExporter.ui">
|
<CustomBuild Include="MayaExporter.ui">
|
||||||
@@ -197,6 +198,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="Mesh.h" />
|
<ClInclude Include="Mesh.h" />
|
||||||
|
<ClInclude Include="Skeleton.h" />
|
||||||
<CustomBuild Include="Menu.h">
|
<CustomBuild Include="Menu.h">
|
||||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Moc%27ing Menu.h...</Message>
|
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Moc%27ing Menu.h...</Message>
|
||||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
|
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\GeneratedFiles\$(ConfigurationName)\moc_%(Filename).cpp</Outputs>
|
||||||
|
|||||||
@@ -56,6 +56,9 @@
|
|||||||
<ClCompile Include="Mesh.cpp">
|
<ClCompile Include="Mesh.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="Skeleton.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<CustomBuild Include="leeeeel.qrc">
|
<CustomBuild Include="leeeeel.qrc">
|
||||||
@@ -81,5 +84,8 @@
|
|||||||
<ClInclude Include="Mesh.h">
|
<ClInclude Include="Mesh.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="Skeleton.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -183,6 +183,11 @@ void Menu::GetMaterialData()
|
|||||||
MGlobal::displayInfo(MString() + AllMaterials->at(0).Color[0]);
|
MGlobal::displayInfo(MString() + AllMaterials->at(0).Color[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Menu::GetSkeletonData()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
Menu::~Menu()
|
Menu::~Menu()
|
||||||
{
|
{
|
||||||
//delete exportSelectedButton;
|
//delete exportSelectedButton;
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ public:
|
|||||||
~Menu();
|
~Menu();
|
||||||
|
|
||||||
void GetMaterialData();
|
void GetMaterialData();
|
||||||
|
void GetSkeletonData();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void ExportSelected(bool checked);
|
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