Commit Graph

3474 Commits

Author SHA1 Message Date
Ylva Selling 7d3a88f007 Make it possible to add two copies of the sky browser, which will make it possible to display many copies in a dome environment and have an interactive copy on the master node 2022-03-16 16:22:56 -04:00
Emma Broman 4e45f6634d Add helper function and timer to trigger idle behavior (#1898)
* Format property infos in orbital navigator more consistently

* Add helper function to trigger an idle behavior (issue #1833)

* Add timer to start idle behavior when camera is idle (issue #1730)
2022-03-15 10:06:24 +01:00
Emma Broman 235e37d2e6 Add min/max values for ScreenSpacerenderable background color property 2022-03-04 11:09:44 +01:00
Ylva Selling bd43816060 Pull request fix requested changes 2022-03-03 12:10:41 -05:00
sylvass b2ce062ce9 Merge remote-tracking branch 'origin/master' into thesis/2021/skybrowser
# Conflicts:
#	data/assets/util/webgui.asset
2022-03-02 16:41:11 -05:00
Emma Broman a0433c0419 Use largest of boudning and interaction sphere for creating camera path (closes #1897) 2022-03-02 10:52:03 +01:00
Emma Broman e127dec602 Fix openspace.debugging.renderCameraPath leading to crash
Keep the path around after it's finished, so that we can render/analyze it. It will be cleared once the next path is generated anyways.
2022-03-02 09:28:20 +01:00
Emma Broman dfc2402638 Shorten info message (pause during camera path) 2022-03-01 13:11:35 +01:00
Emma Broman aeeeea7793 Reorder default path type property, so the most useful ones comes first
OBS! Breaking change for the installations that uses paths, as the option property uses the indices in the list to set the value
2022-02-27 20:52:38 +01:00
Emma Broman 6e751585b0 Add a property to change the default arrival distance for camera paths 2022-02-27 20:51:26 +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 78fd5b78da Wait for initialization when adding assets at runtime. Correctly destroy the RenderableGalaxy shader when deinitializing (closes #1601) 2022-02-22 23:24:37 +01:00
sylvass bcf463ad66 Merge remote-tracking branch 'origin/master' into thesis/2021/skybrowser
# Conflicts:
#	data/assets/util/asset_helper.asset
#	data/assets/util/webgui.asset
2022-02-22 10:25:46 -05:00
Alexander Bock ae40493627 Add function allowing insight into currently loaded assets. Don't print info message when loading asset that was already loaded 2022-02-21 21:19:13 +01:00
Alexander Bock abaaf437b6 Don't try to initialize an asset if the initialization has failed (closes #1830) 2022-02-20 19:30:23 +01:00
Alexander Bock a6f048e342 Add explicit checks whenever we are accessing another scene graph node (closes #1831) 2022-02-20 19:17:06 +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
Micah Acinapura 9e69300642 unified renderbin to renderable; adapted orbitalkepler to codegen; fi… (#1843)
* unified renderbin to renderable; adapted orbitalkepler to codegen; fixes 1842

* update for pr comments

* update for pr comments2
2022-02-17 10:58:32 -05: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 6c3a715efc Merge branch 'master' of github.com:OpenSpace/OpenSpace 2022-02-11 10:23:27 +01:00
Alexander Bock d3c2ee2fe5 Don't let the meta info disappear into the void (closes #1876) 2022-02-10 22:24:59 +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 72110be88c Fixes to remove some warnings 2022-02-10 14:28:15 +01:00
Emma Broman f45b782234 Remove all remaining virtual property related code 2022-02-10 14:28:15 +01:00
Alexander Bock 0e49606706 Feature/Science on the Sphere (#1863)
Add all available Science-on-a-Sphere datasets from their public FTP as assets.  Many of the datasets include large files that are downloaded the first time the asset is loaded
2022-02-10 13:53:30 +01:00
Alexander Bock a7841ce405 Working unit tests (#1882)
* Enable all unit tests in Jenkins (closes #1666)
* Fix issue with Profile where the version number is not updated if the profile does not contain keybindings
* Fix issue with script schedule that would cause a crash when only one script is scheduled
* Fix test for colorimage, use correct path to unit test executable for non-windows platforms
* Provide stable class names for vector and matrix verifiers
2022-02-10 01:06:41 +01:00
sylvass 51496956fc Pass data regarding if sky browser and target are facing camera and using radius azimuth elevation to gui 2022-02-07 09:46:00 -05:00
Alexander Bock 5e3e27bbae Add support for InRange, NotInrange, and Operator verifiers for vector types 2022-02-03 23:39:17 +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
Emma Broman 6bc7d36920 Autopause camera paths using script
Makes the script propagate to all nodes, as well as being recorded during session recording
2022-02-03 16:08:21 +01:00
Emma Broman c3ab68cd93 Fix faulty ScriptScheduler property info identifiers 2022-02-03 16:08:21 +01:00
Emma Broman df56cdb68f Move scriptscheduler time update to function that handles time progression
To avoid potential future problems with scriptscheduler time progressing when simulation time doesn't
2022-02-03 16:08:21 +01:00
Alexander Bock 8b74493d96 Removing the asset_helper file (#1868)
- Remove the asset_helper file and call the onInitialize and onDeinitialize functions directly
 - Small compile fix on Windows
 - Removes the need for the registerIdentifierWithMeta function by automatically doing that for all asset.export statements
 - Allow the passing of either identifiers (as before) or entire tables to the removeSceneGraphNode, removeScreenSpaceRenderable, deleteLayer, removeAction, and export methods. In that case, the Identifier key from the table is extracted and used instead
2022-02-01 23:44:36 +01:00
Micah Acinapura 56460f818e Feature/asset meta update part2 (#1855)
* changes to asset/loader/meta to support adding nodes created at runtime

* update assets meta.

* update tle helper and gui to work with changes

* fixes #1840

* group titan trail and atmosphere with globe

* license for magnetosphere

Co-authored-by: ElonOlsson <olssonelon@gmail.com>
2022-01-31 15:58:41 -05:00
Alexander Bock 2cf268abf0 Fix crash when unloading layers; Fix issue accidentally unloading an asset too early 2022-01-26 23:02:59 +01:00
Alexander Bock 8070c307ce Add more informative error when a layer fails specification; Add error message when trying to unzip a file that does not exist 2022-01-26 23:02:55 +01:00
sylvass 5128056272 Make hover circle work again and remove unneccessary conversion function 2022-01-26 05:41:46 -05:00
Emma Broman 37574522a3 Rename pathnav functions (goTo => flyTo) 2022-01-20 14:18:59 +01:00
Emma Broman 0da8afa550 Automatically pause simulation time when starting a camera path (adresses #1832) 2022-01-20 14:18:59 +01:00
Emma Broman c89599ab64 Add bool property to toggle follow anchor node rotation (#1839)
And make property title formatting more consistent

closes #1822
2022-01-18 14:08:26 +01:00
Alexander Bock 2222d3d9e0 Update SGCT to enable taking screenshots of individual windows 2022-01-07 12:00:00 +01:00
Alexander Bock c78ff28109 Update submodules, fix formatting for units 2022-01-05 17:06:47 +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 4c9337a465 Fix issue when drag-dropping an image that has extra dots in the name (closes #1793) 2021-12-29 14:13:59 +01:00
Alexander Bock 8b4de949dc Correctly report issue if a required asset is not available; Fix issue loading a colormap for the gaia stars 2021-12-28 23:39:33 +01:00
Alexander Bock fdd995ba01 No longer require the filenames from a synced resource to start with a / 2021-12-28 00:10:01 +01:00