Commit Graph

2663 Commits

Author SHA1 Message Date
Emma Broman
3d3580fa65 Polish and docs for RenderableDistanceLabel and docs for RenderableNodeLine (#3485)
* Update add add documentation for `RenderableDistanceLabel`

* Move distancelabel to `base` module and remove now empty `vislab` module

* Add examples for `RenderableNodeLine` and `RenderableDistanceLabel`

* Fix faultily formatted documentation ID for `RenderableNodeLine`

* Make `RenderableDistanceLabel` unit use units from distanceconversion file

And simplify how the different names for a unit are specified

* Use new distanceUnitList() function for other classes that uses the units

* Change default unit to correct option according to documentation

* Make the text property readonly for `RenderableDistanceLabel`

* Add property to specify the precision of the number

distance label precision to docs

* Add examples with different units and descriptors

* Add docs description to `RenderableNodeLine`

* Update name in one of the examples

* Remove redundant switch cases

* Apply suggestions from code review

Co-authored-by: Ylva Selling <ylva.selling@gmail.com>

---------

Co-authored-by: Ylva Selling <ylva.selling@gmail.com>
2025-01-29 16:11:47 +01:00
Emma Broman
c4cf883ec9 Docs and examples for RenderableDisc (#3482)
* Add description and update GUI property values

* Add examples with a single color

* Remove old example file

* Rename ellipse example and remove width

* Apply suggestions from code review

Co-authored-by: Ylva Selling <ylva.selling@gmail.com>

* Address review comments

* Also update renerable description

---------

Co-authored-by: Ylva Selling <ylva.selling@gmail.com>
2025-01-17 14:16:01 +01:00
Emma Broman
0dbc331ebf Docs and examples for RenderableBoxGrid (#3479)
* Add boxgrid examples

* Add description about the box grid renderable for the docs page

* change phrasing in example assets slightly

* Apply suggestions from code review

Co-authored-by: Ylva Selling <ylva.selling@gmail.com>

* Remove labels support for `RenderableBoxGrid`

---------

Co-authored-by: Ylva Selling <ylva.selling@gmail.com>
2025-01-17 13:50:40 +01:00
Emma Broman
e643e8d653 Make debug plane a ScreenSpaceRenderable and add documentation (#3483)
* Add screenspace version of debug plane, and an example

* Remove the old renderable

* Apply suggestions from code review

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

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2025-01-17 13:47:37 +01:00
Emma Broman
16aa150f10 Polish RenderableCartesianAxes - documentation, examples, and make fading work correctly (#3478)
* Make `RenderableCartesianAxes` fade and fix opacity setting

* Update existing documentation of cartesian axes

* Add example with custom colros and parent node

* Apply suggestions from code review

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

* Include earth asset instead of using string identifer

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2025-01-17 13:18:45 +01:00
Malin E
3c61857127 Fix blending and depth issue with RenderableSpheres
* There is now a bool setting to turn off depth writing and testing for
  RenderableSpheres (useful for background images).

* There is also an Option setting to choose blending mode, similar to
  the setting that RenderablModel has.

* NOTE: The default behaviour for RenderableSphere have now changed.
  Before it was always additive blending that was used but now it is
  default blending that is used by default. If additive blending is
  wanted, then use the option setting and select it instead.
2025-01-15 15:02:40 +01:00
Alexander Bock
820e90eab4 Happy new year 2025-01-14 16:21:08 +01:00
Emma Broman
d281b6c33b Fix error in deinitilialize of distance-to-earth example asset 2025-01-09 11:44:33 +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
Brian Abbott
cd1a32a771 Change the tint of the SunGlare to be more yellow (#3459) 2024-11-22 12:30:45 +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
Alexander Bock
fef526652d Update WebGUI commit hash 2024-10-21 15:08:32 +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
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
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
Alexander Bock
5fdc2c4bb8 Add examples for SpiceTranslation (#3413) 2024-09-23 11:35:01 +02:00
Alexander Bock
bc8df9a3d9 Fix issue with constellations asset when no sync folder is present 2024-09-10 13:58:06 +02:00
Emma Broman
311c69cc7a Update GUI hash
For a couple of small fixes. Non-breaking
2024-08-29 09:41:58 +02:00
Alexander Bock
bf8c2bbe13 Add missing information about color-enhancement for the Viking image 2024-08-23 10:30:15 +02:00
Emma Broman
6e6f425a0a Issue/3337 Custom UI group ordering (#3363)
* remove code for controlling group sorting in ImGui

We only use this for debug and the sorting here is no longer relevant

* Add feature to add custom ordering to UI groups

* Tiny cleanup

* Add numerical ordering for night sky planets

* Update Lua function name and create an event when ordering updated

* Set top-level ordering

* Add function documentation

* Add a custom ordering that previously was hardcoded in UI

* Apply suggestions from code review

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

* Rename GUI ordering function

* Update GUI hash

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2024-08-22 16:51:28 +02:00
Alexander Bock
f962a10e03 Add new maps for the Globe representation of Phobos (closes #1397) 2024-08-22 16:38:04 +02:00
Alexander Bock
d0b3cd6e89 Add example for ConstantRotation (#3384) 2024-08-21 10:34:08 +02:00
Alexander Bock
a138be3f92 Add example for StaticTranslation (#3385) 2024-08-21 10:33:59 +02:00
Alexander Bock
f2a9477eb5 Lua Securty Sandboxing (#3378)
* Add Lua sandboxing
* Convert existing files to use custom functions instead of now-prohibited library functions
2024-08-16 13:46:39 +02:00
Alexander Bock
9decd9aad2 Add examples for SpiceTranslation (#3376) 2024-08-16 13:45:40 +02:00
Alexander Bock
7ec6b6cfb5 Add examples for GlobeRotation (#3377)
* Add examples for GlobeRotation and make the longitude and latitude defintion non-optional
* Remove old GlobeRotation example
2024-08-16 13:45:24 +02:00
Alexander Bock
c7f2ab1a43 Define the supergalactic transformation matrix only once and reuse in other assets 2024-08-14 15:10:44 +02:00
Alexander Bock
1cef84ca74 Add an identifier to mission files and use that instead of the name 2024-08-14 10:22:41 +02:00
Alexander Bock
0b91fd2642 Global cleanup pass over asset files
- Lua style guides
- FrameConversions
- unloadMission, Add mission identifiers
2024-08-14 10:22:20 +02:00
Alexander Bock
5d2186f11d Add Esri Wayback layers (#3382) 2024-08-12 21:20:39 +02:00
Alexander Bock
0ec3d5e284 Add Sweden caching server to Earth map layer 2024-08-12 09:55:03 +02:00
Alexander Bock
d07edbdc77 Fixing arrangement for TimeFrames in assets 2024-08-07 06:58:50 +02:00
Alexander Bock
ca6c14e9b5 Make the SampleInterval for RenderableTrailTrajectory optional and use a sample per 2 days by default 2024-08-07 06:53:05 +02:00
Alexander Bock
19bb1c5d91 Update Rosetta kernels to extend coverage (#3370) 2024-08-06 11:45:25 +02:00
Ylva Selling
952f177c54 UI updates (#3358)
* Remove events for scenegraphnodes and screenspacerenderables

* Add events for updating the property tree

* Remove duplicate function calls

* Update src/properties/propertyowner.cpp

Co-authored-by: Emma Broman <emma.broman@liu.se>

* Address PR comments and make helper functions with better comments

* Make uri function not return the identifier if the uri is not valid

* Rename fullyQualifiedIdentifier to uri

* Update gui hash

---------

Co-authored-by: Ylva Selling <ylva.selling@liu.se>
Co-authored-by: Emma Broman <emma.broman@liu.se>
2024-08-02 16:30:07 +02:00
Alexander Bock
dd73978fa2 Use correct UTC time string in Pluto trail 2024-08-02 14:57:13 +02:00
Alexander Bock
97e455f7af Update kernel data for Rosetta 2024-07-30 10:51:24 +02:00
Emma Broman
79dce8acfa Fix broken light pollution update
Broke in DU Update #3335 due to updated identifiers
2024-07-18 14:09:30 +02:00
Alexander Bock
e46cb269d0 Update WebGUI hash 2024-07-18 13:59:05 +02:00
Alexander Bock
99a976a53c Add an example to show the current in-game time in a screenspace object (closes #3312) 2024-07-18 12:02:09 +02:00
Alexander Bock
981a13a855 Add new TileProvider to select tile providers based on the date and apply to VIIRS Joint Polar Satellite System (#3350) 2024-07-18 11:18:57 +02:00
Alexander Bock
cabb8cb55b Add Down and Up keybinds to set the time to realtime and "now" respectively (closes #3275) 2024-07-18 11:11:26 +02:00
Malin E
01483ef982 Add support for model vertex colors (#3346)
* Add model vertex color support

* Fix an issue with the Tiangong model not loading properly and set a correct bounding sphere size for it

* Update caching for models

* Update previous model examples to the new format

* And add a new example to test the new vertex colors support

* Apply suggestions from code review

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

* Add a model example with lighting

* Improve the basic example and add a separate example for vertex colors

* Add visual test for vertex colors (#3348)

* Update the readme file for the visual tests

* Add asset instruction to the visual testing readme

* Add visual test for RenderableModel with vertex colors

* Apply suggestions from code review

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

* Update test when asset changed name

---------

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

* Update Ghoul

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2024-07-17 15:56:06 +02:00
Emma Broman
babbb4f97c 2024 Digital Universe Data Update (#3335)
* Update 2dF.asset

* Changes to the filename metadata, as wekll as the description.

* 2024 DU updates.

* Apply suggestions from code review

Co-authored-by: Alexander Bock <mail@alexanderbock.eu>

Apply suggestions from code review

* Changes to the asset descriptions, the GUI path, and some of the settings.

* Fixed minor error in a variable name.

* Wrote the individual descriptions for each asset.

* Adjusted the size (brightness).

* Update identifier to one that works

* Update asset versions and correctly format asset files

* Reset exoplanet rings size

To make them visible when viewed further away, e..g at the distance of the radiosphere, and make the Kepler FoV more apparent

* Clean up scale variables

* Line-break long descriptions

As long as we expect users to manually edit files, they need to be readable

* Remove letters that sorts the grids by size

* Split allsky into two assets

Remove asset that was split in two and update DU meta asset

* Replace dwarfs texture with generic point texture resource

* Remove all DU version comments, to reduce "noise"

These would be confusing to our users

* Some final cleanup

* Remove commented radii

* Local Universe -> Nearby Surveys

* Remove asset versions

* Apply suggestions from code review

Co-authored-by: Malin E <malin.ejdbo@gmail.com>
Co-authored-by: Alexander Bock <alexander.bock@liu.se>

* Remove background setting (non-existing) for spheres

* Rmeove commented out lines in star orbits asset

They are confusing, and the label file they refer to does not exist

* Apply suggestions from code review

* Fix some missing line breaks

* Update sync identifiers to match updates in BigBang PR

* Reuse point textures from the same resource instead of having one copy per dataset

The texture used is the same

* Set brown dwarfs dataset version to 1

* Update bookmarks file with updated star poistions

---------

Co-authored-by: Brian Abbott <80659386+brianpatrick@users.noreply.github.com>
Co-authored-by: brianpatrick <git@brianabbott.net>
Co-authored-by: Malin E <malin.ejdbo@gmail.com>
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2024-07-17 11:25:26 +02:00
Emma Broman
cca2f7e272 Add possiblity to sort SGNs in GUI based on numerical value (#3340)
* Add possiblity to sort SGNs in GUI based on numerical value

And apply to grids

* Fix mistake in docs

* Apply suggestions from code review

Co-authored-by: Ylva Selling <ylva.selling@gmail.com>

* Rename Order -> Ordering and remove unused getter functions

* Update GUI hash to match the UI changes

---------

Co-authored-by: Ylva Selling <ylva.selling@gmail.com>
2024-07-17 09:54:59 +02:00
Emma Broman
c0f85857d4 "Fix" warning from hdf.asset (#3343)
The "proximity" parameter does not exist in the dataset. Just addd all tha parameters for color mapping.
2024-07-15 08:52:22 +02:00
Alexander Bock
b8e9193bc7 Add Lua function to calculate the number of seconds between dates and use it in assets (#3332) 2024-07-11 10:34:06 +02:00