Commit Graph

5629 Commits

Author SHA1 Message Date
Alexander Bock cb68ab87d9 Remove unused extra name for the amount of points in the eclipse cone and shadow cylinder 2023-08-11 09:42:24 +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
Malin E 54ad5bfdd5 Add pivot property for Models to move model origin 2023-08-09 16:04:20 +02:00
Malin E 786c2887da Sphere maintenance (#2800)
* Split RenderableSphere class into a local and online sphere

* Make the video sphere derive from the regular sphere

* Make RenderableTimeVaryingSphere derive from RenderableSphere

* Some clean up

* Address PR comments
2023-08-07 11:47:32 +02:00
Emma Broman 85100e13be Rename some more deprecated functions in Lua calls 2023-08-07 10:40:36 +02:00
Emma Broman 15dbe32341 Make it possible to fade in/out RenderableFieldLinesSequences (e.g. magnetosphere) 2023-08-07 09:46:24 +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 2b3226d18d FIx aspect ratio issue for RenderableVideoPlane (closes #2815) 2023-08-03 16:51:13 +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
Alexander Bock 59d51a365f Prevent crash when no shadow caster is available 2023-07-31 13:39:35 +02:00
Alexander Bock 14082cd8d9 Add the ability to render an eclipse cone for the Earth and Moon system (#2816) 2023-07-18 11:58:17 +02:00
Alexander Bock 80ddf3e187 Prevent occasional crash in RenderableShadowCylinder when adding an asset at runtime 2023-07-12 12:42:25 +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
Alexander Bock 380f768e4c Allow negative values for KeplerTranslation values (#2784) 2023-07-06 10:03:44 +02:00
Ylva Selling 797a6fe208 Merge pull request #2782 from OpenSpace/issue/1867
Add border to screenspace renderables
2023-06-28 17:14:37 -04:00
Ylva Selling d317c287eb Update modules/base/shaders/screenspace_fs.glsl
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2023-06-28 17:14:14 -04:00
Ylva Selling 67b7330229 Allow transparency for movies. Closes #2792 2023-06-26 11:43:02 -04: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
Ylva Selling 8e8e315575 Merge branch 'master' into issue/1867 2023-06-15 15:45:32 -04:00
Ylva Selling 0b20affc5d Add border to screenspace renderables 2023-06-15 15:42:32 -04: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
Micah Acinapura 8d7b423803 Add cache false to jpg layers to remove warnings (#2777)
* removing warnings from jpg layers; move scanner warning to debug

* update moon texture to v2

* Apply suggestions from code review

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

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2023-06-14 18:45:09 -04:00
Ylva Selling fb85410850 Fix bug with dark screen space renderables (#2776) 2023-06-15 00:34:37 +02:00
Ylva Selling 045e4fcaa3 Add property to make it possible to set if the browser display copies… (#2774)
* Add property to make it possible to set if the browser display copies should animate while the target is moving

* Update modules/skybrowser/src/targetbrowserpair.cpp

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

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2023-06-15 00:23:43 +02:00
Alexander Bock 475f3c63c2 Update TilePixelSizes to temporarily address #2472 2023-06-14 20:04:08 +02:00
Ylva Selling 641c747f94 Rename the property in the video player to reload instead of reset, and add some more explanation 2023-06-14 10:52:33 -04:00
Ylva Selling 0d3bd9ade3 Merge pull request #2760 from OpenSpace/issue/2759
Show stars during an eclipse
2023-06-13 16:54:27 -04:00
Ylva Selling e89bef0203 Address comments on PR and make code more readable 2023-06-13 16:10:06 -04: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
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
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
Adam Rohdin 71827c2f1e Fix for minor trail issue 2023-06-10 12:58:08 +02: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
Gene Payne a250f73904 Merge pull request #2747 from OpenSpace/issue/2588
Fixes line ending problems with horizons vector files on linux
2023-06-09 10:17:23 -06:00
Ylva Selling ad58c695bf Set initialize to true after initialization 2023-06-09 10:31:57 -04:00
Emma Broman 68c1b34e7c Add missing std namespace to getline function 2023-06-09 11:38:50 +02:00
Alexander Bock bb9a3e375d Add documentation for Video classes (closes #2732) 2023-06-09 11:25:52 +02: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