* 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
* Add tags that can be used to set object visibility from UI
* Add module property for hiding/showing orbiting uncertainty disc
* Add tag for 1 AU ring and change color to something that's different from orbits
* Add property for circle color
* Add temporary gui hash for easier testing
* Update modules/exoplanets/exoplanetsmodule.cpp
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
* Update GUI hash to correct commit on webgui master
---------
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
Limits the number of URL synchronization downloads by time stamping files for X seconds fixes (#2586).
Also, show the amount of downloaded data as soon as the download is started fix (#2460)
* Adds time validity to UrlSynchronized files (#2586)
Updated affected asset files. Satellite asset files lasts for 24h by default now. Other assets are updated to work as before. Obs timestamp is computed using UTC time.
* Code cleanup
* Update httpsynchronization.cpp
* Applied suggestions from code review
* Update multi-line comment to `//`
* Remove accidental commas in .asset files
Co-authored-by: Emma Broman <emma.broman@liu.se>
* Fixed PR comments + bug in .asset file
* Refactor code
* Reports downloaded data as early as possible, fixes (#2460)
* More files
---------
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
Co-authored-by: Emma Broman <emma.broman@liu.se>
* Update HttpSynchronization to keep track of files downloaded (#2587)
Reads ossync file on synchronization and download files that are missing
* Apply suggestions from code review
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
* Apply suggestions from code review
* Fixed merge conflict errors
* Fixed asset being rejected on successful sync
* Add enum for download fail/success, sleep between download retries.
Removed comments and todos
* Fixed PR comments
---------
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
* Split RenderableSphere class into a local and an online sphere
* Make the video sphere derive from the regular sphere
* Make RenderableTimeVaryingSphere derive from RenderableSphere
* Some clean up
* Add general functions for renderable matrix calculations
* Make RenderableSphere and Plane use them
* Fix an issue with the RenderablePlane shader
* Make one function that returns all three types of render matrices
* Make more Renderables use the general matric calculation function
* Make more Renderable use the general matrix function
* Simplify alternative transforms for matrix calculations
* Small clean-up
* Update RenderableModel (again) to use new transform functions
* Make calc all matrix function to return tuple
* Update some more places
* Add assets for eclipse profile
* Include the eclipse shadow in the eclipse profile
* Fix issue with the eclipse extended in both directions. Disable the Earth and Moon grids by default in the profile
* Create a RenderableNodeLine example asset
* First version of node direction hint renderable (arrow)
* Add possibility to set length as a multiplier of the bounding sphere
* Draw arrow cylinder using index array
* Update exponents and min max values for lengths
* Draw arrow head
* Only update arrow geometry when positions change
* Add some properties to control visuals of arrow
* Implement invert option
* Add normals and shading
* Set arrow head size by length percentage instead of angle
* Add bottom circle to cone
* Cleanup and update examples
* Remove non-existing property from example asset
* Fix vertices not updating if anchor node was changed
And some missing updates on property change
* Start cleaning up some shape rendering helper functions
* Cleanup code and move cylinder function to helper class
* Refactor cylinder creation code (fewer loops over same vector)
* Update transformations to correctly scale and place arrow
* Add the cone to make the arrowhead
* Update faulty triangle normals
* Add property visibilities
* Rename NodeDirectionHint to NodeArrow
* Apply suggestions from code review
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
---------
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
* 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
* Change name of line fade in RenderableTrail from Fade to LineFade
* Adress review comments
---------
Co-authored-by: Emma Broman <emma.broman@liu.se>
* Make reading exoplanet data from CSV during runtime work
* Add function descriptions
* Clarify an info message
* Initialize all data parameters with NaN, to prevent unpredictable values when a parameter is not included in the dataset
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
---------
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
* 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>
* 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
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)