Commit Graph

5891 Commits

Author SHA1 Message Date
Joakim Kilby 1012841982 add FOV-mode to renderable prism 2024-08-30 10:42:47 +02:00
Joakim Kilby 6723eb0184 ensure last point is included in temporal evolution of trail 2024-08-30 10:42:47 +02:00
Joakim Kilby d85f8dbb1f expose configurable euler-sequence as a prop 2024-08-30 10:42:47 +02:00
Joakim Kilby 0169c0ea3e add support for 'cutahead' at the head of a trail 2024-08-30 10:42:46 +02:00
Alexander Bock a2fe8bc507 Only update libMPV once per frame 2024-08-30 10:42:46 +02:00
Joakim Kilby 70c7ad30cb remove accidentally added code from rebase 2024-08-30 10:42:46 +02:00
Joakim Kilby e2d95019ec apply frustum size from dict 2024-08-30 10:42:46 +02:00
Joakim Kilby 0d8e37ce1a add do-nothing overlay to force high tile-depth 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 3187042a96 make horizon culling optional (and a property) 2024-08-30 10:42:46 +02:00
Joakim Kilby 63a28cbd47 slightly smooth out shadows via PCF 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 8b1e79281f accumulate shadow from all shadow maps 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 209a96709d fix octant-issue with local VRTs 2024-08-30 10:42:46 +02:00
Joakim Kilby b73ca2ec28 only use depthmap shadows with local renderer 2024-08-30 10:42:46 +02:00
Joakim Kilby cd4f2dce39 support multiple shadowers (up to 10) 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 9c2aaebfdd functional first version of shadow mapping 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 54044c2278 more or less working depth-map from center of patch 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 43d8ec2298 add ability to render textures to Screen quad for dbg 2024-08-30 10:42:46 +02:00
Joakim Kilby 8a788816b5 allow cutoff to be disabled by setting it to 0 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
Joakim Kilby b6c23ef025 enable point/line/ponint+line rendering of trails 2024-08-30 10:42:46 +02:00
Joakim Kilby 733590e399 give tile provider a proper name & remove non-functioning points mode 2024-08-30 10:42:46 +02:00
Joakim Kilby 29da3e5c55 add trail cutoff 2024-08-30 10:42:46 +02:00
Joakim Kilby 4a489fdae5 blur path to avoid sharp edges 2024-08-30 10:42:46 +02:00
Joakim Kilby 536ac29c94 back to padd-triangles. don't fade line during rendering 2024-08-30 10:42:46 +02:00
Joakim Kilby c0051b32b7 more or less working smoothing with junction vectors 2024-08-30 10:42:46 +02:00
Joakim Kilby 3da0ae029c dropoff of line as it thickens 2024-08-30 10:42:45 +02:00
Joakim Kilby 36f855deaa geometry shader - filler triangles 2024-08-30 10:42:45 +02:00
Joakim Kilby 7d3f925989 some kind of working (with geometry shader) 2024-08-30 10:42:45 +02:00
Joakim Kilby ef82ec49f7 some kind of working 2024-08-30 10:42:45 +02:00
Joakim Kilby b2c8bac35a remove discontinuities on terrain when close to high-res heightmap 2024-08-30 10:42:45 +02:00
Joakim Kilby a8e1e63397 add new tileprovider for eva traversals on the moon 2024-08-30 10:38:39 +02:00
Emma Broman a7c11b4de9 Make empty dictionary convert into an empty json object and not undefined
Fixes a crash in the GUI when no gui order was set, e.g. in the empty profile
2024-08-29 09:30:33 +02:00
Alexander Bock 16484dc295 Doxygen cleanup and moving functions in SceneGraphNodes 2024-08-28 11:50:39 +02:00
Ylva Selling aed2c0b0c8 Issue/2244 different mouse cursors (#3388)
* Update CEF version number

* Set OpenSpace_Helper version of C++ to 20

* Update C++ syntax to v 20

* Remove deprecated function (now default)

* Set the cache folder for cef

* Make static function in webbrowsermodule that determines if we can use accelerated rendering

* Add flag for accelerated rendering to webrenderhandler

* Use accelerated rendering

* Implement function to see if gui should absorb click

* Adhere to 80 char linewidth

* Make only the UI GPU accelerated

* Use dirty rects size for the texture to remove crash

* Better comments

* Make has content function work for GPU acceleration

* Make it so all browsers can be accelerated

Tried making it so only the gui was accelerated for simplicity. Performance plummeted, so reverted that

* Tidy up

* Add accelerated rendering flag to the screenspacerenderable shader

* Add temporary fix to make the sky browser work

* Remove flag from gui render handler

* Enable webgl in a nicer way

* Unbind texture in screenspacerenderable

* Add better comments for error handling

* Tidy up

* Address PR comments

* Make the acceleration Windows only

* Remove unnecessary setting of shader dictionary

* Add display handler to browser client

* Make glfw change mouse cursor depending on cef cursor

* formatting

* Add switch to main

* Update modules/webbrowser/src/browserclient.cpp

Co-authored-by: Alexander Bock <alexander.bock@liu.se>

* Address comments on PR

* Update again

* Update modules/webbrowser/src/browserclient.cpp

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

* Address PR comments

---------

Co-authored-by: Ylva Selling <ylva.selling@liu.se>
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
Co-authored-by: Emma Broman <emma.broman@liu.se>
2024-08-28 10:44:17 +02:00
Ylva Selling fd586e30a3 Set useAcceleratedRendering flag in skybrowser 2024-08-23 16:46:36 +02:00
Ylva Selling 11bb8e7ac5 GPU accelerate CEF (#3386)
* Update CEF version number

* Set OpenSpace_Helper version of C++ to 20

* Update C++ syntax to v 20

* Remove deprecated function (now default)

* Set the cache folder for cef

* Make static function in webbrowsermodule that determines if we can use accelerated rendering

* Add flag for accelerated rendering to webrenderhandler

* Use accelerated rendering

* Implement function to see if gui should absorb click

* Adhere to 80 char linewidth

* Make only the UI GPU accelerated

* Use dirty rects size for the texture to remove crash

* Better comments

* Make has content function work for GPU acceleration

* Make it so all browsers can be accelerated

Tried making it so only the gui was accelerated for simplicity. Performance plummeted, so reverted that

* Tidy up

* Add accelerated rendering flag to the screenspacerenderable shader

* Add temporary fix to make the sky browser work

* Remove flag from gui render handler

* Enable webgl in a nicer way

* Unbind texture in screenspacerenderable

* Add better comments for error handling

* Tidy up

* Address PR comments

* Make the acceleration Windows only

* Remove unnecessary setting of shader dictionary

* Allow web dev tools to connect to CEF

* Update modules/webbrowser/include/browserinstance.h

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

* Update modules/webbrowser/include/webrenderhandler.h

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

* Apply suggestions from code review

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

---------

Co-authored-by: Ylva Selling <ylva.selling@liu.se>
Co-authored-by: Emma Broman <emma.broman@liu.se>
2024-08-23 09:37:01 +02:00