Commit Graph

2541 Commits

Author SHA1 Message Date
Emma Broman
53a9a8bf71 Break out repeated update code into camera state base class
And rename update function from states to velocities
2025-12-19 12:52:10 +01:00
Emma Broman
1135322d9c Simplifying camera input code even more 2025-12-19 11:41:52 +01:00
Emma Broman
075f015592 Start cleaning among the camera states code 2025-12-19 09:24:48 +01:00
Emma Broman
32583084b3 Move idle behavior logic to a separate class
We might want to move it out of the orbital navigator in the future, and it's quite ocmplex so it's nice to have it in its own separate file.
2025-12-18 11:25:28 +01:00
Emma Broman
2d44c6c884 Do some more cleanup in the interactionfolder 2025-12-17 16:34:31 +01:00
Emma Broman
fa9f1d8fc5 Small joystick related cleanup 2025-12-17 16:28:01 +01:00
Emma Broman
87488edca2 Move joystick input states to interactionhandler 2025-12-17 15:56:37 +01:00
Emma Broman
a214641f26 Move websocket input state to inputhandler + do some cleanup 2025-12-17 13:41:09 +01:00
Emma Broman
3a5c56de81 Move interactionMonitor into InteractionHandler 2025-12-17 13:12:51 +01:00
Emma Broman
9e62607636 Move interaction/input related code form navigation handler to a global interaction handler 2025-12-17 11:59:11 +01:00
Emma Broman
90a48934f3 Move files related to orbital navigation to one place (navigation/orbitalnavigator/) 2025-12-17 11:08:04 +01:00
Emma Broman
0c19f651d8 First scan through joystickcamerastates code, to try to mak eit a bit easier to understand
The "camera states" will now be considered the velocity variables from `CameraInteractionState`
2025-12-16 16:12:11 +01:00
Emma Broman
0923f46cc8 Move OrbitalNavigator input management to a separate handler
Cleans up the navigator code
2025-12-16 14:48:40 +01:00
Emma Broman
14f3742696 Star by simplifying nav handler a bit by replacing helper functions with direct calls 2025-12-16 14:48:32 +01:00
Alexander Bock
c02e59b9f8 Fixing more includes and forward declarations (#3876) 2025-12-16 13:40:19 +01:00
Alexander Bock
a269205f5d Pass for coding style 2025-12-08 23:36:19 +01:00
Alexander Bock
f9346452cb Use string_views in more query functions 2025-12-08 23:35:54 +01:00
Alexander Bock
6b20d114c8 Global pass over optimizing includes (#3862) 2025-12-08 20:13:31 +01:00
Andreas Engberg
dfbc1f5090 Issue/591 add assets file browsing (#3798)
* create download event topic wip

* Make topic connection thread safe & rate limit downloadeventtopic data to reduce traffic


* add LDEBUG and LERROR on donwload start/finish/failed

* Add new AssetLoadingEvent
event 
* fix pr comments
2025-12-01 11:14:41 +01:00
Alexander Bock
25f021f009 Change more prefix to postfix operators 2025-10-04 10:13:25 +02:00
Alexander Bock
32cff07bf8 New ScreenSpaceText objects (#3794)
* First version of new screenspacetext and screenspacetextdate
* Code restructuring and adding new types
 - ScreenSpaceFramebuffer -> ScreenSpaceRenderableFramebuffer
 - ScreenSpaceText -> ScreenSpaceRenderableText
 - Add new user-facing ScreenSpaceText
 - Add examples
* Add documentation for new ScreenSpace objects
* Add visual tests to new screenspace objects
* Address PR comments
2025-09-26 15:35:05 +02:00
Andreas Engberg
5d473cc449 Issue/1188 improve console (#3772)
* Refactor keyboard handling, fix ctrl + left / right arrow key not being consumed correctly

* Adds ctrl + backspace and ctrl + delete shortcuts to delete whole words

* Add tab completion for paths and nester openspace lua functions

* Render command overflow as rows instead of horizontal scrolling
2025-09-15 09:50:11 +02:00
Alexander Bock
630823e6be Remove unused default variables in the DashboardTextItem 2025-09-11 23:22:12 +02:00
Alexander Bock
1ff0fee1e8 Add support for specifying the format string for the openspace.time.SPICE() function 2025-09-11 21:15:40 +02:00
Alexander Bock
81a3ba090e Various coding style 2025-09-07 16:57:05 +02:00
Alexander Bock
ff72e47f7b Move to use postfix increment only 2025-09-07 16:56:59 +02:00
Alexander Bock
0e72a2cb0d Add rendering for mouse interaction (#3781) 2025-09-07 15:36:46 +02:00
Alexander Bock
39bd973321 Correctly define comparison operators 2025-08-26 23:17:04 +02:00
Alexander Bock
19e9e2c1fb Adapt to new compile option style and fix warnings (#3773) 2025-08-12 14:19:45 +02:00
Alexander Bock
389842f76c Adjust coding style 2025-08-05 20:43:44 +02:00
Alexander Bock
208b853840 Improve documentation of navigation functions (closes #3001) and no longer internally represent truck and rolls as two-dimensional ( 2025-08-05 15:15:14 +02:00
Alexander Bock
02f2814834 Fix compile issue for MinVR (closes #2813) 2025-07-28 14:18:07 +02:00
Andreas Engberg
4dffe7c7b2 Add camera view direction to camera topic (#3741)
* Add camera view direction to camera topic
* Add subsolar coordinates to topic

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
Co-authored-by: Ylva Selling <ylva.selling@gmail.com>
2025-07-16 13:21:12 +02:00
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
b706a0b095 Fix issue where a property interpolation would not cause the postscript to be called 2025-07-04 17:52:30 +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
4c1a1fc57b Update SGCT repository
- Make it possible to offset the statistics window
2025-06-16 14:44:20 +02:00
Mathis Brossier
28929da822 Miscellaneous changes (#3708)
* Add fov input for fisheye projections in launcher
* Updated gitignore to ignore more necessary files
* Fixed typos
* Replace `add_definitions` with `add_compile_options` in CMakeLists for /MP /bigobj, which are not preprocessor defs
* Fixes in TuioEar: add `override`; replace erroneous `unique_lock` with `lock_guard`; minor refactor

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2025-06-14 16:12:44 +02:00
Alexander Bock
93c0f75ef2 Remove Clang warnings 2025-06-14 15:42:38 +02:00
ElonOlsson
87c1372744 Todays Sun, PR for branch: feature/WSA (#3652)
The merge commit
---------

Co-authored-by: shyamthyagarajan <shyammuralithyagarajan@gmail.com>
Co-authored-by: Lundkvist <alundkvi@ndc.nasa.gov>
Co-authored-by: lundkvistarn <lundkvistarn@live.se>
Co-authored-by: Alexander Bock <mail@alexanderbock.eu>
Co-authored-by: Emma Broman <emma.broman@liu.se>
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2025-06-12 09:57:26 -04:00
Emma Broman
68ab41a241 Fix broken Apollo profile and transform initialization in general (#3704)
* Fix faulty log category and minor inconsistencies in GlobeTranslation and GlobeRotation

* Small refactor

* Remove unused return value from initialize function

* Fill attached node in globetranslation initialize and initialize all timeline

Should make the timeline translation work with globetranslations in other cases that the renderabletrails

* Do the same type of change for rotation and scale

* Update initialize function singatures

* Initialize and update translation in trail before use

* Screenspace renderable renderable - move initialize call to initialize

* Refactor trail position calls to make it clearer what is being done

* Call timeframe initialize functions in transform classes

* Do not call update in trail position after all - it borks up the performance

* GlobeTransform: Only fill attached node in init and onchange, and allow nodes without renderable

* Correctly initialize the multi-transform types

* Apply suggestions from code review

* Apply suggestions from code review

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

* Address code review comment

* Update comments in renderabletrail

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2025-06-10 12:05:30 +02:00
Alexander Bock
72c40f531f Correctly resize the CEF browser when any window in a collection is resized (closes #3686). Warn about the behavior when showing 2D elements on multiple windows 2025-06-08 15:19:19 +02:00
Alexander Bock
fbd4128b34 Pass through the coding styles 2025-06-05 10:59:58 +02:00
Emma Broman
f0c3df7309 Fix broken selection properties (closes #3676)
And small options key cleanup
2025-05-23 09:22:06 +02:00
Alexander Bock
237798d9a3 Add ability to specify log level verbosity for file downloads. Make notification file download not log anything as there already will be a warning message 2025-05-20 16:16:14 +02:00
Alexander Bock
b39a5f3d7b Remove deprecated Lua functions (#3664) 2025-05-19 17:59:58 +02:00
Alexander Bock
8495acd171 Remove unused boolean return value for ScreenSpaceRenderable initialize and deinitialize functions 2025-05-16 23:57:40 +02:00
Alexander Bock
8630240260 Cleaning up the code for the setProperty value functions, add better documentation, and add the ability to combine tags (#3638) 2025-05-15 22:02:52 +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
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