Commit Graph

11319 Commits

Author SHA1 Message Date
Ylva Selling
8bea02585c Remove unused function from DocumentationEngine that creates a string 2024-02-23 16:03:27 +01:00
Ylva Selling
5fdd2e9938 Move documentation generation for script engine from script engine into documentation engine 2024-02-23 15:53:28 +01:00
Ylva Selling
373f4ca924 Move documentation function from openspace engine to the documentation engine 2024-02-23 13:56:38 +01:00
Ylva Selling
e77443b825 Add events to documentation 2024-02-22 10:41:03 +01:00
Ylva Selling
6751b30c03 Add actions to documentation file 2024-02-22 09:10:51 +01:00
Emma Broman
c763c7d036 Fix typo in Tessellation parameter struct ("ebabled") 2024-02-21 08:54:11 +01:00
Emma Broman
15429ddbc6 Fix wrong kernels being used for Neptune's inner moons
Copy paste error in kernel handling update
2024-02-20 15:47:35 +01:00
Emma Broman
8fddd55851 Fix a couple of point cloud related problems
* crash that occurs when loading an empty dataset
* trying to access outside of range when sampling color or size values
2024-02-20 08:40:00 +01:00
Alexander Bock
1b5335fa89 Update Slack invite link 2024-02-19 11:42:50 +01:00
Emma Broman
da2c2df3a6 Fix interpolated points example
Did not have the updates for the color map helper asset
2024-02-19 10:52:03 +01:00
Joakim Kilby
be95530ce3 Update rotation source frame specification in apollo15.asset 2024-02-19 10:10:35 +01:00
Alexander Bock
815dfe11f1 Add the ability to specify properties and requiring confirmation (#3006) 2024-02-15 15:56:19 +09:00
Alexander Bock
f9a01d507e Make the co-rotation dependent on the bounding sphere rather than interaction sphere (closes #3017) 2024-02-15 11:19:41 +09:00
Arohdin
de5a4352ec Solves issue for incorrect FOV (Planar Projection) 2024-02-13 14:49:46 +01:00
Alexander Bock
adad4ab0ff Make the DestinationFrame in the SpiceRotation option and use GALACTIC if it is not specified 2024-02-12 11:39:08 +09:00
Alexander Bock
1691b92575 Fix compile issue with the previous commit 2024-02-12 09:11:03 +09:00
Alexander Bock
15e3cbbb68 Add documentation to JSON loading functions 2024-02-10 10:23:20 +01:00
Alexander Bock
fa1847d235 Add Lua function to load a JSON file 2024-02-10 10:18:57 +01:00
Alexander Bock
5e9af1bc13 Revent point overflow when viewing the solar system position far in the future (closes #3021) 2024-02-10 09:05:28 +01:00
Alexander Bock
d67cabf578 Coding style update 2024-02-06 16:34:12 +01:00
Alexander Bock
6e29d898cf Update copyright header 2024-02-06 15:53:24 +01:00
Emma Broman
2323a8ce50 Issue/2985 - Add asset with default cmaps (#3004)
* Allow changing color map during runtime

* Stary building asset with colormaps (currently using local files)

* Add option to invert the color maps

* Remove final use of local viridis file in example and fix broken cmap update

* Use synced resource for colormap files

* Update advanced colormapping example

* Apply suggestions from code review

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

* Update data/assets/util/default_colormaps.asset

* Capitalize first letter of exported keys, to be more consistent with rest of code base

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2024-02-05 15:47:25 +01:00
Emma Broman
2406a886ec Interpolating points (#3002)
* Add a class for rendering an interpolated point cloud (WIP)

* Make sure that we render the correct number of points

* Group interpolation properties into a property owner

* Update interpolation stuff (which was broken :) )

* Prevent interpolation from breaking with only one step or invalid interpolation values

* Add trigger properties for controlling interpolation

* Allow setting start interpolation value from asset

* Implement spline-based interpolation

* Cleanup, and interpolate to start and end

* And asset type documentation

* Add example asset

* Handle missing data values in interpolation

* Always show values at the knots, if there is one

* Experiment with more dynamic rendering (batching)

* Speed up interpolation by doing it on GPU instead of CPU

* Bring back spline interpolation (this time on GPU)

* Refactor initial data buffering

* Add a helper function to compute transformed positions

* Use vec3 positions instead of vec4 (less data to transfer)

* Update interpolation value documentation

* Apply suggestions from code review

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

* Increase interpolation speed max value

* Fix faulty indentation

* I banish thee, redundant empty line

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2024-01-30 09:43:11 +01:00
Gene Payne
bcc728cbfd Disable Mars MOC layers so original test layers show 2024-01-25 13:04:21 -07:00
Emma Broman
0925981a8c Fix faulty colors when computing HSV from invalid RGB values (with values not in [0,1])
Was noticable e.g. when rendering a lotof points that overlap and are belnded additively
2024-01-25 16:15:19 +01:00
Emma Broman
9d97028c3a Fix issue with overflowing color values for layers (closes #2880) 2024-01-25 13:50:36 +01:00
Alexander Bock
bd7668e892 Add the ability to arrayify an enum (closes #3003) 2024-01-24 16:56:39 +01:00
Alexander Bock
689bae756a Add new keybindings Shift+H to toggle all trails including the ISS (closes #3005) 2024-01-24 14:58:54 +01:00
Andreas Engberg
04ff09814d Add event topic (#3010)
* Add event topic

Add ability to subscribe to events via js-api

* Apply suggestions from code review

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

* Output an error if no status or event object is passed to payload

* fixed typo

* Report a warning if user tries to unsubscribe to a non registered event/type combination

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2024-01-24 13:51:55 +01:00
Alexander Bock
ef52155e83 Update the VideoPlayer correctly when writing out frames in SessionRecording 2024-01-18 16:14:23 +01:00
Alexander Bock
0e78e65175 Fix crash when registering replacement resource functions 2024-01-18 14:11:04 +01:00
Alexander Bock
232a0e016d Add ESA's Bepicolombo mission (#3000) 2024-01-18 14:02:55 +01:00
Emma Broman
54cf26755c Feature/point cloud scaling (#2994)
* Try using angular max size rather than max pixel size

* Update property name and use for shader

* Add docs and remove mention of angle from user's perspective

* People will wonder, so add some details as to what the value represents

* Fix inconsistent punctuation in property texts with multiple sentences

* Slight clarification of transformation matrix usage

* Add values to asset files

* Increase max size of example points a bit

* Remove/Update comment

* Add TODO comment about potential optimization

* Reduce max size of SDSS and quasars a bit

* Address review comment

* Decrease 6df and increase globular clusters size as per review comment

* Remove any mention of pixel size in the example asset

* Remove some more mentions of pixel size

* Write view space position to G-buffer  to prevent atm. from shining through points
2024-01-18 13:23:22 +01:00
Alexander Bock
27608634b2 Remove warnings (#2999)
* Remove warnings for MSVC, GCC, and Clang 17
2024-01-18 09:58:20 +01:00
timol085
9959c2b94c Add missing include file <sstream> for mac 2024-01-17 16:45:33 +01:00
Emma Broman
640ca3ed49 Feature/point cloud labels from csv (#2989)
* Add ability to load labels directly from CSV/SPECK for PointClouds

* Provide some more docs

* Update the example asset for point clouds

* Make both examples visible

* Some cleanup

* Apply suggestions from code review

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

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2024-01-17 13:46:49 +01:00
Gene Payne
787c93dec0 Merge pull request #2997 from OpenSpace/issue/2976
Fix for crash when reading meta of corrupt config file
2024-01-16 14:48:13 -07:00
Emma Broman
6fb4b89a12 Prevent setting ScaleExponent to an invalid value
May happen if no dataset was read or if the dataset only incudes (0,0,0)
2024-01-15 16:38:56 +01:00
Emma Broman
385d23303d Prevent point cloud from never getting ready if no dataset was added
Fixes issue that Voids were not begin rendered
2024-01-15 16:32:19 +01:00
Alexander Bock
15aaae3007 Spice kernel handling cleanup 2024-01-12 15:20:00 +01:00
Alexander Bock
3cf06d26a6 Make the RenderableFOV and Missions more resilient to empty values being passed 2024-01-12 15:16:40 +01:00
Alexander Bock
04a06520e5 Provide a warning instead of erroring out with the localResource/syncedResource -> resource change 2024-01-12 10:10:49 +01:00
GPayne
ab925174b5 Fix for crash when reading meta of corrupt config file 2024-01-11 14:31:00 -07:00
Alexander Bock
cae9834ec7 Add log rotation function to the Script log as well (closes #2995) 2024-01-09 15:44:22 +01:00
Alexander Bock
902da116e7 Remove interesting times (closes #2991) 2024-01-09 15:34:54 +01:00
Alexander Bock
4bf111115e Add precompiled headers to unit tests 2024-01-08 17:09:59 +01:00
Alexander Bock
97d1dc163b Add the ability for the log file to rotate (closes #2995) 2024-01-08 11:30:46 +01:00
Emma Broman
6dd497d38c Feature/add some docs (#2961)
* Add docs for PathInstruction

* Add docs for renderablecartesianaxes and navigationstate

* Write docs for ExoplanetDataPreparationTask

* Add some kind of documentation for the task base class

Was already showing in the list, but the property or decription was not included

* Apply suggestions from code review

* Address review comments

* Clarify confusing sentence

* Slight rephrasing
2024-01-04 13:55:21 +01:00
Alexander Bock
c1ee9079f1 Add the ability to drag-and-drop a video file to add it as a screenspacerenderable (closes #2988) 2023-12-23 22:33:53 +01:00
Alexander Bock
cc9f235c9d Add more debug outputs to the startup to be able to diagnose issues 2023-12-22 14:41:19 +01:00