Commit Graph

867 Commits

Author SHA1 Message Date
Joakim Kilby
0fbda9e7e2 fix issue with wireframe rendering of transparent models 2025-08-20 07:32:37 +02:00
Joakim Kilby
4eccc99c7e add option to override model rendered color 2025-05-08 15:28:51 +02:00
Joakim Kilby
98c8452f10 fixup after rebase 2024-09-02 12:44:44 +02:00
Joakim Kilby
d7885280f7 support model <-> model shadowing alongside globes 2024-08-30 10:42:47 +02:00
Joakim Kilby
a0c31d1b6a init/de-init depth map resources when castShadow is toggled
fixes an issue where only objects that declared they were casting
shadows in their asset file could cast shadows.
For all other objects they necessary resources were never created.
2024-08-30 10:42:47 +02:00
Joakim Kilby
694138663d check for existance of lightsources before renderings depthmaps 2024-08-30 10:42:47 +02:00
Joakim Kilby
1012841982 add FOV-mode to renderable prism 2024-08-30 10:42:47 +02:00
Joakim Kilby
e2d95019ec apply frustum size from dict 2024-08-30 10:42:46 +02:00
Joakim Kilby
0e15b4b6d3 add model self-shadowing via existing depth map 2024-08-30 10:42:46 +02:00
Joakim Kilby
8ab4b4db23 make specular power a property 2024-08-30 10:42:46 +02:00
Joakim Kilby
dbed4f3ddb calculate view frustum for shadow mapping automatically
based on model extents as defined by its bounding-radius
2024-08-30 10:42:46 +02:00
Joakim Kilby
78c4eb19f0 ensure that models that do not cast shadows are still rendered 2024-08-30 10:42:46 +02:00
Joakim Kilby
4b77b8d27d support multiple shadowers & addition/removal of shadowers 2024-08-30 10:42:46 +02:00
Joakim Kilby
2c2653fe33 revert face culling 2024-08-30 10:42:46 +02:00
Joakim Kilby
3b2bebb2ad render shadowmaps from greater distance to mimic sun 2024-08-30 10:42:46 +02:00
Joakim Kilby
fbf2a289d0 add shadow bias, cull away front-faces 2024-08-30 10:42:46 +02:00
Joakim Kilby
58d402fc67 use lightsource from model specification instead of (hardcoded) sun 2024-08-30 10:42:46 +02:00
Joakim Kilby
2402cbbdc1 swap to orthogonal projection
as it should be for directional lighting which is the case for the sun
2024-08-30 10:42:46 +02:00
Joakim Kilby
2fbced5b23 move depthmap rendering into renderablemodel class 2024-08-30 10:42:46 +02:00
Joakim Kilby
0020e12403 possibly correct depthmap from light's point of view 2024-08-30 10:42:46 +02:00
Joakim Kilby
2f95800428 add basic depth-map rendering of specified shadowers 2024-08-30 10:42:46 +02:00
Joakim Kilby
6eade9ba4f allow model caching to be bypassed 2024-08-30 10:42:46 +02:00
Joakim Kilby
3a63055324 enable wireframe rendering of models 2024-08-30 10:42:46 +02:00
Alexander Bock
423d409dc8 Always use the alpha blending independent of the renderbin (closes #3304)
It wasn't really clear why the check for the PreDeferredTransparent bin was in here in the first place
2024-08-22 14:00:51 +02:00
Alexander Bock
ca6c14e9b5 Make the SampleInterval for RenderableTrailTrajectory optional and use a sample per 2 days by default 2024-08-07 06:53:05 +02:00
Ylva Selling
952f177c54 UI updates (#3358)
* Remove events for scenegraphnodes and screenspacerenderables

* Add events for updating the property tree

* Remove duplicate function calls

* Update src/properties/propertyowner.cpp

Co-authored-by: Emma Broman <emma.broman@liu.se>

* Address PR comments and make helper functions with better comments

* Make uri function not return the identifier if the uri is not valid

* Rename fullyQualifiedIdentifier to uri

* Update gui hash

---------

Co-authored-by: Ylva Selling <ylva.selling@liu.se>
Co-authored-by: Emma Broman <emma.broman@liu.se>
2024-08-02 16:30:07 +02:00
Alexander Bock
aa99f9d6cb No longer enforce a scale of 1 for screenspacedashboards 2024-07-18 12:01:47 +02:00
Alexander Bock
065d73db64 Add non-main dashboard as a propertyowner for a ScreenSpaceDashboard 2024-07-15 18:54:49 +02:00
Alexander Bock
0707829c7b Reducing compiler warnings (#3341) 2024-06-28 14:16:06 +02:00
Alexander Bock
f04c088a4b Add the ability to specify dashboarditems for ScreenSpaceDashboard at construction time. Improve error messages and export DashboardItem documentation 2024-06-22 13:05:33 +02:00
Alexander Bock
02cc28f192 Generate the framebuffer for screenspace rendering without mipmapping as it handles transparency poorly 2024-06-22 09:13:13 +02:00
Emma Broman
6cb4a7efef Fix issue with texture not updating on property change for RenderablePointCloud
Fix issue with texture not being rendered when the texture file path is set during runtime
2024-06-18 13:47:35 +02:00
Alexander Bock
43645ce7a4 Fix existing assets; Make the goToGeo function without altitude in the profile work 2024-06-14 23:55:55 +02:00
Emma Broman
62b2a8c8c1 Fix renderable sphere example and add one for using local image (#3306)
* Fix renderable sphere example and add one for using local image
2024-06-13 10:43:54 +02:00
Alexander Bock
866aad2187 Global pass over the coding style 2024-06-12 14:51:25 +02:00
Alexander Bock
6edea5cae7 Apply the hue, value, saturation, and gamma values from the renderengine to screenspace renderables. Change the screenspace's own gamma value into an offset (#3293)
* Apply the hue, value, saturation, and gamma values from the renderengine to screenspace renderables.  Change the screenspace's own gamma value into an offset

* Make it clearer that the gamma correction is now an offset
2024-06-04 16:28:52 +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
542f35e4de Update ScreenSpaceRenderable documentation (#3227)
* Update screen space documentation

* Fix inconsistent "screen space" phrasing

* Rephrase according to code review

---------

Co-authored-by: Ylva Selling <ylva.selling@gmail.com>
Co-authored-by: Malin E <malin.ejdbo@gmail.com>
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2024-05-17 15:38:48 +02:00
Emma Broman
e745c40152 Update examples for RenderableNodeArrow and RenderablePlaneImageOnline (#3215)
* Update examples for `RenderableNodeArrow` and `RenderablePlaneImageOnline`


Co-authored-by: Ylva Selling <ylva.selling@gmail.com>
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2024-05-14 11:28:58 +02:00
Andreas Engberg
c2ea21b43c add listener on file texture changes 2024-05-13 15:55:02 +02:00
Malin E
09da94cf6b Add documentation and example for RenderableSphereImageOnline (#3185)
* Add a simple online sphere image example

* Add documentation for RenderableSphereImageOnline

* Address pull request comments

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2024-05-13 15:28:27 +02:00
Emma Broman
075f6c8f65 Properly fix useCaching for point cloud colormaps
Forgot the update function in 1092948518, oops
2024-05-02 13:56:48 +02:00
Emma Broman
436eb0d195 Update outdated renderable description 2024-05-02 11:14:45 +02:00
Emma Broman
1092948518 Make useCaching for point cloud also affect color map
Makes it so that changes can be done to the color map file without having to delete the cache, and decreases confusion about that one file is cached when the other isn't
2024-05-02 11:08:59 +02:00
Ylva Selling
7757ec7976 Merge pull request #3212 from OpenSpace/issue/2996
Issue/2996 - documentation engine rewrite
2024-04-30 16:11:13 +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
5c4c5b1f10 Correctly advance dashboarditem pen position before rendering instead of afterwards (closes #3067) 2024-04-24 19:56:25 +02:00
Alexander Bock
78b3b4fb2e Adding periods to the description texts 2024-04-23 22:33:17 +02:00
Emma Broman
f5d68cbd5e Issue/3070 - Outline/border to textured points (#3191)
* Add option for outline styles (round, square, bottom)
* Apply color map to point borders
2024-04-19 17:48:28 +02:00
Adam Rohdin
392a521423 Fix for a lot of trail related stuff (#3193)
Fixes following issues: #625 , #1067 , #1212 , #1472 , #2072 , #2235, #2964
- Trails in `renderableTrailTrajectory` now goes through the spacecraft when using `AccurateTrailPositions`.
- Trail fading controls have been improved for classes using the `renderableTrail` class.
-  `renderableOrbitalKepler` (asteroids/satellites) can now be rendered as both trails and points (or both at once). Solution implements similar functionality/controls as `renderablePointCloud`.
- Default setting for SweepChunking has been changed from `true` to `false` (iterative calculations of `renderableTrailTrajectory`).
- Some fixes related to missing points or off-by-one errors related to trail rendering
2024-04-19 16:51:17 +02:00