TODO: Copy nodes, figure out skin inverse bind matrices
This commit is contained in:
parent
73a7cbcda0
commit
d5ed571b64
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue