diff --git a/README.md b/README.md index 8515fb6..2b558d4 100644 --- a/README.md +++ b/README.md @@ -74,4 +74,8 @@ Once the data is in place, the program may be executed as normal - again make su ## Screenshots +Temperature of hurricane Sandy visualized using the raycaster over time: + +![alt-text](figures/hurricane_flipped.gif) + diff --git a/figures/hurricane_flipped.gif b/figures/hurricane_flipped.gif new file mode 100644 index 0000000..909bb92 Binary files /dev/null and b/figures/hurricane_flipped.gif differ diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index 128178d..9d683b9 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -125,18 +125,18 @@ int Window::init(float* data) { this->widget = new Widget(this->window); // loop function for draw calls etc. - for (int i=296; i <= 306; i++) { - this->widget->date = i; - for (int j=0; j < 4; j++) { - Window::tick(); - this->saveImage(); - this->widget->timestep = j; - this->widget->datechanged = true; - } - } - // while (!glfwWindowShouldClose(window)) { - // Window::tick(); + // for (int i=296; i <= 306; i++) { + // this->widget->date = i; + // for (int j=0; j < 4; j++) { + // this->widget->timestep = j; + // Window::tick(); + // this->saveImage(); + // this->widget->dateChanged = true; + // } // } + while (!glfwWindowShouldClose(window)) { + Window::tick(); + } Window::free(data); return 0; diff --git a/src/gui/input/Widget.cpp b/src/gui/input/Widget.cpp index a415b7b..a66a33a 100644 --- a/src/gui/input/Widget.cpp +++ b/src/gui/input/Widget.cpp @@ -64,7 +64,7 @@ Widget::Widget(GLFWwindow* window) : date(301), samplesPerPixel(1), alphaAcumLimit(0.3f), - opacityConst(53), + opacityConst(35), showSilhouettes(false), silhouettesThreshold(0.02f) {