Commit Graph

5945 Commits

Author SHA1 Message Date
Wilhelm Björkström
386b92f29d Merge branch 'master' into thesis/2025/black-hole 2025-03-06 09:34:39 +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
Alexander Bock
25f7a2f1e4 Fix assertion failures in the ImGUI UI code 2025-03-04 11:43:44 +01:00
Alexander Bock
501fab40e8 Make the "Clear Projections" in the ProjectionComponent actually a button 2025-03-04 09:42:55 +01:00
Wilhelm Björkström
f0224c0fe9 Merge branch 'master' into thesis/2025/black-hole 2025-03-03 16:03:23 +01:00
Wilhelm Björkström
5e5b1b69cb submodule update --remote --merge 2025-03-03 16:01:26 +01:00
Wilhelm Björkström
50d9e0ca93 Merge branch 'master' into thesis/2025/black-hole 2025-03-03 15:54:29 +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
David Wagner
cb66065445 Add a "time offset" option to the SpiceRotation and SpiceTranslation (#3544)
Lets SpiceTranslation and SpiceRotation compute the transformation with a given time offset compared to the simulation time (or fixed date if one is configured)
2025-03-03 10:17:20 +01:00
Alexander Bock
cc395ce340 Update C++ version to 23, add new warnings and the fix them 2025-03-01 15:49:38 +01:00
Alexander Bock
cd8924ed22 Remove compiler warnings on Clang/GCC (#3546) 2025-02-28 23:29:38 +01:00
Malin E
80b1061b26 Update time conversion to mirror distance conversion code (#3507) 2025-02-28 18:25:05 +01:00
Alexander Bock
3c811a488f Add a new DashboardItem to show the camera orientation (#3542) 2025-02-28 16:50:33 +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
2d092e75d4 Moved spherical coordinates conversion to shader.
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-02-28 14:03:12 +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
Wilhelm Björkström
b2332f00f5 WIP: CMake build with CUDA
There is still a problem with the CMakeList that adds two unwanted tags "/MP /bigobj", have to be manually removed from the CUDA compile commands in MSVS as of right now

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
Emil Wallberg
64338da974 Init of black hole module 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
7ba7875ba7 Merge branch 'thesis/2025/black-hole' of https://github.com/OpenSpace/OpenSpace into thesis/2025/black-hole 2025-02-28 10:47:21 +01:00
Wilhelm Björkström
06b7a49699 Moved spherical coordinates conversion to shader.
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-02-28 10:41:22 +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
Wilhelm Björkström
65b89c2c8b Environment map from spherical coordinates.
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-02-27 17:32:22 +01:00
Alexander Bock
9f77ca1daa Use composable Lua types in Property definitions. Allow OptionProperty to receive either indices or descriptions (#3524) 2025-02-27 15:42:54 +01:00
Wilhelm Björkström
d77df77ba7 WIP: CMake build with CUDA
There is still a problem with the CMakeList that adds two unwanted tags "/MP /bigobj", have to be manually removed from the CUDA compile commands in MSVS as of right now

Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-02-24 13:18:09 +01:00
Ylva Selling
3c3efd9598 Documentation fix broken codegen links 2025-02-24 11:23:36 +01:00
Alexander Bock
5152a7a6e0 General code spring cleaning (#3525) 2025-02-22 15:28:14 +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
Alexander Bock
8cb3ce8b94 Add the ability to limit-rate the dashboard updating (#3527)
Co-authored-by: Emma Broman <emma.broman@liu.se>
2025-02-18 16:49:47 +01:00
Emil Wallberg
a10e77f255 Refractor of blackhole renderable 2025-02-18 10:39:14 +01:00
Grantallkotten
ebb47e6b73 Merge branch 'master' into thesis/2025/black-hole 2025-02-18 10:21:33 +01:00
Alexander Bock
d21d1e4dcf Add the ability to disable accelerated rendering for CEF. Disable it for AMD cards as it causes a crash (#2488) 2025-02-17 18:25: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
Alexander Bock
588c4a6f86 Fixing assets that had problems loading (#3528)
- Correctly remove interpolating render program to prevent invalid shader access
 - Fix Apollo 11 location
 - Fix Apollo 17 location
 - Replace errors with warnings for Gala and Rime instruments for Juice
 - Correctly rely on the solarsystembarycenter asset in the Voyager/Pioneer asset
 - Use correct identifier for the Jupiter barycenter
 - NASA Treks assets
 - Slidedeck
 - Fix unloading of missions
 - No longer crash when loading and unloading image sequence assets
2025-02-17 14:08:53 +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
Grantallkotten
ebff650405 Merge branch 'master' into thesis/2025/black-hole 2025-02-14 16:49:35 +01:00
David Wagner
3d57d3d65a Fixes for some "elapsed time" dashboard bugs (#3520)
- Expose the FormatString property (closes #3519). Contrary to other properties, it wasn't accessible through the scripting API.
  - Fix the time simplification logic (closes #3515). If the lowest required time unit's value was zero, all time units where displayed regardless of what the user required. Fix this by using a "less than" comparison rather than an equality comparison.
  - Fix string truncation (closes #3516). The time string truncation was off by one, causing the trailing unit name to be truncated e.g. (minutes -> minute).
2025-02-14 16:38:25 +01:00
Alexander Bock
1a03cb52a1 Add missing documentation entries for DashboardItemElapsedTime and DashboardItemInputState (closes #3514) 2025-02-14 14:30:07 +01:00
Emil Wallberg
0414fcf4e4 Init of black hole module 2025-02-12 17:23:31 +01:00
Emma Broman
7f4bf73993 Cleanup and add some more examples (#3506)
* Remove duplicated node line example

* Update `ScreenSpaceBrowser` example to new format

* Add screenspace image examples

* Add docs and examples for `RenderableGrid`

* Add docs and examples for `RenderableRadialGrid` + create 10 grid segments per default

* Add docs and examples for `RenderableSphericalGrid`

* Remove the old, combined, grid example

* Apply suggestions from code review

Co-authored-by: Alexander Bock <alexander.bock@liu.se>

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2025-02-11 09:37:57 +01:00
Emma Broman
1fbd5e827d Utilize new docs functionality in API scripts that are defined in Lua files (#3505)
* Fix a reference to a deprecated and renamed function in navigationstate docs

* Review documentation for scripts defined in .lua files

And utilize new markdown functionality

* Update renderable box grid size specs

So that it can have a size less than 1, and throws a specification error when the size is given as negative

* Fix some issues with the gaia filtering scripts

* Try adding param documentation to the lua script documentation

It works!

* Utiliize mroe markdown features in the updated documentations

* Add function parameter info and make small updated to gaia filtering functions

* Replace a long parameter info in description with `param` description

* Update usage examples

* Add example of how to create debug axes for the current SGN
2025-02-11 08:59:33 +01:00
Alexander Bock
b93c284551 Make the audio module adhere to the correct include ordering 2025-02-10 17:46:49 +01:00
Alexander Bock
08cfe384c5 Undo the previous change and use HorizonsTextFile again 2025-02-10 17:45:59 +01:00
Alexander Bock
b631c1c688 Make ScreenSpaceImageLocal not finding an image an error instead of a warning 2025-02-06 16:30:46 +01:00
Alexander Bock
b8e5fab5f5 Prevent crash when moving a layer to the top of a list that only has two entries (closes #3414) 2025-02-06 13:02:02 +01:00