From bfb23302ef1e1311dac0ba0b90c0d657f682b3c3 Mon Sep 17 00:00:00 2001 From: nashmuhandes Date: Sun, 20 Feb 2022 08:42:30 +0800 Subject: [PATCH] - Report sun vector - Various styling fixes to the messages --- src/level/level_light.cpp | 3 ++- src/lightmap/gpuraytracer.cpp | 2 +- src/lightmap/levelmesh.cpp | 10 +++++----- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/level/level_light.cpp b/src/level/level_light.cpp index e4ede04..97ef666 100644 --- a/src/level/level_light.cpp +++ b/src/level/level_light.cpp @@ -111,7 +111,8 @@ void FLevel::SetupLights() sundir.x = -sdx; sundir.y = -sdy; sundir.z = -sdz; - //printf("sun vector: %f, %f, %f\n", sundir.x, sundir.y, sundir.z); + + printf("Sun vector: %f, %f, %f\n", sundir.x, sundir.y, sundir.z); // sun color lightcolor = thing->args[0]; diff --git a/src/lightmap/gpuraytracer.cpp b/src/lightmap/gpuraytracer.cpp index 997a016..9aa7131 100644 --- a/src/lightmap/gpuraytracer.cpp +++ b/src/lightmap/gpuraytracer.cpp @@ -42,7 +42,7 @@ void GPURaytracer::Raytrace(LevelMesh* level) { mesh = level; - printf("Building vulkan acceleration structures\n"); + printf("Building Vulkan acceleration structures\n"); if (device->renderdoc) device->renderdoc->StartFrameCapture(0, 0); diff --git a/src/lightmap/levelmesh.cpp b/src/lightmap/levelmesh.cpp index 8c55d53..f9fcffa 100644 --- a/src/lightmap/levelmesh.cpp +++ b/src/lightmap/levelmesh.cpp @@ -46,12 +46,12 @@ LevelMesh::LevelMesh(FLevel &doomMap, int sampleDistance, int textureSize) textureWidth = textureSize; textureHeight = textureSize; - printf("------------- Building side surfaces -------------\n"); + printf("\n------------- Building side surfaces -------------\n"); for (unsigned int i = 0; i < doomMap.Sides.Size(); i++) { CreateSideSurfaces(doomMap, &doomMap.Sides[i]); - printf("sides: %i / %i\r", i + 1, doomMap.Sides.Size()); + printf("Sides: %i / %i\r", i + 1, doomMap.Sides.Size()); } printf("\nSide surfaces: %i\n", (int)surfaces.size()); @@ -60,7 +60,7 @@ LevelMesh::LevelMesh(FLevel &doomMap, int sampleDistance, int textureSize) printf("Surfaces total: %i\n\n", (int)surfaces.size()); - printf("Building level mesh..\n\n"); + printf("Building level mesh...\n\n"); for (size_t i = 0; i < surfaces.size(); i++) { @@ -786,11 +786,11 @@ void LevelMesh::CreateCeilingSurface(FLevel &doomMap, MapSubsectorEx *sub, IntSe void LevelMesh::CreateSubsectorSurfaces(FLevel &doomMap) { - printf("------------- Building subsector surfaces -------------\n"); + printf("\n------------- Building subsector surfaces -------------\n"); for (int i = 0; i < doomMap.NumGLSubsectors; i++) { - printf("subsectors: %i / %i\r", i + 1, doomMap.NumGLSubsectors); + printf("Subsectors: %i / %i\r", i + 1, doomMap.NumGLSubsectors); MapSubsectorEx *sub = &doomMap.GLSubsectors[i];