Commit Graph

6057 Commits

Author SHA1 Message Date
Wilhelm Björkström
c397f72bfd Cleanup
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-05-13 18:55:32 +02:00
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
cd1a60374b Merge branch 'master' into thesis/2025/black-hole 2025-05-08 16:47:37 +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
Wilhelm Björkström
e5c805346d Shader cleanups
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-05-08 16:19:39 +02:00
hn-88
5588395b2a Correct cef builds index link. Add arm64 binary download support (#3647) 2025-05-08 07:38:16 +02:00
Alexander Bock
0bec798cb3 Compile fix for CEF fix 2025-05-07 14:58:32 +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
David Wagner
d8a9ee8771 Fix CEF deprecation notice and crash (#3643)
According to https://github.com/chromiumembedded/cef/issues/3685, using
the so-called "Alloy bootstrap" (which seems to be the default) is
deprecated. This causes a warning when starting OpenSpace.

In some setups (e.g. an AppImage build on Ubuntu 22.04), the warning is
followed by a fatal error and a crash:

   [0505/213642.653624:FATAL:path_service.cc(265)] Failed to get the path for 1001

Following the migration instructions from the aforementioned ticket
solve both the warning and the crash.
2025-05-07 11:21:36 +02:00
Emma Broman
1d56563412 Move profile name from top bar center to File menu (#3628)
* Add more profile meta info to profile topic, and gueard for nonexisting meta entry

* Add punctuation to end of profile descriptions

* Cleanup

* Apply suggestions from code review

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

* Update GUI hash

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2025-05-06 18:17:41 +02:00
Anders Lundkvist
517e44db5a Add time varying dashboard item text class (#3621)
New dashboard item class, DashboardItemTimeVaryingText, designed to display numeric values from a JSON time series, dynamically updating based on time. Also added examples for this.

Useful for displaying dynamic values like KP index or solar wind parameters in sync with time.
---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2025-05-05 15:31:02 -04:00
Alexander Bock
bc715e1a74 Turn ResetTileProviders in RenderableGlobe into a button 2025-05-05 14:41:05 +02:00
Wilhelm Björkström
c72a90be22 Merge branch 'master' into thesis/2025/black-hole 2025-05-05 09:09:20 +02:00
Alexander Bock
f704bc9bb8 Correctly update scale, rotation, and scale classes where multiple subtypes are involved 2025-05-01 18:00:36 +02:00
Alexander Bock
f7f1aa30ad Update cfitsio to fix GCC 15 compile issue (closes #3632) 2025-05-01 17:23:01 +02:00
Alexander Bock
43cd1fd831 Remove warnings 2025-05-01 10:29:37 +02:00
Emil Wallberg
6241f6dbf9 Kerr disk tweaked interpolation 2025-04-30 17:50:54 +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
Ylva Selling
e3f5b83f74 Feature/2025 UI rewrite (#3608)
* Remove Escape keybind; move gui keybind to F2

* Clear up keybinds properly

* Workaround for CEF focus bug

* Add TODO comment

* Guard against null ptr dereferencing

* Remove shift tab

* add additional keyboard mapping from glfw to cef

* Change dashboards to make prototype for first user test

* add mission added/removed event, disptached when a mission has been loaded/unloaded

* send missions as map instaed of array, rename missionName -> name

* Set keybind for toggling overlays to shift+f2

* Remove property for showing the title in the gui skybrowser module

* Remove default setting for skybrowser

* First implementation of setting the ui panel visibility from the launcher

* Add profile topic

* Coding style adjustment

* Add markNodes to the profiletopic

* Change format of additional data of options in engine

* Address PR comments

* map escape key from glfw to cef correctly

* fix issue with "Enter" key not working on buttons and other input fields in CEF

* Add test for new profile version

* Send skybrowser data although we are outside the solar system

* Update webgui to new ui

* Add name to profile topic

* Add cef variable to javascript context for when browser is in cef

* Use camelcase for cef variable

* Rewrite shortcuts topic to ActionKeybind and pass data in a better way (#3590)

* Rewrite shortcuts topic to ActionKeybind and pass data in a better way

* Fix strange error with file structure

* Address PR comments

* Address PR comments

* Address PR comments

* Make numbers in asset file prettier

* Rename name to identifier for missions event

* Clean up browser code

* Update UI hash (to fix the actions panel not working)

And update outdated comment. The backend is not part of this

* Feature/notify meta data change (#3605)

* Add notifyMetaDataChangeListener to topic

* First round of clean up the data passing

* Convert from string to json for metadata

* Update additional data to json

* Use nlohmann::json for additional data

* Pass meta data in new structure to topics

* Remove meta data method

* Fix mistake in merge

* Update src/properties/property.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* remove TODO comment that will be fixed by this PR

* Address PR comments

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Emma Broman <emma.broman@liu.se>

* Address PR comment

* Remove function for setting the endpoint

* Update frontend hash

* Remove enabled property from exoplanets module

* Remove enabled property from skybrowser module

* Update default UI panels json

* Remove setting of enabled properties for skybrowser and exoplanets

* Update gui hash

* Auto format json

---------

Co-authored-by: Andreas Engberg <adde.engberg@gmail.com>
Co-authored-by: Emma Broman <emma.broman@liu.se>
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
Co-authored-by: Alexander Bock <mail@alexanderbock.eu>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-04-29 15:43:56 +02:00
Alexander Bock
f024c25666 Add the ability to run as task file at startup. Add new model conversion task that requires an OpenGL context. Add ability to use FileVerifier and DirectoryVerifier on files that don't exist (#3612) 2025-04-29 09:50:29 +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
Arohdin
0e2a365e55 Moved onChange function for horizonstranslation 2025-04-24 17:30:41 +02:00
Emil Wallberg
a108f01b75 Merge branch 'thesis/2025/black-hole' of github.com:OpenSpace/OpenSpace into thesis/2025/black-hole 2025-04-24 12:49:37 +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
Wilhelm Björkström
1c54e980a4 Cleanup in non-rotating BH shader
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-04-24 08:23:13 +02:00
Emil Wallberg
cecdf8fdf1 Merge branch 'master' into thesis/2025/black-hole 2025-04-23 20:30:19 +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
Anders Lundkvist
ad786f7d5c Add RenderableSwitch class (#3597) 2025-04-23 16:44:24 +02:00
Alexander Bock
6dc738e54e Move functions about globe locations from the GlobeBrowsingModule into the core (#3613)
* Make GlobeRotation and GlobeTranslation work for non-globes and move them to the base module
* Move ellipsoid and geodetic classes into the core
* Allow more things to take scene graph nodes instead of RenderableGlobes
* Move goToGeo and related Lua functions into the core
* Move more functions from the pathnavigation namespace into the navigation namespace

---------

Co-authored-by: Emma Broman <emma.broman@liu.se>
2025-04-23 16:15:17 +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
Emil Wallberg
21ced94b35 Cuda fix up removed unnessary parameter 2025-04-23 12:26:06 +02:00
Alexander Bock
b02680a360 Add new TimeFrame that parses Spice kernels (#3600) 2025-04-22 20:47:17 +02:00
Wilhelm Björkström
32409e96b3 Merge branch 'master' into thesis/2025/black-hole 2025-04-22 14:18:29 +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
Alexander Bock
8a364c16e3 Fix layout issues with Dashboards (#3614)
- Correctly render multiline text passed to a DashboardItemText
  - Invert the property for the Dashboard location to no longer need a negative y-axis
  - Use the current lineheight instead of pointsize for the ScreenLog
  - Remove the unused size function from DashboardItems
2025-04-21 01:10:02 +02:00
Alexander Bock
bd448a1dd6 Fix the text alignment in the DashboardItemMission (closes #3540) 2025-04-20 20:22:07 +02:00
Emma Broman
93ef632663 Fix faulty identifier in exoplanet system creation script
And clarify that some tags are used in the UI => dangerous to change
2025-04-17 10:02:42 +02:00
Alexander Bock
125f54aa0a Update nlohmann repository (#3609)
* Remove old non-submodule version of nlohmann in favor of submodule
* Update nlohmann from 3.9.1 to 3.12.0
- Already disable implicit conversions in preparation for next major version
2025-04-16 14:13:20 +02:00
Alexander Bock
b554187d76 Improve performance of setPropertyValue function (#3579)
* Cache full property URIs
  * Multithreaded handling

---------

Co-authored-by: Emma Broman <emma.broman@liu.se>
2025-04-15 17:43:57 +02:00
Emma Broman
b5dbee2164 Fix exoplanet system 1 AU ring no longer being a ring, but a grid
Default value for gridsegments changed in #3506
2025-04-15 12:59:48 +02:00
Alexander Bock
17b182cda3 Add new Kepler data reader for the IAU's Minor Planet Center database files (#3591) 2025-04-14 19:50:05 +02:00
Alexander Bock
af20b97dc7 Add ability to configure horizontal field of view per window instead (#3584) 2025-04-14 19:47:54 +02:00
Ylva Selling
17279d2b4a Add handling for apostrophe code (#3594) 2025-04-11 13:40:30 +02:00
Emil Wallberg
7f43369d5d Merge branch 'master' into thesis/2025/black-hole 2025-04-10 09:45:47 +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
Emma Broman
d47e7f2074 Add type documentation for the different light sources (#3582)
* Add type documentation for the different light sources

* Address code review comments
2025-04-04 10:02:08 +02:00