* 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
* 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>
* Hack to try to get desired behavior (for testing)
* Add properties to control axes of rotation and whether rotation aorund up should be enabled
* Generalze orbit function to just use an angle instead of speed and deltatime
* Move speed scale computation to a separate function
* Refactor horizontal translation code a bit
* Refactor speed computation for idel behavior
* Refactor/clean up orbit code
* Add property docs
* Add some safety checks
* Apply suggestions from code review
Co-authored-by: Alexander Bock <alexander.bock@liu.se>
* More updates based on code review
---------
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
* Add profile edit to start camera at a given scene graph node
* Restructure some navigation code to allow computing camera pose from node
* Delay computation of camera pose for node spec as well... And give NodeInfo a more extensive name (The objects may move during the frame, making the computed pose invalid)
* Update to make scene graph node first option in editor
* Add some description to each tab in the camera dialog
* Add operator== for CameraGoToNode struct to make the unit tests compile
* Add version handling for new profile version
* Add option to specify an optional height
* Update current version constant, for old test cases to go through successfully
* Add some test files
Note that apparently, the profile loading does not check the values of the individual fields, just existence, and type. So added two test cases that are not currently checked.
---------
Co-authored-by: Alexander Bock <mail@alexanderbock.eu>
* Add support for multiple windows & viewports
With correct rendering of both Scene and Overlays/GUI.
GUI is restricted to either the first window or any other windows tagged
with "GUI", overlays are drawn on all windows/viewports.
Closes#2542 and #1645
Add the option to add geojson components to globes, from geojson files. One geojson file creates one GeoJsonComponent, which in turn may contain multiple GlobeGeometryFeatures
Geojson is a format that supports points, lines, and polygons. In addition to the basic functionality, extra features have been added that will long-term allow rendering the geometry needed to represent KML files (another format for geospatial geometry data). Here are links to references for both formats:
Geojson: https://geojson.org/
KML: https://developers.google.com/kml/documentation/kmlreference
data/assets/examples/geojson includes some example files that I have used for testing. Any geojson file can also be added through drag-n-drop. Note however that you might need to change the AltitudeMode or HeightOffset properties for the feature to be visible.
* Added pboettch/json-schema-validator submodule
* Added initial code for selecting window config to edit
* Use updated sgct submodule with json-validate
* Bump sgct submodule version reference
* Bump sgct submodule version reference
* Version checking of sgct window config in progress
* Json schema validator submodule is now in sgct
* Added support for read-only window configs, and additional changes
* More changes with opening config in window edit, plus schema files added
* Update sgct schema version with more defs to work with sgctedit schema
* Fixes to get sgct edit schema working with dialog for error messages
* Improvements in exception handling
* Improved handling of multiple sgct & json exception types
* Minor improvements in exception messages
* Extra spaces in error message output
* Fixing importing of json config data from launcher to sgctedit
* Fixed window size & position update
* Changes for preserving settings in edit vs new mode
* Changes to import settings from config file
* More changes for importing testing of config file based on file tests
* Fixed window placement dims in monitor, and some code refactoring
* Move json validation before initial read
* Add CMake copy of sgct schema file to OpenSpace post-build
* Bump sgct submodule reference
* Modify calls for json schema validation and bump to latest sgct
* Bump to new sgct repo with unit testing and updated schema
* Added first test for window config editor schema
* Finished tests for sgcteditor validation
* Code cleanup pass
* Fix of sgctedit test for remove description
* CMake and include config changes to fix build after merge
* Bump sgct submodule version
* Improve paths in sgctedit test
* Bump sgct reference for test path fix
* Check for imported monitor number being in valid range
* Make sgct config 'monitor' key/value optional
* Have 'save' or 'save as' buttons depending on edit or new modes
* Code review feedback changes
* Fix to include the last file in the user config dir list
* Addressing some PR request
* Change to pass-by-reference in editRefusalDialog
* Separating errors into summary and detailed messages in error dialog
* Disable edit button with hover text if config read shows invalid format
---------
Co-authored-by: Alexander Bock <alexander.bock@liu.se>