Commit Graph

5255 Commits

Author SHA1 Message Date
Alexander Bock 7565a91196 Cleanup lambda expressions and directly address Fadeable properties when adding properties 2023-04-12 23:20:53 +02:00
Joakim Kilby b219638e29 Add ability to cache globe data using MRFs (#2565)
Enables globe-browsing data to be cached using caching mrf's as it is loaded from the original dataset. Subsequent reads of tiles that have been cached do not query the original dataset but picks it up from the mrf data.
Supports anything that can be used a dataset for a gdal raster but raw images such as JPGs are explicitly disallowed as they lack necessary geotransform data.

Activated on a global scale by setting the following keys in openspace.cfg (ModuleConfigurations/GlobeBrowsing)
MRFCacheEnabled = true,
MRFCacheLocation = "<somepath>",
Settings can be overriden on a per-layer basis by adding the following entries to the layer entity of an asset
CacheSettings = { Enabled = true, Compression = "LERC", BlockSize = 512, Quality=25 },

The following per-layer settings are available and override the global module settings:
Enabled : enable/disable caching for this layer.
Compression: The compression algorithm to use for tile cache storage. (JPEG, PNG, or LERC)
BlockSize: Size of tiles in cache, should be a multiple of 2 although this is not required.
Quality: The quality setting of the JPEG compression (when used)

Note that heightlayers must use LERC compresison and this is the default unless overridden by a layer.
2023-04-11 08:46:25 +02:00
Alexander Bock 9022aad479 Adding static Settings to Renderable (#2578)
* Add settings to Renderable to control whether the renderbin is updated based on Opacity
* Remove duplicate RenderBin specification for RenderableSphere
* Remove unnecessary RenderBin specifications of Lagrange points
* Don't automatically update the renderbin for RenderableLabel and RenderablePlane
* Remove extra `setRenderBinFromOpacity` from RenderableSpheres
* Move information about whether a renderable should be updated when disabled
* Some cleanup of Renderable class
* Don't update the renderbin automatically if the user specified the renderbin manually
2023-04-10 20:49:01 +02:00
Emma Broman 554373eb3e Fading of propertyowners through GUI, and more owners with fade property (#2557)
* Add property in OpenSpaceEngine for fading duration when enabling / disabling

* Add interface for fadeable components and apply to renderable

* Make layers a fadeable component

* Make globelabels a fadeable component

* Make labelscomponent a fadeable, and give it an enabled property

* Make screenspace renderables fadeable components

* Introduce concept of parent fadeables, to fade out subowners with parent

* Make rings fadeable as well

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2023-04-06 12:49:49 +02:00
Alexander Bock 80e2aaf564 Remove whitespaces at the end of files, ' and - characters 2023-04-05 16:58:45 +02:00
Emma Broman 4de3713107 Add a central function to create an identifier from string, and also expose it through Lua 2023-04-03 11:40:19 +02:00
Alexander Bock 1057b369c9 Harmonize the handling of the IsLocal vs Synchronized state of actions (closes #2566) 2023-04-03 10:29:20 +02:00
Malin E 9fd70834e6 Add transformation matrix to labels, fixes #2501 2023-03-29 14:29:58 +02:00
Emma Broman d4231384ba Fix precision problem for renderablebillboardscloud when flying close
E.g. when flying close to an exoplanet system
2023-03-28 11:45:32 +02:00
Alexander Bock 8eec0e84b9 Fix an issue with being able to add a GIBS layer via addGibsLayer 2023-03-26 20:24:55 +02:00
Alexander Bock b6666cd83d Correctly parse SSSB files that use an integer epoch, rather than a floating point one (closes #2551) 2023-03-19 20:56:48 +01:00
Alexander Bock d59ef03d8f Check for illegal keywords in the header of Speck files to detect invalid files (closes #2549) 2023-03-19 19:23:38 +01:00
Malin E 148f010a9a Fix issue with constellation labels and selection, closes #2382 2023-03-14 15:46:00 +01:00
Alexander Bock 27aeac0776 Only check major Horizons version for compatibility (closes #2507) 2023-03-11 15:31:44 +01:00
Alexander Bock 23ee2ee5da Add new verifier to handle identifiers and update codegen to be able to use them (closes #2522) 2023-03-11 13:18:12 +01:00
Emma Broman 284ee17fb7 Fix problem with touch module always aborting idle behavior (closes #2541) 2023-03-10 15:14:45 +01:00
Emma Broman 1db7dcf2c3 Provide error if output failed in exoplanet data prep task
And update hardcoded filepath to teff_bv file to current version, for easier usage next time
2023-03-09 21:52:33 +01:00
Alexander Bock 15b4cd670f Check for invalid indices in the Gaia stars to prevent crashes (closes #2495) 2023-03-08 15:53:43 +01:00
Emma Broman 4a50c4cbc0 Double renderbins for renderables (#2520) 2023-03-08 10:59:32 +01:00
Emma Broman 5e7b67e077 Fix RenderableSphere overriding DisableFade property from asset
And always add the properties, as well as make the behavior a bit more clear through documentation
2023-03-08 10:24:54 +01:00
Adam Rohdin 88d6366901 Merge pull request #2525 from OpenSpace/RenderableTrailTrajectory-Optimization
Optimizations for RenderableTrailTrajectory
2023-03-07 16:24:36 +01:00
Adam Rohdin f0f278a9a2 Updated comments in order to adhere to the repo line length standard 2023-03-07 16:19:33 +01:00
Alexander Bock 0831b00a77 Centralize the extraction of Lua values and fix bug when trying to extract the first parameter of a Lua parameter pack 2023-03-07 01:56:17 +01:00
Alexander Bock a711591c09 Update Doxygen (#2537)
* Modernizing Doxygen
* Remove warnings for Doxygen
2023-03-06 23:41:24 +01:00
Adam Rohdin 25a6b287e7 Fixed overflow bug and enabled sweepChunkSize to be set in assets 2023-03-02 14:55:26 +01:00
Alexander Bock 375e5c6561 Tracy Update (#2534)
* Update the Tracy repository
* Update submodules
2023-03-01 11:48:21 -07:00
Adam Rohdin 89cf05eb5f Changes based on PR feedback 2023-02-27 10:50:24 +01:00
Ylva Selling b8c27f1fee Sky browser: add the collection to the images that are sent to the gui so that we can search for the collections 2023-02-23 15:00:27 -05:00
Adam Rohdin 4e519f7a1d Fixed accidental change from Double to Int variable when definition was moved from local to instance. 2023-02-23 13:57:30 +01:00
Adam Rohdin 23cbfd47ee Updated comments and swapped a Boolean Flag for an early return 2023-02-22 15:11:22 +01:00
Adam Rohdin 1c40a62b7b Optimizes update function for RenderableTrailTrajectory and enables iterative calcuations for the trail vertices 2023-02-22 14:00:11 +01:00
Alexander Bock 561e9d7f22 Provide GUI names for Property Owners 2023-02-21 13:00:11 +01:00
Emma Broman 352c9dd5ec Touch module code cleanup (#2465)
* Remove unused feature that allowed us to "pick" nodes using touch (it didn't really work and had some nasty hardcoded and costly implementation). Fixes Touch interaction picking refactor #1041

* General refactoring of code and removing redundant code

* Make touch markers prettier (change default color and smoothen edges)

* Add module property to control which renderable types are "directly touchable"

* Add SGN property to control which individual nodes are "directly touchable" ("SupportsDirectInteraction")

* Fix stuttering when zooming in closer than the orbitalnavigator allows
2023-02-14 13:55:24 +01:00
Emma Broman 9d53b1f62d Add option to specify an offset distance for RenderableNodeLine (#2483) 2023-02-14 13:07:05 +01:00
Alexander Bock c242104baf Improve the reporting of specification errors 2023-02-13 22:16:23 +01:00
Ylva Selling e924b41bf0 Merge pull request #2359 from OpenSpace/issue/2313
Issue/2313: Ensure all nodes in a cluster loads the image collection in the sky browser
2023-02-13 12:55:08 -05:00
Ylva Selling 488dfe2603 Address comment on PR 2023-02-13 12:52:51 -05:00
Ylva Selling c03a9ae360 Address comments on PR: use Spacecraft instead of Spacecraft etc 2023-02-13 12:46:08 -05:00
Ylva Selling f9692f8f22 Change delimiter to correct character 2023-02-10 13:06:52 -05:00
Ylva Selling 0ee565027e Merge remote-tracking branch 'origin/master' into issue/2313
# Conflicts:
#	modules/skybrowser/skybrowsermodule_lua.inl
2023-02-10 13:06:38 -05:00
Ylva Selling fb3628b684 Merge remote-tracking branch 'origin/master' into issue/2409 2023-02-10 10:20:05 -05:00
Alexander Bock e37a9ed213 Linux compile fix 2023-02-10 08:59:40 +01:00
Ylva Selling 2f96e54c8e Merge remote-tracking branch 'origin/master' into issue/2403
# Conflicts:
#	modules/skybrowser/include/wwtcommunicator.h
#	modules/skybrowser/src/wwtcommunicator.cpp
2023-02-09 16:20:42 -05:00
Adam Rohdin 90250d7099 Fixed bug where default value for 'element' was seen as invalid. 2023-02-08 17:35:38 +01:00
Alexander Bock be122a5a73 No longer trigger an assert when binding a key to an action that does not exist (closes #2485) 2023-02-06 23:17:16 +01:00
Alexander Bock f7ff2e33da Properly report an error when an .info file is missing the identifier, preventing the addition of a layer without one (closes #2490) 2023-02-06 23:07:21 +01:00
Alexander Bock 79ad5776cc CMake cleanup (#2489)
* CMake Cleanup
* Warning suppression with CEF
* Use SGCT tinyxml in skybrowser for now
* Disable warnings about missing field initializers
2023-02-05 23:24:12 +01:00
Ylva Selling 938ae6ffe1 Merge remote-tracking branch 'origin/master' into issue/2403
# Conflicts:
#	ext/ghoul
2023-02-02 16:39:29 -05:00
Ylva Selling d7eec159fc Merge pull request #2426 from OpenSpace/issue/2425
Fix bug that channels in cluster don't set the field of view to the same value after animating
2023-02-02 16:17:06 -05:00
Emma Broman 7e94c4c284 Remove unintentional default value for skybrowser/exoplanet module enabled property (closes #2464) 2023-02-01 18:53:06 +01:00