|
WoWs Model Exported
World of Warships 3D model Exporter
|
Functions | |
| void | wows_stitch_apply_textures (tinygltf::Model &model, const std::vector< std::string > &geom_order, wows_assets_bin_pdb_t *pdb, const std::string &game_dir, int lod_level, bool excl_damage, int max_tex, std::function< void(int)> progress_cb=nullptr, wows_file_provider_t file_provider=nullptr) |
Attach textures from assets.bin to the materials in a glTF model. | |
| void | wows_stitch_apply_default_material (tinygltf::Model &model) |
| Apply a uniform grey default material to all primitives in a model. | |
| void wows_stitch_apply_default_material | ( | tinygltf::Model & | model | ) |
Apply a uniform grey default material to all primitives in a model.
Used as a fallback when texture lookup fails or textures are disabled.
| model | glTF model to modify in-place. |
| void wows_stitch_apply_textures | ( | tinygltf::Model & | model, |
| const std::vector< std::string > & | geom_order, | ||
| wows_assets_bin_pdb_t * | pdb, | ||
| const std::string & | game_dir, | ||
| int | lod_level, | ||
| bool | excl_damage, | ||
| int | max_tex, | ||
| std::function< void(int)> | progress_cb = nullptr, |
||
| wows_file_provider_t | file_provider = nullptr |
||
| ) |
Attach textures from assets.bin to the materials in a glTF model.
Looks up each mesh section's MFM path via the PDB, locates the corresponding .dds file, decodes it, and embeds the result as a PNG in the model.
| model | glTF model whose materials will be updated. |
| geom_order | Ordered list of .geometry file paths that contributed meshes. |
| pdb | Open assets.bin handle for material lookups. |
| game_dir | Root resource directory used to resolve texture paths. |
| lod_level | LOD level to use when selecting render sets (-1 = auto). |
| excl_damage | If true, damage-geometry render sets are skipped. |
| max_tex | Maximum texture dimension; larger textures are downscaled. |