Commit Graph

1169 Commits

Author SHA1 Message Date
Emma Broman 7b966b9378 Give globes an interaction sphere 2021-04-29 15:23:34 +02:00
Emma Broman 8a30dc570e Add Logarithmic sliders and Color picker (#1564)
* Pass ViewOptions meta data to WebUi

* Add Color ViewOption

* Add Logarithmic ViewOption

* Update gui hash to get slider and color picker UI features
2021-04-27 09:24:36 +02:00
Alexander Bock 2aa540a112 Feature/interactionsphere (#1561)
* Add ability to render the bounding sphere as a debug option
* Separate boundingsphere and interactionspheres
* Correctly compute BoundingSpheres for more renderables (RenderablePlanesCloud, RenderableOrbitalKepler)
2021-04-26 13:13:36 +02:00
Alexander Bock 01d7a57eef Add GlobeTranslation Documentation to exported documentations (closes #1566) 2021-04-21 09:34:20 +02:00
Alexander Bock b00fcb78df Enable setting of opacity for RenderableGlobe (closes #1449) 2021-04-16 17:31:55 +02:00
Alexander Bock e75fe42943 Enable support for single double radius in SizeReferenceTileProvider (closes #1562) 2021-04-16 12:49:44 +02:00
Alexander Bock d32a09ba80 Feature/strict lua (#1556)
Make all LuaState strict to check whether uninitialized variables are used
Adapt the existing assets to work with the strict state
2021-04-15 13:01:00 +02:00
Alexander Bock d9a1a0233b Remove apple clang warnings 2021-03-30 22:12:53 +02:00
Alexander Bock 612b9bbc7f Moving more documentation to use codegen (#1549)
- Make use of more codegen in more classes
- Fix verifier for Color4Verifier
2021-03-29 21:50:26 +02:00
Alexander Bock e88650f22c Tiny coding style fixups 2021-03-27 23:49:02 +01:00
Alexander Bock e2c1414ba6 Update to newest codegen, replace std::monostate with ghoul::Dictionary 2021-03-17 21:26:57 +01:00
Malin Ejdbo f7a1a24acc Only add eclipse properties if globe has data for eclipse 2021-03-02 11:23:23 +01:00
Emma Broman 29e77534c7 Make use of new verifiers (Color and File) (#1510)
* Use codegen for renderable discs

* Utilize color and file verifier

* Add missing property assignment in exoplanets module
2021-03-02 08:11:49 +01:00
Alexander Bock 8ae817f233 Fix coding style issues 2021-02-19 13:48:23 +01:00
Jonathas Costa ea42de503a Removed test color left by mistake. 2021-02-18 17:37:50 -05:00
Jonathas Costa 10634a5a0e Merge branch 'master' into issue/1099 2021-02-18 11:53:57 -05:00
Jonathas Costa c21752f93b Fixed the forward/backward scattering effects. 2021-02-17 21:31:42 -05:00
Jonathas Costa dfd60dfeec Changed to full texture control as Carter wanted. 2021-02-17 20:53:51 -05:00
Jonathas Costa 0307d94983 Added old rendering method for rings texture as an option. 2021-02-17 16:02:14 -05:00
Emma Broman 9eb9095c12 Tiny cleanup 2021-02-10 10:54:33 +01:00
Alexander Bock 6d821d4f91 Feature/codegen (#1480)
* Add the ability to automatically generate code to extract values out of a Dictionary (see https://github.com/openspace/codegen for more information on how to use this)
* Applied this technique to a large number of cases in the codebase
* Don't add _codegen files to the repository

Co-authored-by: Emma Broman <emma.broman@liu.se>
2021-02-09 09:12:43 +01:00
Alexander Bock 29fe22b912 Fix small spelling error in variable definition 2021-02-01 00:04:28 +01:00
Gene Payne 06787e4f77 Globebrowsing Fade-In/Out Fix and Assets Updates (Issue #1209) (#1476)
* Fixed fade out algorithm to use correct distance from globe center

* Updated planet labels in asset files to match fixed fade-out algorithm

* Changed variable name and removed mistakenly-added file
2021-01-29 10:17:13 -07:00
Jonathas Costa b64b756717 Changed how color filter acts. 2021-01-26 16:35:59 -05:00
Jonathas Costa 2e5e62b3dd Added Jon's color changes for testing. 2021-01-17 21:54:17 -05:00
Jonathas Costa 9c82168235 Added backward and forward scattering interpolation by view position. Added unlit texture and corrected overall bright. 2021-01-13 15:48:51 -05:00
Jonathas Costa 4e9fb89cd3 Merge branch 'master' into issue/1099 2021-01-12 14:20:26 -05:00
Jonathas Costa 65803e134d Issue/1447 (#1451)
* Fixed missing calls to OpenGL cache system.
2021-01-12 10:28:49 +01:00
Jonathas Costa 1c3e630506 Adding new textures and color calculation for Saturn's Rings. 2021-01-11 23:11:08 -05:00
Alexander Bock 2a69758eef Apply simplification of shadow sources and casters to RenderableGlobe 2021-01-03 22:10:42 +01:00
Alexander Bock 29a76c7d33 Coding style pass on shader code 2021-01-02 21:11:13 +01:00
Alexander Bock 7004c02b86 Happy new year 2021-01-02 15:26:51 +01:00
Alexander Bock 067c0f4b27 Introduction of new Dictionary class (#1446)
* Adapting to introduction of new Dictionary class in Ghoul
 * Mainly replacing usage of float instead of doubles as expected
 * Adjust to the lack of the hasKeyAndValue function
2021-01-02 15:07:11 +01:00
Alexander Bock ad8af3ffeb Feature/CMake (#1443)
General CMake cleanup/overhaul
* Enable precompiled headers for all projects
* Move specifications itto separate CMakeLists files
  * Add openspace-core as a subdirectory
  * Move handle_modules functionality into modules/CMakeLists.txt
  * Move handleapplications logic into apps/CMakeLists.txt
* Introduce openspace-module-collection interface library to simplify inclusion of modules in applications
* Turn module initialization into a two-step process to adapt to the new minimal dependency scenario
* Compile time speedup
  * Remove circular dependencies between modules and core preventing multithreaded compilation on MSVC
  * Build Spice multithreaded and as static library
  * Remove dependency from core to module-webbrowser
  * Remove unused dependency from kameleon
  * Remove additional unnecessary dependencies
  * Cleanup volume/kameleon/kameleonvolume modules
  * Fix visibility issues. Restrict include paths
  * Compile kameleon in parallel
* Other cleanup
  * Only copy CEF files from one target (hard-coded to OpenSpace right now)
  * Remove unused instrumentation code
  * Remove the ability to render AABB for globes as it caused a circular dependency between GlobeBrowsing and Debugging
  * Removing compiler and cppcheck warnings
  * Turn almost all includes into non-system includes
  * Don't warn on deprecrated copy
* Updated submodules
2020-12-28 18:26:57 +01:00
Jonathas Costa c13b211add Fixed issue 1432: globebrowsing and shadow mapping. (#1433) 2020-12-09 18:36:23 +01:00
Alexander Bock 184d940944 A bit more code cleanup 2020-12-08 16:37:25 +01:00
Micah Acinapura 3db2bf47ea Update for Jupiter moon shadows (#1426) 2020-12-08 16:29:49 +01:00
Alexander Bock d95c6c4a47 Removing Clang on MacOS warnings. No longer create external control that doesn't work anymore 2020-12-08 00:24:24 +01:00
Alexander Bock 86bb19d81c Feature/warnings (#1425)
* Remove MSVC, GCC, Clang compiler warnings
* Remove cppcheck warnings
2020-12-07 23:43:05 +01:00
Alexander Bock 51470c0a0d Issue/1355 (#1424)
* Move glfw init after macOS window is ready
* MacOS fixes for BigSur
* Compile fixs
* Rename hirise.asset since linux filenames are case-sensitive
* Modified globals DataStorage method to make Linux and Mac happy
* Switched to unsecure http URLs for satellites due to httprequest problem
* Keep the QApplication around on Mac because of some reason otherwise the keyboard handler crashes
* Add comment explaining the madness
* Apply same techniques to the globalscallback file

Co-authored-by: Micah Acinapura <micahnyc@gmail.com>
Co-authored-by: Gene Payne <payne.gene@gmail.com>
2020-12-07 23:41:20 +01:00
Jonathas Costa 3d1bd9122e Added checking to avoiding compile the globebrowsing shaders with accurate normals support when no height information is available. (#1422) 2020-12-05 23:23:25 +01:00
Alexander Bock 60e3ed2170 General pass for coding style 2020-11-28 22:31:06 +01:00
Alexander Bock 88cab58f09 Add the ability to toggle planets in the customization/globebrowsing.asset (closes #1392)
Improve the handling of reading info files that have error messages
2020-11-18 21:43:14 +01:00
Alexander Bock efffc25ce0 Feature/globals handling (#1352)
* Cleaner handling of global state
* Prevent Lua memory corruption (closes #982)
* Initialize glfw first thing to prevent weird joystick loading bug during startup
2020-10-21 22:30:05 +02:00
Alexander Bock 0779c54a07 Provide correct error message if the ProfileName is empty
Don't include Voyager and Pioneer in the base asset as it takes too long to load
Ensure that the webgui asset can load without the dashboard
Fix scripting issue in Rosetta scene with trails
Fix issue with Dashboards that would actually render one line too far down causing trouble with multiline text
Set the render option for renderablebillboards to view direction by default as the normal mode has some issues (see #1342)
Set more sensible maximum value for RenderablePlanesCloud
Correctly show the number of significant digits in the altitude
Replace setPropertyValue with setPropertyValueSingle when clicking on the friction "buttons" on screen
Add a new script function hasProperty to check whether a property exits
2020-10-17 20:10:15 +02:00
Jonathas Costa c7f239d3dc Fixed issue 1323. 2020-10-16 16:56:51 -04:00
Jonathas Costa 522072c57f Removed unused ignore. 2020-10-15 16:53:45 -04:00
Jonathas Costa cde1fa8b5d Temporally fixed attribute location error for NightLayers layer. 2020-10-15 16:50:27 -04:00
Alexander Bock 0cd38217d4 Prevent crash when removing a globebrowsing layer 2020-10-10 17:32:15 +02:00
Alexander Bock 96ed6cfb70 Merge branch 'master' into feature/asset-meta-update 2020-10-10 12:01:56 +02:00