Commit Graph

977 Commits

Author SHA1 Message Date
Alexander Bock
524b78f5d2 Add the ability to disablee keybindings (closes #2238) 2022-10-14 11:24:44 +02:00
Alexander Bock
3cf80e0fdc Linux compile fix 2022-08-29 08:09:33 +02:00
Alexander Bock
664eb60f4f Increase the compile times by including more precompiled headers (#2217)
* Define WIN32_LEAN_AND_MEAN and VC_EXTRALEAN globally
* Use forked version of TUIO, some more work on precompiled headers
* Improvements for the Kameleon module
2022-08-26 16:32:21 +02:00
Emma Broman
01eabd1b02 Consistent allocation of callback vectors 2022-08-26 09:13:02 +02:00
Alexander Bock
9ea284f6c6 Compile fix for MSVC 17.3 2022-08-22 14:17:04 +02:00
Emma Broman
0cc5704b6a Add isGuiWindow check for mouse and keyboard callbacks
Fix interaction problems when hovering/clicking with the mouse in a non-GUI window, when having a setup with more than one window (e.g. the single_gui.json setup)

Previously, clicking with the mouse in the rendering window without the GUI also triggered mouse clicks in all the other windows, including the GUI windows. This was disturbing for interaction in the single_gui setup

Now, the GUI modules check to see if the clicked window is actually an interaction window
2022-08-05 11:41:10 +02:00
Alexander Bock
163ac4dcef Cleanup of mostly asset files
- Fixes for all files
 - constexpr cleanup
 - Cosmetic changes
 - Remove punctuation from the end of messages
2022-07-28 17:21:59 +02:00
Alexander Bock
c1252902c7 More Code Cleanup (#2192)
* Harmonizing ( and ) in function calls
* static const -> constexpr
* Fix compile issue
* Unify shader tab size
* Add _fs and _vs to shaders
* Harmonize spacing
2022-07-26 11:22:41 +02:00
Alexander Bock
9cc4c595a8 Code Cleanup (#2191)
* constexpr const -> constexpr
* const char* -> std::string_view
2022-07-25 15:57:45 +02:00
Alexander Bock
1a052f3c8c Update to C++20 2022-07-19 15:42:31 +02:00
Alexander Bock
9f53433073 Request the current version later in the initialization after the operating system has been detected (#2186) 2022-07-19 10:35:27 +02:00
Emma Broman
db36b2dec5 Fix navigation state not loading correctly from profile (closes #2143)
Note that the anchor should be used as a reference frame per default. Also, it should always be used, if possible. We have quite some problems when using other reference frames

PR: #2175
2022-07-04 15:02:06 +02:00
Ylva Selling
6a3cdb172f Merge remote-tracking branch 'origin/master' into feature/properties-visibility 2022-06-29 08:52:22 -04:00
Alexander Bock
14306e59de Add Lua function that returns information about the current OpenSpace version (closes #2136) 2022-06-29 10:24:53 +02:00
Alexander Bock
343615ab52 Move the Lua Console updating into the actual postSyncPreDraw function so that it gets called accuratly when GUI windows are present (closes #2141) 2022-06-20 15:52:33 +02:00
Alexander Bock
02a2bcf1af Add property that contains the list of all compiled modules (closes #1021) 2022-06-18 19:44:05 +02:00
Ylva Selling
7e7f4740f2 Remove onChange functions that sets visibility depending on type 2022-05-23 14:21:51 -04:00
Ylva Selling
0fa317d96f Fixes to comments on pull request 2022-05-17 11:40:19 -04:00
Ylva Selling
e1bda38529 Make imGUI listen to OpenSpaceEngine properties for visibility for properties and for scene graph nodes 2022-05-12 12:11:00 -04:00
Ylva Selling
0824b59d77 Move properties for visibility from CefWebGui to OpenSpaceEngine 2022-05-12 10:11:25 -04:00
Ylva Selling
2f567b6d56 Add openspace engine to the property tree 2022-05-12 10:10:31 -04:00
Ylva Selling
9d583dafe9 Make Engine a Property Owner 2022-05-12 10:10:14 -04:00
Ylva Selling
785084c318 Add developer lua script that sets property visibility to "Developer" if an environment variable called "OPENSPACE_DEVELOPER" is set 2022-05-11 14:31:41 -04:00
Alexander Bock
970536998a Multiple small fixes
- Turn the planet lighting actions from mixed case to lower case
 - Fix the openspace.rebindKey Lua function which did not work before
 - Fix the openspace.downloadFile function which would fail when not waiting for the the result
 - Rename openspace.walkDirectoryFolder to openspace.walkDirectoryFolders for consistency
 - Remove the openspace.saveLastChangeToProfile function
2022-05-06 16:13:21 -04:00
Alexander Bock
82b0b1fd87 Fix bug when selecting a default profile when a user profile with the same name exists (closes #2074). Make it possible to specifiy a full path to a profile in the openspace.cfg file 2022-05-05 15:54:52 -07:00
Alexander Bock
ee735618b4 User Properties (#2064)
Add the ability to add user-defined properties using a new `openspace.addCustomProperty` function that takes an identifier and a type and creates a new property of that type.  The new property is then available under `UserProperties.<identifier>`
2022-05-04 16:06:08 -07:00
Emma Broman
a8a33ed3a5 Reverse order of module deinitialization
To respect dependencies, deinitialize and destroy modules in reverse order to how they were added
2022-05-02 10:08:25 +02:00
Alexander Bock
d360f2ae59 Address Visual Studio analyzer warnings 2022-04-12 00:58:11 +02:00
Alexander Bock
5fc5ce318a Set default values for starting time and start camera (closes #1981) 2022-04-08 16:05:56 +02:00
Alexander Bock
73292ee54c Rename 'slave' to 'client' in the remaining code 2022-04-05 23:10:49 +02:00
Alexander Bock
3844df20c9 Feature/codegen lua (#1906)
Adapting Lua functions to new codegen functionality
Improve the documentation itself
Add some styling to generated documentation
Have parameter names for Lua-defined Lua function documentation

Co-authored-by: Emma Broman <emma.broman@liu.se>
2022-03-21 09:05:37 +01:00
ElonOlsson
f29dee2fe3 added user agent: OpenSpace, to http-request 2022-03-18 10:35:08 -04:00
Alexander Bock
2d7e8f9967 Pass information about the operating system to the version reporter script (#1865) 2022-03-18 15:19:02 +01:00
Emma Broman
d0fcec569c Address stability problems for camera paths and make them more useful in general
* Change spline curve parameter interval from [0,1] to [0,nSegments], for slightly increased precision
* Use linear paths whenever precision isn't enough/paths are too long (and traverse linear paths differently, to make them less depending on the distance)
* Remove OrbitalNavigator.LinearFlight and instead add "Zoom to" helper functions (closes #1837 )
* Add check to prevent triggering awkward short paths, for example when flying to the current target or to the same geo position twice
* Refactor speed code and handle speed when path is shorter than start+closeup distance
* Add easing to speed dampening
* Add topic for engine mode (to be used for UI later)
* Cleaner log when creating paths (some previous info messages are now debug messages)

Related PR: OpenSpace/OpenSpace-WebGuiFrontend#70
2022-02-25 08:49:19 +01:00
Alexander Bock
cbe2e6cdcf Set the default window size to 66% of the primary window size (closes #1883) 2022-02-17 17:55:43 +01:00
Alexander Bock
e8072495ec Feature/warnings (#1885)
Remove many warnings from MSVC, Clang, and GCC
2022-02-16 18:33:12 +01:00
Alexander Bock
40ed640bc8 Simplify the function signature of the FactoryManager function 2022-02-12 00:55:15 +01:00
Alexander Bock
51937d9461 Merge branch 'master' of github.com:OpenSpace/OpenSpace 2022-02-10 16:00:40 +01:00
Alexander Bock
30212b6768 Adapt to new auto coding style 2022-02-10 15:20:21 +01:00
Emma Broman
f45b782234 Remove all remaining virtual property related code 2022-02-10 14:28:15 +01:00
Emma Broman
91b0581d39 Introduce engine modes to handle Camera path and session recording transitions
* Clarifies which system is control over time and camera at what time
* Fixes #1845
* Prevent invalid switching between session recoring and camera path playback
* Some cleanup, mosly of SessionRecording and NavigationHandler. Also, remove ExternInteraction and some other unused/nonexisting functions
2022-02-03 16:08:21 +01:00
Alexander Bock
6673791b05 Shorten the configuration extraction 2022-01-02 14:02:39 +01:00
Alexander Bock
21df9066e1 Make use of the new map feature in codegen (#1801) 2022-01-02 13:36:41 +01:00
Alexander Bock
d7d279ea16 Happy new year 2022-01-01 12:32:55 +01:00
Alexander Bock
debcb43ade Feature/assets (#1784)
General overhaul of the Asset loading system
2021-12-19 18:04:01 +01:00
Alexander Bock
55ee3d2785 Remove the user data from the Lua function definition 2021-11-04 16:27:54 +01:00
Malin E
a8c74979c1 Merge branch 'master' into feature/animation-fixes 2021-10-25 10:51:13 +02:00
Gene Payne
f5ed0eae0c Typo fix in eventEngine for non-windows builds 2021-10-15 14:22:08 -06:00
Malin E
fc4c3f1cfa Merge branch 'master' into feature/animation-fixes
* Resolve conflicts in scene.cpp
2021-10-14 14:23:24 +02:00
Alexander Bock
8d26f6e167 Set the user-agent when requesting a download (closes #1765). Also report the error code if a download fails 2021-10-13 21:46:08 +02:00