Commit Graph

54 Commits

Author SHA1 Message Date
Wilhelm Björkström
76cdf4adf3 Accretion disk texture
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-05-09 16:07:22 +02:00
Wilhelm Björkström
692f007253 Fixed star layers to represent real positions more accurately
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-05-08 16:47:14 +02:00
Emil Wallberg
0642f9c702 Added stars to kerr
Co-Authored-By: Wilhelm Björkström <143391787+Grantallkotten@users.noreply.github.com>
2025-05-07 14:54:03 +02:00
Emil Wallberg
908cb00ed8 WIP: Accreation disk texturing
Co-Authored-By: Wilhelm Björkström <143391787+Grantallkotten@users.noreply.github.com>
2025-04-30 17:38:10 +02:00
Emil Wallberg
732dbfd127 WIP: Kerr, accretion disk and delayed stationary high ress version
Co-Authored-By: Wilhelm Björkström <143391787+Grantallkotten@users.noreply.github.com>
2025-04-30 15:36:40 +02:00
Wilhelm Björkström
77910d80f1 Name change to separate Kerr and Schwarzschild in code
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-04-25 14:04:17 +02:00
Emil Wallberg
8116151d0c WIP: Fixed using wrong domain in shader
Warptable used angles 0 to 2pi in phi while the shader assumed -pi to pi
2025-04-24 21:05:46 +02:00
Emil Wallberg
fc74833d6b WIP: Kerr, interpolation still need a lot of work
Co-Authored-By: Wilhelm Björkström <143391787+Grantallkotten@users.noreply.github.com>
2025-04-24 12:48:42 +02:00
Emil Wallberg
472a3abb5d WIP: Kerr
Co-Authored-By: Wilhelm Björkström <143391787+Grantallkotten@users.noreply.github.com>
2025-04-23 20:28:33 +02:00
Emil Wallberg
c331ec40a1 Preparations for Kerr
Co-Authored-By: Wilhelm Björkström <143391787+Grantallkotten@users.noreply.github.com>
2025-04-23 13:18:08 +02:00
Wilhelm Björkström
37e541ffd3 Fixed color issue of in texture in frag
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-04-22 14:16:19 +02:00
Wilhelm Björkström
38c56f85c1 Fixed spelling of Schwarzschild and cleanup
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-04-22 14:06:37 +02:00
Emil Wallberg
0b9995cdb0 Perfect hash loopup in shader 2025-04-09 13:16:03 +02:00
Emil Wallberg
d583e5ad44 Corrected scale of blackhole should now be in correct metrics 2025-04-09 11:51:26 +02:00
Emil Wallberg
8ab9483071 Refactor made shader program ptr into unique_ptr 2025-04-02 16:40:13 +02:00
Emil Wallberg
be3a301dc0 Blackhole as background decupled blackhole from anchor.
Fix so that the blackhole can be used as a background to other 3D Objects and there for had to make it so that the blackhole rendering is independet of the camera anchor node
2025-03-31 19:31:43 +02:00
Emil Wallberg
d3d2a6069e Fixed zoom distortion bugg
Co-Authored-By: Wilhelm Björkström <143391787+Grantallkotten@users.noreply.github.com>
2025-03-31 15:58:25 +02:00
Emil Wallberg
99d2f08817 Parallax effect using multilayerd star maps
Co-Authored-By: Wilhelm Björkström <143391787+Grantallkotten@users.noreply.github.com>
2025-03-31 13:17:52 +02:00
Emil Wallberg
724aecb3b0 KDTree refactor and some star render tweaks
Co-Authored-By: Wilhelm Björkström <143391787+Grantallkotten@users.noreply.github.com>
2025-03-26 16:54:29 +01:00
Emil Wallberg
a9b197a5e0 Resolution dynamically updates, and warning fixes
Co-Authored-By: Wilhelm Björkström <143391787+Grantallkotten@users.noreply.github.com>
2025-03-26 11:40:25 +01:00
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