Commit Graph

34 Commits

Author SHA1 Message Date
Wilhelm Björkström
802c4db98e Fixed blackhole readable to work with fisheye camera
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-25 16:49:45 +01:00
Wilhelm Björkström
304304e6bc Star colours, and translation
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-25 14:28:31 +01:00
Wilhelm Björkström
5594b79ec8 Added KDTree stars to black hole render
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-21 14:20:16 +01:00
Wilhelm Björkström
4e35cc3725 Changed rendering camera to the one from RenderData.
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-21 14:18:58 +01:00
Wilhelm Björkström
70cb3c2a57 Changed blackhole mass to represent Sagittarius A*
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-13 16:36:18 +01:00
Wilhelm Björkström
e59f39e502 Camera navigation in local and global space
CameraRotationDecomposition decomposeCameraRotationSurface made public in order to acces global and local camera rotations.

Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-13 13:31:54 +01:00
Wilhelm Björkström
91fdc1ea7e Skybox path updated
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-12 17:10:53 +01:00
Wilhelm Björkström
4b4f2687cb Rotation and dummy skybox texture added
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-12 17:04:06 +01:00
Wilhelm Björkström
7a2a8a19cb Import for light years conversition
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-12 17:03:11 +01:00
Wilhelm Björkström
b3d6eff39f Exit program bugfix
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-12 16:51:40 +01:00
Wilhelm Björkström
495d8559fa Units in light years and interaction sphere
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-12 16:46:32 +01:00
Wilhelm Björkström
825a2a6f6d Cleanup in C++ files
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-12 09:21:44 +01:00
Wilhelm Björkström
fb61984c85 Re render on r distance change
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-12 09:20:37 +01:00
Wilhelm Björkström
d703fd2746 Fixed warnings and general clean up in C++
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-10 11:33:08 +01:00
Wilhelm Björkström
aeb491078f Black hole placment movment
Temporaly made camera distance to acerNode handle moving the placment of the black hole in the scene
2025-03-07 11:40:49 +01:00
Wilhelm Björkström
8e99e99297 Change in one varible name in renderblackhole 2025-03-07 09:48:57 +01:00
Wilhelm Björkström
11a6e1749f Fixe for warnings, variable conversations, and unused variables 2025-03-07 09:35:37 +01:00
Wilhelm Björkström
5321026626 Cleanup in fragment shader and start conditions 2025-03-06 17:30:45 +01:00
Wilhelm Björkström
caf4b6e7f9 Refactor of renderableblackhole and blackhole fragment shader
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-06 11:14:19 +01:00
Wilhelm Björkström
7e198a0009 WIP: Schwarzchild implementation in OpenGL from pre computed map
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-05 17:40:51 +01:00
Wilhelm Björkström
6eaa87c433 Raytracer slice in cuda, end and start angles as output
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-05 11:22:42 +01:00
Wilhelm Björkström
33a1fcba3b 2D Schwarszchild cuda rk4 blackhole
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-03 15:52:08 +01:00
Wilhelm Björkström
f327a39cd3 Applying viewMatrix to the blackhole camera plane
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-02-28 14:15:31 +01:00
Wilhelm Björkström
7f7f2e5854 Environment map from spherical coordinates.
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-02-28 14:03:12 +01:00
Emil Wallberg
9fe0fdeea5 WIP: CUDA build setup with CMake
The current CUDA build setup fails due to invalid flags in the nvcc command, leading to the error:

nvcc fatal: A single input file is required for a non-link phase when an output file is specified

The problematic flags are /MP and /bigobj, which cause nvcc to misinterpret the command structure. Removing these flags allows the compilation to succeed.

Further investigation is needed to determine how they can be removed form the CMake build system.
2025-02-28 14:03:12 +01:00
Emil Wallberg
7ec8e33678 Refractor of blackhole renderable 2025-02-28 14:03:12 +01:00
Emil Wallberg
12de1366ec Texture rendering
Rendering texture to the camera quad

Co-Authored-By: Wilhelm Björkström <143391787+Grantallkotten@users.noreply.github.com>
2025-02-28 14:03:12 +01:00
Emil Wallberg
0a05bfff24 Camera Quad, Rendering screen
A quad in screen space that will be used to render the result of blackhole ray tracing

Co-Authored-By: Wilhelm Björkström <143391787+Grantallkotten@users.noreply.github.com>
2025-02-28 14:03:12 +01:00
Wilhelm Björkström
e6a477c8d2 Applying viewMatrix to the blackhole camera plane
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-02-28 13:56:08 +01:00
Wilhelm Björkström
3a0f024d55 Environment map from spherical coordinates.
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-02-28 10:40:32 +01:00
Emil Wallberg
09397189c6 WIP: CUDA build setup with CMake
The current CUDA build setup fails due to invalid flags in the nvcc command, leading to the error:

nvcc fatal: A single input file is required for a non-link phase when an output file is specified

The problematic flags are /MP and /bigobj, which cause nvcc to misinterpret the command structure. Removing these flags allows the compilation to succeed.

Further investigation is needed to determine how they can be removed form the CMake build system.
2025-02-20 15:08:04 +01:00
Emil Wallberg
a10e77f255 Refractor of blackhole renderable 2025-02-18 10:39:14 +01:00
Emil Wallberg
605a26425e Texture rendering
Rendering texture to the camera quad

Co-Authored-By: Wilhelm Björkström <143391787+Grantallkotten@users.noreply.github.com>
2025-02-17 16:33:07 +01:00
Emil Wallberg
bf0d8532b7 Camera Quad, Rendering screen
A quad in screen space that will be used to render the result of blackhole ray tracing

Co-Authored-By: Wilhelm Björkström <143391787+Grantallkotten@users.noreply.github.com>
2025-02-17 10:33:58 +01:00