Commit Graph

3023 Commits

Author SHA1 Message Date
Malin E
9acbdb2446 Merge pull request #1504 from OpenSpace/issue/1466
Issue/1466
2021-02-18 09:03:35 +01:00
Alexander Bock
6837bad5b0 Tiny cleanups 2021-02-17 16:18:08 +01:00
Malin Ejdbo
d3a04825bb Merge branch 'master' into issue/1466 2021-02-17 14:25:55 +01:00
Malin Ejdbo
9372382e78 Add possibility to have * at the end and tags + * 2021-02-17 14:16:10 +01:00
Malin Ejdbo
9143316111 Match property name better to avoid false matches 2021-02-16 09:28:02 +01:00
Malin Ejdbo
edff4b537c Add warning if regex contains two or more wildcards
* Find that replaces std::regex currently does not support two or more
wildcards in an expression
2021-02-15 14:30:25 +01:00
Malin Ejdbo
ace8df0692 Do not miss matches when searching with regex 2021-02-15 14:28:23 +01:00
Alexander Bock
da31d1e375 Properly handle SpecificationErrors when initializing Modules (closes #1502) 2021-02-15 11:20:27 +01:00
Alexander Bock
23f24c50fe Update Ghoul and remove explicit generation of ConsoleLog 2021-02-13 18:33:28 +01:00
Alexander Bock
dfa223abef Make use of std::filesystem::path and cleanup specification error messages 2021-02-13 12:00:26 +01:00
Alexander Bock
e7bcb774ee Add new verifiers for files and directories. Update codegen to be able to create these 2021-02-13 10:44:21 +01:00
Malin Ejdbo
f34805beeb Remove false matches while matching whole string 2021-02-12 16:53:04 +01:00
Alexander Bock
afd484044d Better support for colors in dictionaries (closes #1489)
- Add a new Color3Verifier and Color4Verifier that checks components to be in [0,1]
 - Update codegen to add a new attribute [[codegen::color()]] to mark a vec3/vec4 to be a color value
 - Update RenderableTrail to use the new verion
2021-02-12 12:59:00 +01:00
Malin Ejdbo
5772fc621c Improve find that replace regex
* Enable * in the begining of string

* Enable search without *
2021-02-12 11:23:45 +01:00
Malin Ejdbo
e70ba00757 Remove regex from scene_lua.inl
* Replace with find functions
2021-02-12 09:19:14 +01:00
Emma Broman
11e5bc36ab Prevent exception when querying renderable of non-existing SGN 2021-02-11 16:24:36 +01:00
Alexander Bock
88122d1dbb Adapt to new Ghoul; fix previously undetected errors in uniform setting 2021-02-11 14:44:13 +01:00
Alexander Bock
548d673e8b Add drag and drop support for images and assets (#1497) 2021-02-11 13:43:36 +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
3f63f92128 Add test cases for the create single color image lua function 2021-02-04 13:25:17 +01:00
Emma Broman
91612f4bfd Merge pull request #1468 from OpenSpace/issue/1438
Add habitable zone for our Sun and some useful generic classes
2021-02-03 08:39:12 +01:00
Emma Broman
0b9b42e0bf Rename single color image function 2021-02-03 08:33:55 +01:00
Alexander Bock
c8fc369fb1 Fixed issue preventing the rendering of color properties 2021-02-01 13:55:53 +01:00
Alexander Bock
e50ca7aded Try a fix against random crashes at startup when loading configuration 2021-02-01 13:31:28 +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
08e941d6d9 Avoid adding too many delta time step keybindings (closes #1445) 2021-01-27 11:02:02 +01:00
Emma Broman
e90b52af93 Add wrapping mode to texture component 2021-01-26 15:09:24 +01:00
Emma Broman
2ae5a16697 Add option to purge texture from RAM after gpu upload 2021-01-26 15:09:22 +01:00
Emma Broman
6380e5b307 Change plane size to radius rather than diameter 2021-01-26 15:09:22 +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
Jonathas Costa
65803e134d Issue/1447 (#1451)
* Fixed missing calls to OpenGL cache system.
2021-01-12 10:28:49 +01:00
Emma Broman
9dc2802b7c Adapt to new Dictionary class 2021-01-07 11:01:32 +01:00
Emma Broman
4834851320 Merge branch 'master' into issue/1395 and resolve conflict 2021-01-07 11:01:20 +01:00
Alexander Bock
3d74d6051e Remove Dictionary use in script scheduling with struct 2021-01-02 23:24:15 +01:00
Alexander Bock
439808e259 Remove glm_cols and glm_rows function calls in favor of built-in GLM functions 2021-01-02 23:04:33 +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
7bf7a25401 Updated submodules (#1444)
* Update submodules
 - Ghoul
   - assimp (5.0.0 -> 5.0.1)
   - catch2 (2.11.1 -> 2.13.3)
   - fmt (7.0.3 -> 7.1.3)
   - freetype2 (2.10.1 -> 2.10.4)
   - glbinding (3.1 -> 3.2)
   - glm (0.9.9.5 -> 0.9.9.8)
   - websocketpp (0.7.x -> 0.8.2)
 - SGCT
   - fmt (7.0.3 -> 7.1.3)
   - freetype (2.9.1 -> 2.10.4)
   - GLM (0.9.9.6 -> 0.9.9.8)
* Update to new include external definition
* Remove warning about no eof newline
2020-12-29 13:44:57 +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
e525c55ecf Update data files and generate habitable zone texture on demand 2020-12-14 18:46:28 +01:00
Alexander Bock
778b4e61b3 Revert "Better handle interpolation when setting interpolation time to 0"
This reverts commit 8cf5f96392.
2020-12-11 12:30:05 +01:00
Micah Acinapura
61b7c10d3a removing fxaa disable on macos 2020-12-09 17:43:21 -05:00
Alexander Bock
eb69d2219a Restructure DashboardItems
- Add a new class DashboardTextItem that is a DashboardItem that can render text with font
2020-12-09 00:44:25 +01:00
Alexander Bock
8d3bf03db0 Some work on DashboardItems
- Add new DashboardItemText that displays a static text on screen (closes #1423)
 - Add the ability to change the format string to the DashboardItemDate, DashboardItemDistance, and DashboardItemSimulationIncrement
2020-12-08 23:44:24 +01:00
Alexander Bock
184d940944 A bit more code cleanup 2020-12-08 16:37:25 +01:00
Micah Acinapura
e2da387473 added spice frame info functions to spice manager (#1427)
* Added spice frame info functions to spice manager
2020-12-08 16:19:07 +01:00