WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
FBXAnimExporter.h
Go to the documentation of this file.
1/*----------------------------------------------------------------------*\
2| This file is part of WoW Model Viewer |
3| |
4| WoW Model Viewer is free software: you can redistribute it and/or |
5| modify it under the terms of the GNU General Public License as |
6| published by the Free Software Foundation, either version 3 of the |
7| License, or (at your option) any later version. |
8| |
9| WoW Model Viewer is distributed in the hope that it will be useful, |
10| but WITHOUT ANY WARRANTY; without even the implied warranty of |
11| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12| GNU General Public License for more details. |
13| |
14| You should have received a copy of the GNU General Public License |
15| along with WoW Model Viewer. |
16| If not, see <http://www.gnu.org/licenses/>. |
17\*----------------------------------------------------------------------*/
18
19/*
20 * FBXAnimExporter.h
21 *
22 * Created on: 14 may 2019
23 * Copyright: 2019 , WoW Model Viewer (http://wowmodelviewer.net)
24 */
25
26#pragma once
27
28#include <mutex>
29#include <string>
30#include <vector>
31
32#include "fbxsdk.h"
33
34class WoWModel;
35struct ModelAnimation;
36
39{
40public:
42 void run();
44 void setValues(FbxString fileVersion, std::string fn, std::string an, WoWModel* m, std::vector<FbxCluster*> bc,
45 FbxNode* & meshnode, int aID, bool uan = false);
46
47private:
48 FbxString l_fileVersion;
49 std::string srcfileName;
50 std::string animationName;
52 std::vector<FbxCluster*> l_boneClusters;
53 FbxNode* l_meshNode;
54 int animID;
55 bool useAltNaming = false;
56 mutable std::mutex m_mutex;
57};
Exports individual animation sequences from a WoW model into separate FBX files.
FbxString l_fileVersion
void run()
Execute the animation export.
void setValues(FbxString fileVersion, std::string fn, std::string an, WoWModel *m, std::vector< FbxCluster * > bc, FbxNode *&meshnode, int aID, bool uan=false)
Configure the exporter with source model, animation, and output settings.
std::string animationName
std::vector< FbxCluster * > l_boneClusters
std::string srcfileName
Core WoW .m2 model: geometry, animation, textures, and character data.
Definition WoWModel.h:50
An animation sequence entry in the M2 model (block B).