Importing Skeletal Meshes¶
Import and cache animated meshes.
-
namespace
BsZenLib
Functions
-
Res::HModelScriptFile
ImportAndCacheMDS
(const bs::String &mdsFile, const VDFS::FileIndex &vdfs)¶ Imports a model script file.
A ModelScriptFile can come in two different variations: ASCII and Binary. While Gothic I uses only ASCII files, most if not all of those got coverted into a binary format for Gothic II.
Both variants contain the same information:
- Which node hierarchy (bones) file to use
- A list of supported meshes
- Definitions for each animation to be played
- Return
- Everything loaded from the given ModelScript-File.
- Parameters
file
: .MDS-file to import. This function will try to find a matching .MDS-file and load that instead if it exists.vdfs
: VDFS to load from.
-
bool
HasCachedMDS
(const bs::String &mdsFile)¶ Whether the given .MDS-file has been cached.
- Return
- Whether the .MDS-file has been cached.
- Parameters
mdsfile
: .MDS-file to look after. Always supply the .MDS-file, even when a matching .MSB-file exists!
-
Res::HModelScriptFile
LoadCachedMDS
(const bs::String &mdsFile)¶ Loads a .MDS-file from cache.
- Return
- The cached .MDS-file.
- Parameters
mdsfile
: .MDS-file to look after. Always supply the .MDS-file, even when a matching .MSB-file exists!
-
Res::HModelScriptFile