Commit Graph

3857 Commits

Author SHA1 Message Date
Alexander Bock 01d7a57eef Add GlobeTranslation Documentation to exported documentations (closes #1566) 2021-04-21 09:34:20 +02:00
Emma Broman 91387d8401 ListProperties and SelectionProperty (#1558)
* Reimplement stringlistproperty with a listproperty parent class

* Add string list property tests and structure test files

* Reimplement SelectionProperty and add tests

* Some TemplateProperty documentation updates

* Read full constellation name and not just first word for ConstallationSelection

* Remove support for setting property value from string (unused)

* Add IntListProperty, DoubleListProperty

* Bug fix: SetProperty topic now support empty json objects

* Imgui renderings for list properties and pass SelectionProperty  info to WebGui
2021-04-19 16:10:36 +02:00
Alexander Bock b00fcb78df Enable setting of opacity for RenderableGlobe (closes #1449) 2021-04-16 17:31:55 +02:00
Emma Broman fdee3d4faf Prevent setting zero line width from UI 2021-04-16 16:14:02 +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
Emma Broman 923ad3f8ce Fix misspelled 'codegen' 2021-04-09 13:58:43 +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 797ddf7daf Fix some warnings on AppleClang 2021-03-29 14:58:19 +02:00
Alexander Bock e88650f22c Tiny coding style fixups 2021-03-27 23:49:02 +01:00
Alexander Bock a6bb8cdecb Split DashboardTextItem from DashboardItem 2021-03-24 17:46:13 +01:00
Emma Broman 0ea0e781da Prevent crash when reloading renderable that only has labels and no data
Occurred when unchecking and rechecking the "Draw elements" property for example the "Eclipltic Sphere Labels"
2021-03-23 11:40:34 +01:00
Alexander Bock e2c1414ba6 Update to newest codegen, replace std::monostate with ghoul::Dictionary 2021-03-17 21:26:57 +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
Malin E 6a59e009ad Merge pull request #1517 from OpenSpace/issue/1516
Issue 1516
2021-03-03 10:06:39 +01:00
Malin Ejdbo 4fb8a36952 Merge branch 'master' into feature/multitexturing
* Resolve conflicts
2021-03-02 15:49:39 +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 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 63fa95504c Expose ImGui external to other modules
And update demo function name to match new version
2021-03-02 08:48:25 +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 157ffff25b Update imgui external 2021-03-01 13:24:28 +01:00
GPayne 35b96967af Switched kameleon module ref to commit with linux build fixes 2021-02-26 16:07:14 -07:00
Emma Broman a901594907 Generate docs for RenderablePlaneImages 2021-02-25 13:47:49 +01:00
Emma Broman b07320d1da Add missing documentation for NonUniformStaticScale 2021-02-23 10:12:26 +01:00
Jonathas Costa dd40cf8198 Merge branch 'master' into issue/1099 2021-02-22 11:51:30 -05:00
Emma Broman b381bd83d3 Add module property for exoplanet habitable zone opacity 2021-02-22 09:38:59 +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
Alexander Bock cb5929972a Don't call RenderableOrbitalKeplers's initializeGL only once 2021-02-18 22:42:17 +01: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
Gene Payne f4e7d01aa7 Fixes for Issue #1409 (#1501)
* Fixed renderablesmallbody selective rendering props to accept asset file settings

* Set to only show selective rendering log info msg if render size is 1

* Mirrored selective rendering behavior from smallbody to satellites

* Added property coupling of values to satellite/asteroid render settings for size, start index, upperlimit

* Fix for selective rendering with synced render settings

* Removed redundant property definitions for codegen compliance

* Improvements to documentation and handling values spec'd in asset file

* Fix for satellites: selective rendering settings specified from assets
2021-02-17 12:41:05 -07:00
Alexander Bock 6837bad5b0 Tiny cleanups 2021-02-17 16:18:08 +01:00
Malin Ejdbo 4b6a61354d Add deprecation warning when using several model files for one model 2021-02-17 10:03:54 +01:00
Alexander Bock dfa223abef Make use of std::filesystem::path and cleanup specification error messages 2021-02-13 12:00:26 +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
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
Alexander Bock 88122d1dbb Adapt to new Ghoul; fix previously undetected errors in uniform setting 2021-02-11 14:44:13 +01:00
Emma Broman 9eb9095c12 Tiny cleanup 2021-02-10 10:54:33 +01:00
Malin Ejdbo c3e96c2ec5 Further address OpenSpace PR comments 2021-02-09 17:46:52 +01:00
Emma Broman 39d5be5b17 Small habitable zone updates
* Show optimistic boundaries per default
* Shorten down interval UI name to make tooltip visible
* Increase interval for Kopparapu's formula
2021-02-09 15:10:59 +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
Malin Ejdbo 51f02dc738 Small fix and update ghoul 2021-02-08 13:32:38 +01:00
Emma Broman 51b12d3158 On second thought, use the default formatting since its precision is sufficient 2021-02-08 12:40:20 +01:00
Emma Broman 26e42981f1 Always keep double precision when sending number in Lua script over websocket (closes #1467) 2021-02-08 11:03:57 +01:00
Malin Ejdbo f65eaaba4d Address OpenSpace PR comments 2021-02-05 14:14:13 +01:00