Commit Graph

159 Commits

Author SHA1 Message Date
Alexander Bock 139d2c6c6d Apply more codegen checks (#1579)
* Apply more codegen checks
2021-05-08 00:44:23 +02:00
Alexander Bock e88650f22c Tiny coding style fixups 2021-03-27 23:49:02 +01:00
Emma Broman 20519d007b Remove hardcoded path to B-V colormap (#1531)
Also prevent future problems in reading the file (e.g. if number of lines of comments would change)
2021-03-15 13:22:41 +01:00
Emma Broman 97144df4da Add a colored glare to exoplanet stars (#1511)
* Add possibility to multiply color to an image plane

* Add a colored glare to exoplanet stars (issue #1305)
2021-03-02 09:30:03 +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
Emma Broman b381bd83d3 Add module property for exoplanet habitable zone opacity 2021-02-22 09:38:59 +01:00
Emma Broman e21edaa13e Expose exoplanet creation settings to user as module properties (#1499)
* Expose exoplanet creation settings to user as module properties

* Set default textures from asset to avoid explicit paths to sync folder
2021-02-12 14:32:37 +01:00
Emma Broman f9e712a8e7 Supress a warning in exoplanets task 2021-02-09 13:56:42 +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
Emma Broman f2eb81a450 Merge branch 'master' into issue/1438 2021-02-01 13:16:18 +01:00
Emma Broman ef091a1044 Adress review comments 2021-02-01 11:01:14 +01:00
Emma Broman 54c5b052a5 Update disc and habitable zone textures 2021-01-29 13:14:40 +01:00
Emma Broman dc067e0d5f Add 1 AU size comparison ring for exoplanet systems (closes #1413) 2021-01-28 11:31:26 +01:00
Emma Broman f7e1d48d83 Solve interpolation issue at egde of texture (closes issue #1430) 2021-01-26 15:09:24 +01:00
Emma Broman 3fcc02d0b5 Update habitable zone textures 2021-01-26 15:09:24 +01:00
Emma Broman e90b52af93 Add wrapping mode to texture component 2021-01-26 15:09:24 +01:00
Emma Broman 968d0eea64 Move habitable zone renderable to space module 2021-01-26 15:09:23 +01:00
Emma Broman 6380e5b307 Change plane size to radius rather than diameter 2021-01-26 15:09:22 +01:00
Emma Broman fd835688b5 Add a habitable zone renderable 2021-01-26 15:09:15 +01:00
Emma Broman 37aa7c6ab4 Tiny cleanup 2021-01-26 15:08:38 +01:00
Emma Broman 72ebeb7f6f Add generic texture component for renderables 2021-01-26 15:08:37 +01:00
Emma Broman c075dbcdeb Add simple plane geometry class 2021-01-26 15:08:37 +01:00
Emma Broman b2c5e334f8 Merge pull request #1436 from OpenSpace/issue/1395
Add habitable zone for exoplanet systems (#1436)

* add lumosity and temperature data for the stars
* add Lua function to generate a cached 1 pixel texture on demand
* minor updates to RenderableOrbitDisc to make it more intuitive. Size is now the semi-major axis.

closes #1395
2021-01-26 14:48:11 +01:00
Emma Broman f98730ef25 Add missing documentation 2021-01-11 11:04:26 +01:00
Emma Broman 4834851320 Merge branch 'master' into issue/1395 and resolve conflict 2021-01-07 11:01:20 +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
Emma Broman 4370b26a68 Address review comments 2020-12-18 13:55:41 +01:00
Emma Broman a79363fdd8 Add habitable zone description 2020-12-15 09:21:21 +01:00
Emma Broman e525c55ecf Update data files and generate habitable zone texture on demand 2020-12-14 18:46:28 +01:00
Emma Broman 9898714478 Update boundary cases for habitable zone 2020-12-14 10:53:46 +01:00
Emma Broman 92085847f2 Try to make RenderableOrbitDisc more intuitive
* The size now matches the semi-major axis
* Avoid re-setting size value in constructor
* Avoid inconsistent units for offsets and size (previously AU and meter)
2020-12-14 10:53:46 +01:00
Emma Broman 05651d1aa3 Add habitable zone representation for exoplanet systems 2020-12-14 10:53:46 +01:00
Emma Broman 51869784fd Add some additional data about the star 2020-12-14 10:53:46 +01:00
Emma Broman 37761dde2a Avoid potential problems with non initialized nan values 2020-12-11 11:29:48 +01:00
Emma Broman 63160768d5 Exoplanets cleanup (#1428)
* Remove name conversion to match speck file
 * Instead update the speck file so that the names are consistent between files
 * Tiny cleanup
 * Enable visualization of systems with a subset of planets missing data
 * Prevent overriding star information with non valid data
2020-12-08 20:55:10 +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 60e3ed2170 General pass for coding style 2020-11-28 22:31:06 +01:00
Emma Broman f7cd107744 Add 'no-data' representation of exoplanet host star 2020-11-20 19:41:39 +01:00
Emma Broman 929f5e65c6 Avoid errors caused by dots in exoplanet identifiers 2020-11-18 09:33:23 +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
Emma Broman 6b563e0dbc Add forgotten return statement 2020-10-21 14:00:42 +02:00
Emma Broman d31b20decf Adapt disc shader to handle asymmetric uncertainty intervals 2020-10-16 17:06:13 +02:00
Emma Broman 2699eb1d71 Avoid problems with apostrophes in star names 2020-10-16 13:29:39 +02:00
Emma Broman f4628cd296 Don't list systems where there is not enough data 2020-10-16 09:34:55 +02:00
Emma Broman 98ef020c4a Clean up some headers 2020-10-16 08:53:12 +02:00
Emma Broman 11425dfdb7 Replace unused system rotation computation with the one that is actually used 2020-10-16 08:53:12 +02:00
Emma Broman 6b25489819 Compute valid angles for KeplerTranslation 2020-10-16 08:53:12 +02:00