Commit Graph

302 Commits

Author SHA1 Message Date
Alexander Bock 096363fd06 Make constructors explicit 2025-02-05 23:22:32 +01:00
Alexander Bock 820e90eab4 Happy new year 2025-01-14 16:21:08 +01:00
Alexander Bock f0342e43e8 Adapting to SGCT changes (#3488) 2025-01-14 14:17:50 +01:00
Alexander Bock c4c82483e0 Update copyright header in CMakeLists files 2024-07-31 10:57:10 +02:00
Emma Broman eb1cfec7bd Renderable property info walkthrough/cleanup (#3226)
A passover of all the Parameters descriptions and PropertyInfo descriptions of the renderables in the code base to make then more consistently and concisely formatted. Also fixed some small issues and added or updated descriptions.

* Start rephrasing propertyinfos for more consistency

* Update eclipse cone propertyinfos

* Update `RenderableFov` property infos and group colors in UI

* `RenderableGalaxy` and `RenderableGlobe`

* Update more descriptions

* Moore descriptions

* Update docs for `RenderableShadowCylinder` and add properties

* `RenderableSkyTarget`, and spheres (`ImageOnline` and `ImageLocal`)

* `RnederableSphericalGrid`, and update line width info of other types, for consistency

* `RenderableStars` and `RenderableTimeVaryingSphere`

* Update more propertyinfos

* Fix inconsistent mentioning of true/false

* change some phrasings for increased consistency

* Update Renderbin description to include Sticker bin and remove extra property

* Rename `OutlineWeight` -> `OutlineWidth`

* Extend description about enable depth test for models

* Clarify what relative values mean for `RenderableNodeArrow`

* Elaborate on `RenderableLabel` size property

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
Co-authored-by: Ylva Selling <ylva.selling@gmail.com>
Co-authored-by: Malin E <malin.ejdbo@gmail.com>
2024-05-20 09:24:40 +02:00
Emma Broman ce765c6f72 Fix faulty computation of sun position in atmosphere (#3250) 2024-05-17 10:36:23 +02:00
Alexander Bock 203cff04cc Make use of the new uniform cache method that uses the variable names as uniform names (#3217) 2024-04-30 08:12:33 +02:00
Alexander Bock 78b3b4fb2e Adding periods to the description texts 2024-04-23 22:33:17 +02:00
Alexander Bock 9558f2bcbb Add the ability to specifiy local Sun position for the RenderableGlobe and RenderableAtmosphere (#3137)
* Add the ability to specifiy local Sun position for the RenderableGlobe and RenderableAtmosphere

Note that for planets with atmospheres, the SunNode has to be specified for _both_ the globe and the atmosphere separately

 - Closes #1745
 - Closes #2243
2024-04-04 16:16:01 +02:00
Alexander Bock 3ba346a227 Remove fmt::format and replace with std::format 2024-03-24 20:19:14 +01:00
Alexander Bock 2759c00e4b Pass through the code to address clang-tidy linting (#3083) 2024-03-17 00:58:50 +01:00
Alexander Bock fff6f8a627 General pass for code cleanup 2024-03-08 00:36:54 +01:00
Alexander Bock 815dfe11f1 Add the ability to specify properties and requiring confirmation (#3006) 2024-02-15 15:56:19 +09:00
Alexander Bock 6e29d898cf Update copyright header 2024-02-06 15:53:24 +01:00
Alexander Bock 3dadf9c5fa Only create RingComponents and ShadowComponents when they are actually needed 2023-12-01 09:35:38 +01:00
Micah Acinapura abee11f973 changed shader variables from const for mac compilation (#2915) 2023-10-09 19:38:49 -04:00
Alexander Bock e7cad060c2 Adapt to coding style 2023-08-11 20:58:41 +02:00
Alexander Bock 59d51a365f Prevent crash when no shadow caster is available 2023-07-31 13:39:35 +02:00
Alexander Bock bef10aca10 Fix layering of the Sun/Moon during an eclipse 2023-07-12 11:16:37 +02:00
Alexander Bock 61a69490fb Add the ability to specify the angular size of the Sun in the atmosphere 2023-07-12 10:49:50 +02:00
Ylva Selling e89bef0203 Address comments on PR and make code more readable 2023-06-13 16:10:06 -04:00
Ylva Selling 08523695dd Fix crash from dereferencing a null ptr 2023-06-12 11:41:19 -04:00
Ylva Selling 81a54927d0 Fix compilation issue 2023-06-12 09:41:13 -04:00
Ylva Selling 52e316b03d Move calculate dimming coefficient to a function and also include calculations for eclipse shadows 2023-06-09 16:21:12 -04:00
Ylva Selling 96823b848f Add function that calculates eclipse shadows 2023-06-09 16:18:46 -04:00
Alexander Bock 5abbe9dcd9 Add the ability to fade the atmosphere (closes #2700) 2023-05-17 11:00:39 +02:00
Alexander Bock ca916877b2 Adapt the visibility settings for all properties 2023-04-15 09:33:31 +02:00
Alexander Bock 80e2aaf564 Remove whitespaces at the end of files, ' and - characters 2023-04-05 16:58:45 +02:00
Alexander Bock 375e5c6561 Tracy Update (#2534)
* Update the Tracy repository
* Update submodules
2023-03-01 11:48:21 -07: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
Alexander Bock 4f4764209f Happy new year 2023-01-02 11:19:33 +01:00
Alexander Bock 44e5b17ec9 Global pass over the code to remove trailing spaces 2022-11-22 21:06:52 +01:00
Alexander Bock 664eb60f4f Increase the compile times by including more precompiled headers (#2217)
* Define WIN32_LEAN_AND_MEAN and VC_EXTRALEAN globally
* Use forked version of TUIO, some more work on precompiled headers
* Improvements for the Kameleon module
2022-08-26 16:32:21 +02:00
Alexander Bock 163ac4dcef Cleanup of mostly asset files
- Fixes for all files
 - constexpr cleanup
 - Cosmetic changes
 - Remove punctuation from the end of messages
2022-07-28 17:21:59 +02:00
Alexander Bock c1252902c7 More Code Cleanup (#2192)
* Harmonizing ( and ) in function calls
* static const -> constexpr
* Fix compile issue
* Unify shader tab size
* Add _fs and _vs to shaders
* Harmonize spacing
2022-07-26 11:22:41 +02:00
Alexander Bock 9cc4c595a8 Code Cleanup (#2191)
* constexpr const -> constexpr
* const char* -> std::string_view
2022-07-25 15:57:45 +02:00
Ylva Selling 84d5414d97 Fix comments on PR 2022-07-21 12:03:47 -04:00
Ylva Selling b6d6633e95 Add fading functionality to renderables and set the fading to true for the stars and the milky way sphere 2022-07-20 15:15:02 -04:00
Alexander Bock 9b1143f02f Ubuntu 22.04 and GCC11 fixes (#2163)
* Update CEF version
* Update Ghoul
* Update SGCT
* Update codegen
* Remove warnings happening on Ubuntu 22.04 with GCC 11
* AppleClang warning fixes
* Compile fix for Ubuntu and MacOS
* Add Qt 6.2.3 to the CMAKE_PREFIX_PATH
2022-06-28 00:46:01 +02:00
Alexander Bock 1833894264 Only print the error for missing shadow caster once (closes #1594) 2022-03-18 14:24:36 +01:00
Alexander Bock 30212b6768 Adapt to new auto coding style 2022-02-10 15:20:21 +01:00
Alexander Bock 162141f2db Correctly expose missing documentation from a bunch of classes (closes #1856) 2022-01-26 23:41:48 +01:00
Alexander Bock d7d279ea16 Happy new year 2022-01-01 12:32:55 +01:00
Alexander Bock 4a860fb01d Some code facelifting 2021-10-14 10:31:46 +02:00
Alexander Bock c96764aa1c Remove Clang warnings 2021-07-30 14:56:55 +02:00
Alexander Bock 817621617e Check for nan in camera setting (closes #1686), add tracy zones to atmosphere rendering 2021-07-23 14:17:16 +02:00
Alexander Bock d38968a5ad Don't accidentally delete someone elses VBO and VAO (closes #1694) 2021-07-23 11:51:48 +02:00
Alexander Bock e994e900ee Feature/intel atmosphere (#1691)
* Add object names to atmosphere textures
* Fix for rendering atmospheres on Intel chips
* General cleanup of the atmosphere rendering code to make a it more modular
2021-07-22 20:42:21 +02:00
Alexander Bock 20aa307ece Feature/sun position atmosphere (#1673)
* General atmosphere cleanup
* Make sun projection originate from Sun position instead of SSB (closes #1695)
2021-07-01 15:27:09 +02:00
Alexander Bock 92c4837c6c Correctly pass in the irradianceFactor into the inscatter radiance for atmosphere (closes #1660) 2021-06-28 15:47:18 +02:00