diff options
author | David Doan <daviddoan@Davids-MacBook-Pro-100.local> | 2023-12-10 17:31:10 -0500 |
---|---|---|
committer | David Doan <daviddoan@Davids-MacBook-Pro-100.local> | 2023-12-10 17:31:10 -0500 |
commit | 53182717cf46663e85f2138d3e74d256564ede06 (patch) | |
tree | e73c27cba1a0e064765411b3ca7d8a5842fb5ef4 /src | |
parent | 0c4ac76cf46c616f165908f3a84b88ddd7ae5114 (diff) |
gui appears, slow/no render
Diffstat (limited to 'src')
-rw-r--r-- | src/mainwindow.cpp | 9 | ||||
-rw-r--r-- | src/mainwindow.h | 1 | ||||
-rw-r--r-- | src/vec4ops/vec4ops.cpp | 5 |
3 files changed, 4 insertions, 11 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 088fa1c..fafe7ad 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -247,15 +247,6 @@ void MainWindow::initialize() { connectUIElements(); - - onValChangexyBox(0.0f); - onValChangexzBox(0.0f); - onValChangexwBox(0.0f); - onValChangeyzBox(0.0f); - onValChangeywBox(0.0f); - onValChangezwBox(0.0f); - onValChangeRotationBox(1.0f); - onValChangeWBox(0.0f); } void MainWindow::finish() { diff --git a/src/mainwindow.h b/src/mainwindow.h index 986a911..8d46dd4 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -7,7 +7,6 @@ #include <QDoubleSpinBox> #include <QPushButton> #include <QLabel> -// #include "realtime.h" #include "raytracer/raytracer.h" #include "utils/aspectratiowidget/aspectratiowidget.hpp" diff --git a/src/vec4ops/vec4ops.cpp b/src/vec4ops/vec4ops.cpp index 70c018b..ecac3b1 100644 --- a/src/vec4ops/vec4ops.cpp +++ b/src/vec4ops/vec4ops.cpp @@ -1,3 +1,5 @@ +#include <iostream> +#include <ostream> #include <stdexcept> #include "vec4ops.h" #include "settings.h" @@ -49,7 +51,8 @@ glm::mat4 Vec4Ops::getViewMatrix4( // calculate e3 basis vector, the transformation col of view matrix if (glm::distance(fromPoint, toPoint) < 0.0001f) { - throw std::runtime_error("fromPoint and toPoint are the same"); + // throw std::runtime_error("fromPoint and toPoint are the same"); + std::cout << "warn: fromPoint and toPoint are the same" << std::endl; } glm::vec4 e3 = glm::normalize(fromPoint - toPoint); |