From 9f0490eab74aafd867ba2a82d7180f89faedcbf7 Mon Sep 17 00:00:00 2001 From: Nicholas Bottone Date: Wed, 13 Dec 2023 02:02:13 -0500 Subject: Add bulk rendering functionality --- src/raytracer/raytracer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/raytracer') diff --git a/src/raytracer/raytracer.cpp b/src/raytracer/raytracer.cpp index f831f82..8f4a190 100644 --- a/src/raytracer/raytracer.cpp +++ b/src/raytracer/raytracer.cpp @@ -69,9 +69,9 @@ void RayTracer::render(RGBA *imageData, const RayTraceScene &scene) { } } - if (settings.bulkOutputFilePath.size() > 0) { // means we are doing bulk rendering + if (settings.bulkOutputFolderPath.size() > 0) { // means we are doing bulk rendering // save the image to the bulk directory - std::string filePath = settings.bulkOutputFilePath + QDir::separator().toLatin1() + std::to_string(settings.currentTime) + ".png"; + std::string filePath = settings.bulkOutputFolderPath + QDir::separator().toLatin1() + std::to_string(settings.currentTime) + ".png"; saveViewportImage(filePath); if (settings.currentTime < settings.maxTime) { // still more to render // render the next frame -- cgit v1.2.3-70-g09d2