Commit Graph

1479 Commits

Author SHA1 Message Date
Emma Broman 19f8e70822 Issue/2955 (#2972)
* Fix up-direction not being correctly computed in all cases (issue #2955)

Might be some precision-related problem going on, not sure. But since we know that up (or North) is always positive z for globes, we can just use that as up-vector directly

* Replace another place where we do the same calculation (although this function is never used)

* Remove unused function
2023-12-08 11:51:23 +01:00
Alexander Bock 3dadf9c5fa Only create RingComponents and ShadowComponents when they are actually needed 2023-12-01 09:35:38 +01:00
Emma Broman c525565e84 Utilize new functions for converting strings to upper/lower case (#2956)
* Utilize new functions for converting strings to upper/lower case

* Adapt to updated file name

* Use new function signature

* Update ghoul
2023-11-28 14:57:01 +01:00
Emma Broman 722c58f50a Allow zero duration when flying to globe position
Consistent with other fly to functions
2023-11-21 13:59:05 +01:00
Alexander Bock 7db7c40841 Doxygen style overhaul (#2954)
Reformatting the existing Doxygen comments to be unified
2023-11-20 23:39:17 +01:00
Alexander Bock 4ee078502b Doxygen (#2953)
* Update Doxygen and add new CSS file
* Remove Doxygen warnings
2023-11-19 16:35:14 +01:00
Alexander Bock 3c35d23062 Verifier cleanup (#2952)
* Add a description to structs
* Cleanup
2023-11-19 11:51:19 +01:00
Alexander Bock 870850db07 Enable warnings for missing case labels and subsequent cleanup. Updated ghoul, sgct, and codegen repository for same 2023-11-05 22:16:06 +01:00
Alexander Bock 685b185b5e Fix property spelling 2023-10-16 13:29:07 +02:00
Alexander Bock 7483b912e0 Update submodules to fix compilation error on newer Clang and GCC (#2890)
* Update submodules

* Update Ghoul
2023-09-13 09:51:30 +02:00
Malin E 4447de87f5 Issue/2768 (#2872)
* Rename remote scripting property to reflect better what it does

* Change the remote scripting name in all modules

* Update all scripts and action calls to use the new property for sync

* Simplify code that decides whether to send actions to nodes and peers

* Move Lua console hint text to be right top aligned

* Update Lua script topic

* Added new JSON key whether or not the script should be synced to other
  nodes and peers

* Per default all scripts sync to everyone
  In the next full release, we should have two separate keys that
  decides whether to sync and send to nodes and peers separately

* Add some comments that explain why there is no sync for some scripts

* Make sync argument in trigger action function BooleanType
2023-09-07 13:21:29 +02:00
Alexander Bock 4ae61a848e Using linear texture filtering on AMD until the crash can be fixed (addresses #2843) 2023-08-18 15:32:19 +02:00
Alexander Bock bd153b3f4f Use correct error type in geojsoncomponent; Check for (0,0,0) camera vectors in navigator; Fix issue with non-ASCII characters when making identifiers 2023-08-17 02:00:18 +02:00
Joakim Kilby f179f20c96 Remove tile-padding to reduce stair-stepping issues (#2842)
* account for availability of next level in desired level

solves #2834

* remove tile-padding option & functionality

* remove (no longer needed) recursive read function

since we no longer padd tiles we cannot sample outside of a read region
anymore.

* change default tilesize for heightlayers to avoid discontinuities

* make frustum culling control a debug property

* Small style guide fix

* clarify if-statement with comment

* add variable for default height-tile resolution, update comment

---------

Co-authored-by: Alexander Bock <mail@alexanderbock.eu>
2023-08-14 13:38:20 +02:00
Alexander Bock e7cad060c2 Adapt to coding style 2023-08-11 20:58:41 +02:00
Alexander Bock ee82691beb Transmit the GlobeName through the TileProviderByLevel; Don't explicitly specifiy data and index filenames and not use the same name twice 2023-08-11 06:57:43 +02:00
Emma Broman 85100e13be Rename some more deprecated functions in Lua calls 2023-08-07 10:40:36 +02:00
Emma Broman 8b923f3a4b Fix compiler error in geojson shaders
Cuases problems with GeoJson on some graphics cards
2023-08-07 09:08:40 +02:00
Alexander Bock 57fafe48f4 Rename Lua function to bring them more in line with the function naming in C++ (#2840)
* Rename Lua function to bring them more in line with the function naming in C++
2023-08-05 19:20:08 +02:00
Alexander Bock 1593ab50aa Rename TileLayer to TileProvider classes (closes #2767).
Breaking change in assets that load Layers:
 - DefaultTileLayer -> DefaultTileProvider
 - SingleImageTileLayer -> SingleImageProvider
 - ImageSequenceTileLayer -> ImageSequenceTileProvider
 - SpoutImageTileLayer -> SpoutImageProvider
 - TemporalTileLayer -> TemporalTileProvider
 - TileIndexTileLayer -> TileIndexTileProvider
 - SizeReferenceTileLayer -> SizeReferenceTileProvider
 - ByLevelTileLayer -> TileProviderByLevel
 - ByIndexTileLayer -> TileProviderByIndex
2023-08-03 21:50:25 +02:00
Emma Broman c973cee5a1 Allow reading GeoJson files with null geometry (issue #2811)
Present a warning when a null geometry is encountered, as it will not be loaded as of now
2023-08-03 10:46:48 +02:00
Emma Broman 091697c5b7 Make geojson file extension parsing more flexible in lua function (closes #2797)
Now allows geojson files with caps in the extension, as well as files with the .json extension.

Note that .json files will not be handled by drag-n-drop  (we might want to use that extension for something else)
2023-08-03 09:46:55 +02:00
Emma Broman c424783b50 Offset sample coordinate by 0.5 when estimating height values (#2769)
* Offset sample coordinate by 0.5 when estimating height values
2023-06-22 11:08:52 +02:00
Emma Broman 23b01aba12 Add a trigger property to delete a geojson component 2023-06-15 18:40:51 +02:00
Emma Broman bf38d9a415 provide some more info in GEOS errors on geojson load 2023-06-15 16:35:06 +02:00
Alexander Bock 5c8ff9eec5 Revert "Merge pull request #2721 from OpenSpace/issue/2682"
This reverts commit b4337e8188, reversing
changes made to 384f1e5530.
2023-06-15 00:52:39 +02:00
Alexander Bock 475f3c63c2 Update TilePixelSizes to temporarily address #2472 2023-06-14 20:04:08 +02:00
Ylva Selling 69b00898d9 Merge pull request #2753 from OpenSpace/issue/2679
Don't call update function unless layer has been initialized
2023-06-13 10:53:17 -04:00
Alexander Bock 7ada216620 Change linear interpolation back to anisotropic interpolation (closes #2752) 2023-06-13 11:12:56 +02:00
Emma Broman ee9c917acf Fix some faulty indentation and remove a bunch of extra lines 2023-06-13 09:29:44 +02:00
Emma Broman 76402e0525 Consistent spelling of "tessellation" 2023-06-12 14:11:45 +02:00
Emma Broman e5e5a22786 Read performshading from geojson file 2023-06-12 11:07:43 +02:00
Ylva Selling ad58c695bf Set initialize to true after initialization 2023-06-09 10:31:57 -04:00
Ylva Selling 7a0472fa35 Don't call update function unless layer has been initialized 2023-06-08 14:28:29 -04:00
Emma Broman b211df72a6 Fix: allow loading multiple features with same name in geojson file 2023-06-08 13:58:37 +02:00
Alexander Bock c78b41c645 Use the drawing resolution in the case of non-linear projections correctly (closes #2745) 2023-06-06 17:17:17 +02:00
Alexander Bock 04871e5a06 Change MipMapping of tiles to Linear interpolation 2023-06-06 15:33:28 +02:00
Alexander Bock 14c02a85ce Add the ability to provide a random background image to TileIndexTileProviders 2023-06-06 15:33:13 +02:00
Adam Rohdin 8b044f823f Tile with only "noDataValue" no longer reports as status Failure
Due to this change Tiles with only "noDataValue" won't get re-added into the job queue forever.
Solves issue where height data did not display for underlaying heightmaps.
2023-05-29 16:24:11 +02:00
Alexander Bock 1d7b6d2d8c Correctly reset the OpenGL state after rendering text in a tile to prevent flickering when tiles update 2023-05-26 23:23:05 +02:00
Alexander Bock 842f991f8b Remove the explicit check for No Data Available tiles as the new ESRI server won't return those anymore (closes #2593) 2023-05-26 00:00:38 +02:00
Alexander Bock fd5d453913 Add the option to not wait for tile loading for cases when the WMS server is misbehaving 2023-05-25 23:17:29 +02:00
Alexander Bock bde840ad03 Remove a bunch of compiler warnings
* Remove compile warnings
* Coding style fix
2023-05-16 11:59:28 +02:00
Joakim Kilby f8d7d5386a terminate ZoneScoped calls (required after Tracy update) 2023-05-16 11:07:01 +02:00
Alexander Bock 8b5b9432b6 Add new property to IndexSequenceTileProvider that shows the number of available images (closes #2688) 2023-05-15 22:16:15 +02:00
Micah Acinapura 4731e8e0a8 MacOS build fixes (#2622)
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
Co-authored-by: Joakim Kilby <jockekilby@gmail.com>
2023-05-12 09:35:59 +02:00
Joakim Kilby 2268802978 remove flickering during tileindex loading
by restoring framebuffer, shader & viewport state/bindings after
rendering text.
2023-05-11 12:36:46 +02:00
Alexander Bock 9447a351b4 Increase the TilePixelSize for heightmaps loaded from info files 2023-05-10 23:13:27 +02:00
Alexander Bock 6dfd0cd3a8 Remove warnings on MSVC 2023-04-26 23:51:16 +02:00
Emma Broman 1762bec1c2 Make the Enabled properties advanced, show in GUI, and change name
Update GUI hash to show enabled property
2023-04-25 11:29:41 +02:00