Commit Graph

11744 Commits

Author SHA1 Message Date
ElonOlsson
afe95d2b2f restored kameleon documentation task 2025-01-31 14:32:22 -05:00
elonolsson
41c3106b0c tests. fail to save to file 2025-01-31 12:04:19 -05:00
ElonOlsson
204e77fdbc test used code from Anders branch to check why i get 0 on y on first position of each line 2025-01-22 16:13:35 -05:00
elonolsson
be1e544952 start finding first and last points on line to varify topology 2025-01-21 17:13:26 -05:00
elonolsson
d2cb7c9083 merge master 2025-01-10 22:37:39 +01:00
elonolsson
44dfb6548a temp before merge master 2025-01-10 17:54:58 +01:00
Emma Broman
d281b6c33b Fix error in deinitilialize of distance-to-earth example asset 2025-01-09 11:44:33 +01:00
Adam Rohdin
e68b1d4b4a Fix image links in README.md 2025-01-07 09:24:16 +01:00
ElonOlsson
aad10ec154 Added support for coordinate systems: old GSM as Static, real GSM, SM, GSE and time dependent GSM and SM (#3392)
* added old GSM as Static, real GSM, SM, GSE and time dependent GSM and SM

* small formating

* i dont rember changing this, so taking it back

* added support for time dependent GSM and SM to work to year 2099

* added newer kernel

* added HEEQ and HEE

* better naming and descriptions

* rename lowercase

* naming rewrite

* fix after name change

* added earth centric tf files. sun centric left to do and .bpc files and .bsp files

* including kernels with asset.resource now. Left is weather to move or change examples/debugcoordinateaxes

* minor naming cleanup

* cleanup. remove comment

* getting rid of debugcoordinateaxes example asset
2024-12-10 18:05:40 -05:00
Emma Broman
2856085724 Use a pointing hand GLFW cursor for the web grab cursor (#3465)
* Use a pointing hand GLFW cursor for the web grab cursor

* Add TODO comment about custom cursor
2024-12-09 17:08:06 +01:00
Andreas Engberg
27e46d8cf5 add openspace lua table to lua transforms 2024-12-04 13:41:28 +01:00
Emma Broman
98c0787266 Make openspace.fadeOut also disable the object at end of fade
Needed when we now start using this function in the UI
2024-12-03 08:26:26 +01:00
Alexander Bock
f1bfaadc35 Update SGCT submodule
- Add support for ScalableSDK
2024-11-25 13:00:26 +01:00
Brian Abbott
cd1a32a771 Change the tint of the SunGlare to be more yellow (#3459) 2024-11-22 12:30:45 +01:00
Ylva Selling
4bc33368f6 Make property uri validation work again 2024-11-15 16:56:55 +01:00
Ylva Selling
6ffaee0b45 Make uri validation work again 2024-11-15 16:39:32 +01:00
Andreas Engberg
84ad4cf373 Make sure we search the the actual file name and not entire path
Caused an issue where it would not "find" the metadata if there was any '.' in any part of the path e.g., `OpenSpace-0.20.1/..`
2024-11-07 10:16:18 +01:00
Alexander Bock
f4fe8bd38a Update SGCT repository
- Add the ability to prevent windows from partaking in screenshots
  - Fix issue when recomputing field-of-views for viewports that are rotated
2024-11-06 09:40:15 +01:00
Alexander Bock
86b4733eeb Reuse the same generated configuration file (closes #3449) 2024-11-05 22:19:55 +01:00
Andreas Engberg
c00e8e40ba Set B.C. to start of time string if year < 1000 B.C
This is to make it faster to check for B.C years on the frontend so we can properly show years < 0
2024-11-04 15:15:41 +01:00
Emma Broman
07a0912dc1 Split up JWST and Lagrange point assets into smaller assets (#3432)
* Separate JWST asset into multiple assets and avoid specifying timestamps in multiple files

* Split up L1, L2, L4 and L5 assets

* Include L2 and L2 Sun line in jwst asset

* Add asset.enabled option to jwst and lagrange point assets

* Remove a comment that came from Voyager mission file

* Apply suggestions from code review

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

* Add missing tags for some L2 SGNs

* Fix broken jwst trail asset

* Phrase comment for L2 co-revolving frame a bit more generally

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2024-10-31 17:43:24 +01:00
Emma Broman
fc93523914 "Fix" invalid geometries before adding them (#3452)
However, they might not actually be completely fixed and still look weird. But at least now they load
2024-10-30 16:40:28 +01:00
Malin E
40578ebc81 Update string versions of distance and time units, start with capital
letter

* Update RenderableModel to better make use of these predefined units
2024-10-29 17:02:48 +01:00
Emma Broman
417996565e Fix renderbin mode Parameters list to include new Sticker
So that Sticker bin can be set from an asset
2024-10-23 13:45:51 +02:00
Alexander Bock
390d4a3e50 Fix issue with creating RenderableGlobes with layers 2024-10-22 15:24:35 +02:00
Alexander Bock
fef526652d Update WebGUI commit hash 2024-10-21 15:08:32 +02:00
Alexander Bock
438d6e3ddd SessionRecording and KeyframeRecording redesign (#3399) 2024-10-21 15:06:40 +02:00
Emma Broman
304cbb2032 Provide errors when setting exoplanet module file paths 2024-10-21 10:04:35 +02:00
Emma Broman
68c2157dd4 Move Exoplanet creation code from C++ to Lua (#3450)
* Move exoplanet creation code to Lua

* Add more descriptions and handle missing values

* Remove old creation function and move load from CSV to Lua

* Properly document all functions, including a type for the `systemData` return value

* Add `\param` documentation to the scripts

* Cleanup and move helper functions to core scripts

* Throw Lua errors when things go wrong, instead of returning empty objects

This prevents the rest of the code from being run

* Flesh out TODO comments, so future us know why they are there


---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2024-10-21 09:30:18 +02:00
Andreas Engberg
6dd3dd8ab8 Feature/UI launcher accessibility (#3417)
* update background and foreground colors in launcher

* Change tab order and preliminary focus visuals

* update focus color

Improves on #3091 but does not fixes it, the contrast ratio is 2.4/2.9-3.3 versus the white border/the gray background on each button/dropdown

* update focus border width

* Update color of error messages fixes #3103

* Enable enter key interaction on ui launcher buttons fixes #3092

* Update accessibility names on buttons and fields where the current readout does not make sense, fixes #3089

* Fixed issue where you could not tab out of multiline textfields

* Add overlay to the launcher image to increase contrast

* Slightly improves readability of Start button fixes #3096

We decided to keep the all caps to indicate call to action

* Add start button to have default focus which enables quick start by pressing enter or space on startup

* Removed overriden object name

* Update color label text for better clarity fixes #3094

The actual fix is in #9a7e8e1

* Add `esc` keypress to exit the launcher fixes #3097

* add placeholder text for profile name fixes #3101

* Fixed issue with properties, assets, and keybindings multiline readout, fixes #3098

* Change tab order of properties, assets, and keybindings: text area -> edit button,  fixes #3099

* Add prompt to user warning of unsaved changes in profile editor

* Add error message dialog fixes #3100

* Removed unused code

* Remove hardcoded color for information text in cameradialog

* Don't compare profile files but profiles instead

* Add same focus outline to all buttons in launcher

---------

Co-authored-by: Alexander Bock <mail@alexanderbock.eu>
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2024-10-11 10:13:32 +02:00
Andreas Engberg
0fc9265837 Feature/assetvalidation (#3396)
# To run the script
Make sure to install the latest Python API version `openspace-api 0.1.2`
The script is located in `OpenSpace/support/assetvalidation`, the main script takes a few command line arguments

`--dir` - specify the OpenSpace directory 
`--filter` - optionally supply a regex string to filter which assets to validate
`--verbose` - flag to print debug info to log and also console (default off), if off only warnings and errors are logged
`--start` - flag to start OpenSpace as a subprocess (default on) if this is off it assumes OpenSpace is already running, useful if you want to run OpenSpace via Visual Studio for example. 
`--at` - specify an index to start at a specific asset

run eg: 
`python main.py --dir="C:/User/Desktop/OpenSpace" --filter="examples" --verbose=True --start=False --at=35`
2024-10-10 15:55:53 +02:00
Emma Broman
e3271670a7 Update comments in time_lua to new script documentation format (#3438)
* Update comments in time_lua to new script documentation format

* Fix some mistakes in formulation about how pausing works

* Add return value documentation
2024-10-10 11:51:12 +02:00
Emma Broman
275fbb63b7 Fix broken ghoul_assert that prevented building in Debug 2024-10-10 11:47:26 +02:00
Emma Broman
8d176e4aa8 Fix error in openspace.time.secondsPerYear function documentation 2024-10-10 11:33:45 +02:00
Malin E
3d3d696eb9 Update OS-model format and fix model cache bug (#3395)
* Update ghoul - update model cache version

* Update OS-model format to work with the new cache version

* Plus some backward compatibility
2024-10-10 10:11:03 +02:00
Alexander Bock
ff345006d1 General code cleanup (#3445) 2024-10-10 09:49:02 +02:00
Alexander Bock
125114cad5 Add documentation for TileProviderByLevel (#3446)
---------

Co-authored-by: Ylva Selling <ylva.selling@gmail.com>
2024-10-10 09:48:39 +02:00
Malin E
9582d81fb6 Sync out the anchor node, issue 2854 (#3398)
* Sync out anchor node to all connected clients

* Remove warning in case anchor node is nullptr

* Always sync out the anchor node to nodes
2024-10-09 10:39:13 +02:00
Emma Broman
2d6e2d891b Remove any double whitespace in script documentations (closes #3448) 2024-10-03 14:05:28 +02:00
Alexander Bock
56a9d6ae8c Add the ability to query RAM and VRAM usage (#3427) 2024-09-28 13:19:29 +02:00
Emma Broman
326740095f Do not hide requestedUnit of dashboarditem distance in UI (#3435)
* Do not hide requestedUnit of dashboarditem distance in UI

We want to be able to change it during runtime

* Change visiblity of RequestedUnit properties
2024-09-25 11:03:23 +02:00
Alexander Bock
4f58eff235 Make it possible to choose in the asset whether the domain filtering in a fieldline sequence. Apply the change to the Juice fieldlines (closes #3437) 2024-09-25 10:24:15 +02:00
Emma Broman
acc6e41f3d Screenspace dashboard distance to earth example (#3428)
* Add screenspace dashboard example for showing distance to earth in lightyears

* Address review comments
2024-09-25 09:45:05 +02:00
Emma Broman
0fe90ed5b4 Fix ScreenSpace Rotation not being settable from asset
And restructure construction code to make it easier to find issues with unset parameters
2024-09-24 11:48:18 +02:00
Emma Broman
75bbd3b8ad Add possiblity to set timestamp when using jumpToNavigationState 2024-09-24 08:53:23 +02:00
Alexander Bock
5fdc2c4bb8 Add examples for SpiceTranslation (#3413) 2024-09-23 11:35:01 +02:00
Alexander Bock
db23148af0 Add ability to schedule Lua scripts (#3416) 2024-09-23 11:34:51 +02:00
Emma Broman
24a2247aa4 Give exoplanets a color based on their size (#3412)
* Add a tag for all exoplanet globes

* Add color to exoplanet globes based on their size

* Update color of terrestrial planets to be more deeply brown

* Change order so that the default texture for planets is shown on top

I.e. only use color if no other texture was provided

* Add descriptions of layer and planet type

* Add descriptions for some more things in the system

* Increase ambient intensity for when a planet is colored (not textured)

* Ignore GlobeBrowsing shader warning when setting camera position (closes #3405)

* Apply suggestions from code review

* Fix new constant names (from review)

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2024-09-18 11:02:30 +02:00
Ylva Selling
8ad84b6d35 Make useAcceleratedRendering a uniform for screenspace renderables 2024-09-17 17:17:46 +02:00
Alexander Bock
c0ca1acb33 Don't crash when enableing the shadow component on a planet that doesn't have a ring system (closes #3404) 2024-09-16 18:01:10 +02:00