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
34
class
WoWModel
;
35
struct
ModelAnimation
;
36
38
class
FBXAnimExporter
39
{
40
public
:
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
47
private
:
48
FbxString
l_fileVersion
;
49
std::string
srcfileName
;
50
std::string
animationName
;
51
WoWModel
*
l_model
;
52
std::vector<FbxCluster*>
l_boneClusters
;
53
FbxNode*
l_meshNode
;
54
int
animID
;
55
bool
useAltNaming
=
false
;
56
mutable
std::mutex
m_mutex
;
57
};
FBXAnimExporter
Exports individual animation sequences from a WoW model into separate FBX files.
Definition
FBXAnimExporter.h:39
FBXAnimExporter::animID
int animID
Definition
FBXAnimExporter.h:54
FBXAnimExporter::useAltNaming
bool useAltNaming
Definition
FBXAnimExporter.h:55
FBXAnimExporter::l_fileVersion
FbxString l_fileVersion
Definition
FBXAnimExporter.h:48
FBXAnimExporter::run
void run()
Execute the animation export.
Definition
FBXAnimExporter.cpp:40
FBXAnimExporter::setValues
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.
Definition
FBXAnimExporter.cpp:158
FBXAnimExporter::m_mutex
std::mutex m_mutex
Definition
FBXAnimExporter.h:56
FBXAnimExporter::l_meshNode
FbxNode * l_meshNode
Definition
FBXAnimExporter.h:53
FBXAnimExporter::animationName
std::string animationName
Definition
FBXAnimExporter.h:50
FBXAnimExporter::l_boneClusters
std::vector< FbxCluster * > l_boneClusters
Definition
FBXAnimExporter.h:52
FBXAnimExporter::srcfileName
std::string srcfileName
Definition
FBXAnimExporter.h:49
FBXAnimExporter::l_model
WoWModel * l_model
Definition
FBXAnimExporter.h:51
WoWModel
Core WoW .m2 model: geometry, animation, textures, and character data.
Definition
WoWModel.h:50
ModelAnimation
An animation sequence entry in the M2 model (block B).
Definition
modelheaders.h:142
Source
WoW
Exporters
FBX
FBXAnimExporter.h
Generated by
1.9.8