Commit Graph

1102 Commits

Author SHA1 Message Date
Andreas Engberg
2b14162cdd Adds property confirmation modal hint to properties (#3730)
---------

Co-authored-by: Ylva Selling <ylva.selling@gmail.com>
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2025-07-08 16:24:58 +02:00
Alexander Bock
6e18684297 Give the console first go at keyboard input (closes #3649) 2025-07-03 11:14:14 +02:00
Emma Broman
b51a3322e2 Fix toggleFade for multiple property owners, and add openspace.propertyOwner API function (#3721)
* Add a function for getting all propertyowners matching a certain regex
* Fix broken toggleFade - now works with multiple nodes
* Utilize updated toggle fade function in existing toggle actions
* Make `openspace.propertyOwner` work when only tag is included
* And make toggleFade work in a situation where tag matches both a screenspace renderable and scene graph node
* Remove mistakenly added scene graph node (it is really a screenspace renderable)
* Cleanup property check code to reuse check in both property and propertyowner function
2025-06-18 18:32:17 +02:00
Alexander Bock
eb8f621390 Add new Lua function to save base64-encoded files to disk 2025-06-11 15:39:27 +02:00
Alexander Bock
94edfdb471 Correctly update whether OpenSpace has started before 2025-06-11 10:02:26 +02:00
Alexander Bock
637ee4ec4f Cleanup of the Initializer class (#3631)
* Combine single- and multithreaded initializer to only one initializer
* Change the default to 0 to represent initializing the nodes on the main thread. Increase the default number of threads

---------

Co-authored-by: Malin E <malin.ejdbo@gmail.com>
2025-05-01 10:24:27 +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
Alexander Bock
9a623129d8 Add Notification window to the Launcher (#3595) 2025-04-16 17:13:14 +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
Alexander Bock
86dd037870 Window Configuration Generation (#3550)
* Use built-in toJSON converter instead of manually creating the string. Also removes the ability to create fisheye configuration files from the Lua script directly
2025-03-24 08:49:37 +01:00
Alexander Bock
fc9b2ab091 Increase the compilation speed (#3545)
- Remove toStringConversion function and move json_helper include out of numericalproperty.inl
  - Optimizing some header files
  - Remove duplicate Lua functions from properties. 
  - Move List,Option,Selection,String, and TriggerProperty into misc folder
  - Move lua_helper include out of inline file
  - Add lua_helper to the precompiled header
  - Declare property functions as final. No longer have OptionProperty derive from IntProperty
  - Remove Dictionary header from properties
2025-03-14 11:22:40 +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
Emma Broman
eb3bd4395a Add Lua function openspace.navigation.setFocus(identifier, shouldRetarget, shouldResetVelocities) (#3534)
* Add support to set focus with reset-velocities setting from Lua

* Update Lua function name and add documentation

* Rename functions that actually update the anchor/aim nodes, to reduce confusion

* Apply suggestions from code review

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

* Apply suggestions from code review

Co-authored-by: Ylva Selling <ylva.selling@gmail.com>

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
Co-authored-by: Ylva Selling <ylva.selling@gmail.com>
2025-02-27 13:20:22 +01:00
Alexander Bock
61ed1f4c9b Launcher improvements (#3523)
- Adding support for subfolders in configurations and profiles
  - Disable the edit button if profile does not exist
  - Disable the Start button if the profile or window configuration does not exist
  - Change the layout of the Window Configuration editor
    - Explicitly specify which windows should have Overlay rendering and 3D rendering
    - Add keyboard shortcuts for adding and removing windows
  - Use a normal Save dialog for the profile editor instead of the renaming + Duplicate button
2025-02-24 16:19:42 +01:00
Alexander Bock
e57a67aa5d Enable the drag and drop of a folder, which will add all files contained within 2025-02-04 13:29:13 +01:00
Alexander Bock
ec5bfd48b4 Only render the Lua console on top of the module 2D calls, not the log and overlay 2025-02-04 13:28:49 +01:00
Alexander Bock
ffbcbc413b Render overlays on top of module draw2D calls 2025-02-04 00:27:44 +01:00
Alexander Bock
820e90eab4 Happy new year 2025-01-14 16:21:08 +01:00
Alexander Bock
438d6e3ddd SessionRecording and KeyframeRecording redesign (#3399) 2024-10-21 15:06:40 +02:00
Alexander Bock
ff345006d1 General code cleanup (#3445) 2024-10-10 09:49:02 +02:00
Malin E
9582d81fb6 Sync out the anchor node, issue 2854 (#3398)
* Sync out anchor node to all connected clients

* Remove warning in case anchor node is nullptr

* Always sync out the anchor node to nodes
2024-10-09 10:39:13 +02:00
Alexander Bock
56a9d6ae8c Add the ability to query RAM and VRAM usage (#3427) 2024-09-28 13:19:29 +02:00
Alexander Bock
062278b0a0 Store last profile and configuration from the launcher (closes #3410) 2024-09-13 12:30:24 +02:00
Alexander Bock
fd64fe7c96 Improvements to the ScriptLog logging (#3389)
* Restructuring the queueScript function
* Don't log the contents of actions that are triggered.  Add the ability to do verbose logging in the scriptlog
2024-09-09 21:16:57 +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
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
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
75b4609c52 Remove explicitly specifying LuaState constructors 2024-08-07 11:34:57 +02:00
Alexander Bock
d0ca4c836b Prevent illegal memory access when creating globals (closes #1657) 2024-08-06 16:44:48 +02:00
Alexander Bock
aec4f473dc No longer specify an inaccurate version number on the master branch. 2024-08-06 10:51:26 +02:00
Emma Broman
0973d2421a Add STB texture writer functionality (#2912) 2024-08-05 13:52:09 +02:00
Alexander Bock
43645ce7a4 Fix existing assets; Make the goToGeo function without altitude in the profile work 2024-06-14 23:55:55 +02:00
Emma Broman
95b4deccca Fix the goToGeo call when the camera is set from a profile 2024-06-06 09:39:49 +02:00
Alexander Bock
7a2b876541 Add profile information to the visual test files (#3270)
* Update test files
* Fix apollo test
* Cleanup test files
* Include information about the profile being loaded
* Add documentation about the visual tests
2024-05-23 13:09:01 +02:00
Andreas Engberg
944e345d2e Update post synchronization from range-based to index-based for loop closes #3163 (#3261)
* Update pre- & post synchronization from range-based to index-based for loop
2024-05-20 15:43:06 +02:00
Alexander Bock
d4a509ecce Add the ability to override the openspace.cfg file 2024-05-20 09:33:29 +02:00
Ylva Selling
7757ec7976 Merge pull request #3212 from OpenSpace/issue/2996
Issue/2996 - documentation engine rewrite
2024-04-30 16:11:13 +02:00
Ylva Selling
708143d06e Make json file printout a separate function 2024-04-30 15:49:23 +02:00
Alexander Bock
78b3b4fb2e Adding periods to the description texts 2024-04-23 22:33:17 +02:00
Alexander Bock
58bc1bd29d Publish event when a scheduled script is executed (closes #1892) 2024-04-19 13:27:15 +02:00
Alexander Bock
50dadb37a8 Rename filesystem token from USER_PANELS to USER_WEBPANELS 2024-04-16 20:40:17 +02:00
Micah Acinapura
cfb400e7b8 added user panel token and folder needed for webgui pr (#3141) 2024-04-16 08:15:03 +02:00
Alexander Bock
4328476d26 Use more filesystem::path where applicable 2024-04-06 23:55:59 +02:00
Gene Payne
d16e016d49 Update refs to sgct and ghoul from master 2024-03-28 09:52:17 -06:00
Alexander Bock
cdf98f7889 Optimizing the data loading. Adding more Tracy macros 2024-03-28 14:30:12 +01:00
Emma Broman
3f8bff5a62 General performance improvements (#3142)
* Adding some Tracy zones
* Move point cloud dataset loading to initialize function to speed up startup 
* Switch order of operations in memoryaware tile cache to speed up startup
* Move point cloud dataset loading to initialize function
* Add more Zone Scoped and rearrange SDSS loading
* More speed up

---------

Co-authored-by: Alexander Bock <mail@alexanderbock.eu>
2024-03-28 01:10:07 +01:00
Gene Payne
6146cf16b2 Merge-in all updates from master 2024-03-25 18:35:57 -06:00
Alexander Bock
49fc538c17 Rename fmt.h to format.h and enable audio module on default 2024-03-25 23:19:52 +01:00
Ylva Selling
f625dc296b Update PR according to comments 2024-03-25 11:23:00 +01:00