TODO: Copy nodes, figure out skin inverse bind matrices

This commit is contained in:
Xiao Qi 2023-02-27 03:49:12 +08:00
parent 73a7cbcda0
commit d5ed571b64
2 changed files with 9 additions and 3 deletions

View File

@ -47,7 +47,8 @@ namespace SH_COMP
static inline void LoadFromFile(AssetPath path, ModelRef asset) noexcept; static inline void LoadFromFile(AssetPath path, ModelRef asset) noexcept;
static inline void ProcessModel(ModelData const& model, ModelRef asset) noexcept; static inline void ProcessModel(ModelData const& model, ModelRef asset) noexcept;
static inline void ProcessAnimations(ModelData const& model, ModelRef asset) noexcept; static inline void ProcessAnimationChannels(ModelData const& model, ModelRef asset) noexcept;
static inline void ProcessNodes(ModelData const& model, ModelRef asset) noexcept;
static inline void BuildHeaders(ModelRef asset) noexcept; static inline void BuildHeaders(ModelRef asset) noexcept;

View File

@ -57,7 +57,7 @@ namespace SH_COMP
} }
ProcessModel(model, asset); ProcessModel(model, asset);
ProcessAnimations(model, asset); ProcessAnimationChannels(model, asset);
} }
inline void MeshCompiler::ProcessModel(ModelData const& data, ModelRef asset) noexcept inline void MeshCompiler::ProcessModel(ModelData const& data, ModelRef asset) noexcept
@ -214,7 +214,7 @@ namespace SH_COMP
delete asset; delete asset;
} }
inline void MeshCompiler::ProcessAnimations(ModelData const& model, ModelRef asset) noexcept inline void MeshCompiler::ProcessAnimationChannels(ModelData const& model, ModelRef asset) noexcept
{ {
asset.anims.resize(model.animations.size()); asset.anims.resize(model.animations.size());
for (auto i {0}; i < model.animations.size(); ++i) for (auto i {0}; i < model.animations.size(); ++i)
@ -249,4 +249,9 @@ namespace SH_COMP
std::cout << "all anim channels copied\n"; std::cout << "all anim channels copied\n";
} }
} }
inline void MeshCompiler::ProcessNodes(ModelData const& model, ModelRef asset) noexcept
{
}
} }