bspinfo: log the .obj/.png creation (lightmap preview)

This commit is contained in:
Eric Wasylishen 2022-10-29 22:37:26 -06:00
parent 22b9329489
commit a70ef5ea7b
1 changed files with 4 additions and 0 deletions

View File

@ -381,6 +381,8 @@ static void export_obj_and_lightmaps(const mbsp_t &bsp, const bspxentries_t &bsp
strm.write((const char *) data, size);
}, &strm, full_atlas.width, full_atlas.height, 4, full_atlas.pixels.data(), full_atlas.width * 4);
memset(full_atlas.pixels.data(), 0, sizeof(*full_atlas.pixels.data()) * full_atlas.pixels.size());
logging::print("wrote {}\n", lightmaps_path);
}
auto ExportObjFace = [&full_atlas](std::ostream &f, const mbsp_t *bsp, const face_rect &face, int &vertcount) {
@ -426,6 +428,8 @@ static void export_obj_and_lightmaps(const mbsp_t &bsp, const bspxentries_t &bsp
};
ExportObj(&bsp);
logging::print("wrote {}\n", obj_path);
}
void serialize_bsp(const bspdata_t &bspdata, const mbsp_t &bsp, const fs::path &name)