RavEngine
Loading...
Searching...
No Matches
fbx2ozz.h
1//----------------------------------------------------------------------------//
2// //
3// ozz-animation is hosted at http://github.com/guillaumeblanc/ozz-animation //
4// and distributed under the MIT License (MIT). //
5// //
6// Copyright (c) Guillaume Blanc //
7// //
8// Permission is hereby granted, free of charge, to any person obtaining a //
9// copy of this software and associated documentation files (the "Software"), //
10// to deal in the Software without restriction, including without limitation //
11// the rights to use, copy, modify, merge, publish, distribute, sublicense, //
12// and/or sell copies of the Software, and to permit persons to whom the //
13// Software is furnished to do so, subject to the following conditions: //
14// //
15// The above copyright notice and this permission notice shall be included in //
16// all copies or substantial portions of the Software. //
17// //
18// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR //
19// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, //
20// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL //
21// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER //
22// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING //
23// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER //
24// DEALINGS IN THE SOFTWARE. //
25// //
26//----------------------------------------------------------------------------//
27
28#ifndef OZZ_ANIMATION_OFFLINE_FBX_FBX2OZZ_H_
29#define OZZ_ANIMATION_OFFLINE_FBX_FBX2OZZ_H_
30
31#include "ozz/animation/offline/tools/import2ozz.h"
32
33#include "ozz/animation/offline/fbx/fbx.h"
34
35// fbx2ozz is a command line tool that converts an animation imported from a
36// fbx document to ozz runtime format.
37//
38// fbx2ozz extracts animated joints from a fbx document. Only the animated
39// joints whose names match those of the ozz runtime skeleton given as argument
40// are selected. Keyframes are then optimized, based on command line settings,
41// and serialized as a runtime animation to an ozz binary archive.
42//
43// Use fbx2ozz integrated help command (fbx2ozz --help) for more details
44// about available arguments.
45
47 public:
50
51 private:
52 virtual bool Load(const char* _filename);
53
54 // Skeleton management
55 virtual bool Import(ozz::animation::offline::RawSkeleton* _skeleton,
56 const NodeType& _types);
57
58 // Animation management
59 virtual AnimationNames GetAnimationNames();
60
61 virtual bool Import(const char* _animation_name,
62 const ozz::animation::Skeleton& _skeleton,
63 float _sampling_rate,
65
66 // Track management
67 virtual NodeProperties GetNodeProperties(const char* _node_name);
68
69 virtual bool Import(const char* _animation_name, const char* _node_name,
70 const char* _track_name,
71 NodeProperty::Type _expected_type, float _sampling_rate,
73
74 virtual bool Import(const char* _animation_name, const char* _node_name,
75 const char* _track_name,
76 NodeProperty::Type _expected_type, float _sampling_rate,
78
79 virtual bool Import(const char* _animation_name, const char* _node_name,
80 const char* _track_name,
81 NodeProperty::Type _expected_type, float _sampling_rate,
83
84 virtual bool Import(const char* _animation_name, const char* _node_name,
85 const char* _track_name,
86 NodeProperty::Type _expected_type, float _sampling_rate,
88
89 // Fbx internal helpers
93};
94#endif // OZZ_ANIMATION_OFFLINE_FBX_FBX2OZZ_H_
Definition fbx2ozz.h:46
Definition skeleton.h:61
Definition import2ozz.h:58
Definition raw_animation.h:59
Definition raw_track.h:113
Definition raw_track.h:115
Definition raw_track.h:117
Definition raw_track.h:111
Definition raw_skeleton.h:51