Commit Graph

11677 Commits

Author SHA1 Message Date
Joakim Kilby
83f463ddd4 Add possibility to capture, edit & replay camera-keyframes 2024-08-30 10:42:14 +02:00
Joakim Kilby
a8e1e63397 add new tileprovider for eva traversals on the moon 2024-08-30 10:38:39 +02:00
Joakim Kilby
ed39d4fc68 Add possibility to capture, edit & replay camera-keyframes (#2785)
* Add possibility to capture, edit & replay camera-keyframes

* fix compilation on non-windows systems

* use cbegin/cend instead of std::views

* Coding style adaptions

* Member variable names

* add Keyframe struct, fix pr suggestions

* add function to remove keyframes

* add lua function to fetch keyframes

* Update lua documentation

* add constexpr keys for json entries

* Add log info messages, input checks and general pr suggestions

* update comments to doxygen style

* batch of pr suggestions

* add jump to keyframe function

* update docs

---------

Co-authored-by: Alexander Bock <mail@alexanderbock.eu>
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
Co-authored-by: Andreas Engberg <adde.engberg@gmail.com>
2024-08-30 10:25:38 +02:00
Emma Broman
311c69cc7a Update GUI hash
For a couple of small fixes. Non-breaking
2024-08-29 09:41:58 +02:00
Emma Broman
a7c11b4de9 Make empty dictionary convert into an empty json object and not undefined
Fixes a crash in the GUI when no gui order was set, e.g. in the empty profile
2024-08-29 09:30:33 +02:00
Alexander Bock
16484dc295 Doxygen cleanup and moving functions in SceneGraphNodes 2024-08-28 11:50:39 +02:00
Ylva Selling
aed2c0b0c8 Issue/2244 different mouse cursors (#3388)
* Update CEF version number

* Set OpenSpace_Helper version of C++ to 20

* Update C++ syntax to v 20

* Remove deprecated function (now default)

* Set the cache folder for cef

* Make static function in webbrowsermodule that determines if we can use accelerated rendering

* Add flag for accelerated rendering to webrenderhandler

* Use accelerated rendering

* Implement function to see if gui should absorb click

* Adhere to 80 char linewidth

* Make only the UI GPU accelerated

* Use dirty rects size for the texture to remove crash

* Better comments

* Make has content function work for GPU acceleration

* Make it so all browsers can be accelerated

Tried making it so only the gui was accelerated for simplicity. Performance plummeted, so reverted that

* Tidy up

* Add accelerated rendering flag to the screenspacerenderable shader

* Add temporary fix to make the sky browser work

* Remove flag from gui render handler

* Enable webgl in a nicer way

* Unbind texture in screenspacerenderable

* Add better comments for error handling

* Tidy up

* Address PR comments

* Make the acceleration Windows only

* Remove unnecessary setting of shader dictionary

* Add display handler to browser client

* Make glfw change mouse cursor depending on cef cursor

* formatting

* Add switch to main

* Update modules/webbrowser/src/browserclient.cpp

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

* Address comments on PR

* Update again

* Update modules/webbrowser/src/browserclient.cpp

Co-authored-by: Emma Broman <emma.broman@liu.se>

* Address PR comments

---------

Co-authored-by: Ylva Selling <ylva.selling@liu.se>
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
Co-authored-by: Emma Broman <emma.broman@liu.se>
2024-08-28 10:44:17 +02:00
Ylva Selling
fd586e30a3 Set useAcceleratedRendering flag in skybrowser 2024-08-23 16:46:36 +02:00
Alexander Bock
bf8c2bbe13 Add missing information about color-enhancement for the Viking image 2024-08-23 10:30:15 +02:00
Ylva Selling
11bb8e7ac5 GPU accelerate CEF (#3386)
* Update CEF version number

* Set OpenSpace_Helper version of C++ to 20

* Update C++ syntax to v 20

* Remove deprecated function (now default)

* Set the cache folder for cef

* Make static function in webbrowsermodule that determines if we can use accelerated rendering

* Add flag for accelerated rendering to webrenderhandler

* Use accelerated rendering

* Implement function to see if gui should absorb click

* Adhere to 80 char linewidth

* Make only the UI GPU accelerated

* Use dirty rects size for the texture to remove crash

* Better comments

* Make has content function work for GPU acceleration

* Make it so all browsers can be accelerated

Tried making it so only the gui was accelerated for simplicity. Performance plummeted, so reverted that

* Tidy up

* Add accelerated rendering flag to the screenspacerenderable shader

* Add temporary fix to make the sky browser work

* Remove flag from gui render handler

* Enable webgl in a nicer way

* Unbind texture in screenspacerenderable

* Add better comments for error handling

* Tidy up

* Address PR comments

* Make the acceleration Windows only

* Remove unnecessary setting of shader dictionary

* Allow web dev tools to connect to CEF

* Update modules/webbrowser/include/browserinstance.h

Co-authored-by: Emma Broman <emma.broman@liu.se>

* Update modules/webbrowser/include/webrenderhandler.h

Co-authored-by: Emma Broman <emma.broman@liu.se>

* Apply suggestions from code review

Co-authored-by: Emma Broman <emma.broman@liu.se>

---------

Co-authored-by: Ylva Selling <ylva.selling@liu.se>
Co-authored-by: Emma Broman <emma.broman@liu.se>
2024-08-23 09:37:01 +02:00
Emma Broman
6e6f425a0a Issue/3337 Custom UI group ordering (#3363)
* remove code for controlling group sorting in ImGui

We only use this for debug and the sorting here is no longer relevant

* Add feature to add custom ordering to UI groups

* Tiny cleanup

* Add numerical ordering for night sky planets

* Update Lua function name and create an event when ordering updated

* Set top-level ordering

* Add function documentation

* Add a custom ordering that previously was hardcoded in UI

* Apply suggestions from code review

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

* Rename GUI ordering function

* Update GUI hash

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2024-08-22 16:51:28 +02:00
Alexander Bock
f962a10e03 Add new maps for the Globe representation of Phobos (closes #1397) 2024-08-22 16:38:04 +02:00
Alexander Bock
2e4b99787f Resolve ShellLink files before passing them to the drag/drop handler (closes #2544). Add new Lua function to resolve Shell links 2024-08-22 15:20:02 +02:00
Alexander Bock
1f202339c8 Update SGCT repository (closes #2655) 2024-08-22 14:26:03 +02:00
Alexander Bock
423d409dc8 Always use the alpha blending independent of the renderbin (closes #3304)
It wasn't really clear why the check for the PreDeferredTransparent bin was in here in the first place
2024-08-22 14:00:51 +02:00
Ylva Selling
67965e8844 Issue/3174 update cef (#3383)
* Update CEF version number

* Set OpenSpace_Helper version of C++ to 20

* Update C++ syntax to v 20

* Remove deprecated function (now default)

* Set the cache folder for cef

* Update modules/webbrowser/src/cefhost.cpp

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

* Update version number

---------

Co-authored-by: Ylva Selling <ylva.selling@liu.se>
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2024-08-21 11:16:17 +02:00
Alexander Bock
d0b3cd6e89 Add example for ConstantRotation (#3384) 2024-08-21 10:34:08 +02:00
Alexander Bock
a138be3f92 Add example for StaticTranslation (#3385) 2024-08-21 10:33:59 +02:00
Alexander Bock
1fa4b3fd37 Update Ghoul submodule to fix WMI crash (closes #3330) 2024-08-21 10:32:49 +02:00
Emma Broman
09c192f46e Fix TravelSpeed uniform variables not being set correctly (closes #3381) 2024-08-19 17:47:03 +02:00
Emma Broman
351ee0f82b Use Cmake provided variable for windeployqt file
Instead of path to a speicific file that might not exists for the currently installed version
2024-08-19 15:42:12 +02:00
Alexander Bock
3eaa3cb593 Update ghoul repository 2024-08-19 13:35:12 +02:00
Alexander Bock
38e20403a1 Revert "Update required CMake version to 3.26"
This reverts commit b5114658e6.
2024-08-19 13:25:13 +02:00
Alexander Bock
b5114658e6 Update required CMake version to 3.26 2024-08-18 22:19:44 +02:00
Alexander Bock
a75c6f3c9e Adapt core scripts to Lua style guide 2024-08-18 13:46:17 +02:00
Alexander Bock
a01760a3ca Remove remains of visibility voting 2024-08-18 12:55:55 +02:00
Alexander Bock
e7533ba6a5 Update Ghoul submodule 2024-08-16 16:00:54 +02:00
Alexander Bock
f2a9477eb5 Lua Securty Sandboxing (#3378)
* Add Lua sandboxing
* Convert existing files to use custom functions instead of now-prohibited library functions
2024-08-16 13:46:39 +02:00
Alexander Bock
9decd9aad2 Add examples for SpiceTranslation (#3376) 2024-08-16 13:45:40 +02:00
Alexander Bock
7ec6b6cfb5 Add examples for GlobeRotation (#3377)
* Add examples for GlobeRotation and make the longitude and latitude defintion non-optional
* Remove old GlobeRotation example
2024-08-16 13:45:24 +02:00
Alexander Bock
f72e0af2f1 Don't delete the autogenerated kernel files as they need to be available when unloading a text kernel 2024-08-16 13:39:48 +02:00
Alexander Bock
39dc3a4dcf Don't enforce resolution in single.json configuration 2024-08-15 22:50:41 +02:00
Alexander Bock
c7f2ab1a43 Define the supergalactic transformation matrix only once and reuse in other assets 2024-08-14 15:10:44 +02:00
Alexander Bock
ab4023b9fd No longer send the script source of shortcuts via the topic. Don't scripts into the log that are binary blobs 2024-08-14 14:38:46 +02:00
Alexander Bock
1cef84ca74 Add an identifier to mission files and use that instead of the name 2024-08-14 10:22:41 +02:00
Alexander Bock
0b91fd2642 Global cleanup pass over asset files
- Lua style guides
- FrameConversions
- unloadMission, Add mission identifiers
2024-08-14 10:22:20 +02:00
Alexander Bock
43ada7fa1f Add the ability to feather borders of screenspace renderables 2024-08-13 13:37:39 +02:00
Alexander Bock
5d2186f11d Add Esri Wayback layers (#3382) 2024-08-12 21:20:39 +02:00
Alexander Bock
0ec3d5e284 Add Sweden caching server to Earth map layer 2024-08-12 09:55:03 +02:00
Alexander Bock
414c050330 Update to newer Qt version (#3369) 2024-08-10 23:26:46 +02:00
Alexander Bock
845724b788 Add the ability to drag and drop WMS files and add them to the current Anchor 2024-08-10 16:48:00 +02:00
Alexander Bock
2ee18b6862 No longer report OpenSpace version explicitly if it is the current version 2024-08-07 11:36:19 +02:00
Alexander Bock
d25d3072d8 Add new Lua function to read files by lines 2024-08-07 11:35:15 +02:00
Alexander Bock
75b4609c52 Remove explicitly specifying LuaState constructors 2024-08-07 11:34:57 +02:00
Alexander Bock
7f3482b5b6 Update Lua to 5.4.7 2024-08-07 08:55:03 +02:00
Alexander Bock
d07edbdc77 Fixing arrangement for TimeFrames in assets 2024-08-07 06:58:50 +02:00
Alexander Bock
ca6c14e9b5 Make the SampleInterval for RenderableTrailTrajectory optional and use a sample per 2 days by default 2024-08-07 06:53:05 +02:00
Alexander Bock
2b64f24458 Build Lua as a static library to benefit from LTO 2024-08-06 16:55:37 +02:00
Alexander Bock
d0ca4c836b Prevent illegal memory access when creating globals (closes #1657) 2024-08-06 16:44:48 +02:00
Alexander Bock
19bb1c5d91 Update Rosetta kernels to extend coverage (#3370) 2024-08-06 11:45:25 +02:00