Commit Graph

5740 Commits

Author SHA1 Message Date
Alexander Bock
ca5d02cc02 Fix logging and documentation for LuaTranslation and LuaRotation (closes #3176) 2024-04-11 20:09:24 +02:00
Emma Broman
731b6a5407 Fix broken interpolated points
Broke from moving dataset loading to initialise in 3f8bff5a62, and resulted in a crash..
2024-04-08 10:07:23 +02:00
Alexander Bock
ee6b9a5ed8 Prevent crash when rendering globes when the Sun node is not loaded in the scene 2024-04-08 09:02:54 +02:00
Alexander Bock
2a88521795 Properly disable appropriate code when compiled without globebrowsing support (closes #3146) 2024-04-07 17:44:21 +02:00
Alexander Bock
88decaf414 Remove the ability to have optional parameters in the beginning of Lua functions (closes #3151). Make the goToGeo and flyToGeo globe first parameter required 2024-04-07 17:29:01 +02:00
Alexander Bock
3d62571c44 Remove warning on Jenkins 2024-04-07 01:53:16 +02:00
Alexander Bock
4328476d26 Use more filesystem::path where applicable 2024-04-06 23:55:59 +02:00
Emma Broman
2af06fb641 Add asset setting to skip first data point in RenderablePointCloud (#3161)
* Add asset setting to skip first data point

To hide our galaxy in the Tully datasets

* Apply suggestions from code review

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

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
2024-04-05 14:20:11 +02:00
Emma Broman
c26f903e47 Correctly reset face culling state after RenderableSphere rendering (closes #1128) 2024-04-05 14:19:31 +02:00
Alexander Bock
76b99a2e01 Mutex-protect the time conversion in the URLSynchronization to prevent a rare crash when accessing SpiceManager multithreaded 2024-04-05 11:18:32 +02:00
Alexander Bock
4049501406 Adding a function to return whether OpenSpace currently is paused 2024-04-04 17:09:34 +02:00
Alexander Bock
9558f2bcbb Add the ability to specifiy local Sun position for the RenderableGlobe and RenderableAtmosphere (#3137)
* Add the ability to specifiy local Sun position for the RenderableGlobe and RenderableAtmosphere

Note that for planets with atmospheres, the SunNode has to be specified for _both_ the globe and the atmosphere separately

 - Closes #1745
 - Closes #2243
2024-04-04 16:16:01 +02:00
Alexander Bock
c47eb8fc7a ... and then re-add it again 2024-04-03 12:45:55 +02:00
Alexander Bock
e2a82a170e Remove SoLoud... 2024-04-03 12:43:41 +02:00
Emma Broman
d48f77fd9e Adress a couple of warnings 2024-04-03 09:23:32 +02:00
Alexander Bock
2fc801cae0 Double-remove soloud submodule from the wrong path 2024-04-02 23:37:37 +02:00
Emma Broman
046aea0776 Fix an oopsie in point cloud shader 2024-04-02 14:19:54 +02:00
Gene Payne
9eb2344c27 Added missing profiling header to prevent Tracy error 2024-03-28 14:22:03 -06:00
Gene Payne
d16e016d49 Update refs to sgct and ghoul from master 2024-03-28 09:52:17 -06:00
Alexander Bock
cdf98f7889 Optimizing the data loading. Adding more Tracy macros 2024-03-28 14:30:12 +01:00
Emma Broman
3f8bff5a62 General performance improvements (#3142)
* Adding some Tracy zones
* Move point cloud dataset loading to initialize function to speed up startup 
* Switch order of operations in memoryaware tile cache to speed up startup
* Move point cloud dataset loading to initialize function
* Add more Zone Scoped and rearrange SDSS loading
* More speed up

---------

Co-authored-by: Alexander Bock <mail@alexanderbock.eu>
2024-03-28 01:10:07 +01:00
GPayne
12f3645447 Merge-in linux bug fixes from Master 2024-03-27 11:50:52 -06:00
Alexander Bock
06523463d0 Change audiomodule from fmt to std 2024-03-26 22:59:18 +01:00
Alexander Bock
0d0f4eef46 Fix compile issue on linux and small warnings 2024-03-26 22:44:40 +01:00
Gene Payne
6146cf16b2 Merge-in all updates from master 2024-03-25 18:35:57 -06:00
Alexander Bock
49fc538c17 Rename fmt.h to format.h and enable audio module on default 2024-03-25 23:19:52 +01:00
Ylva Selling
f625dc296b Update PR according to comments 2024-03-25 11:23:00 +01:00
Ylva Selling
b347659510 Merge branch 'master' into issue/2645
# Conflicts:
#	src/documentation/documentationengine.cpp
#	src/properties/propertyowner.cpp
#	src/scripting/scriptengine.cpp
#	src/util/factorymanager.cpp
2024-03-25 11:14:09 +01:00
Alexander Bock
9efbc58c89 Add support for audio playback (#3085)
* Add support for audio playback using the SoLoud library
* Add 3D audio and some comments
* Add documentation and examples
2024-03-24 22:16:21 +01:00
Alexander Bock
3ba346a227 Remove fmt::format and replace with std::format 2024-03-24 20:19:14 +01:00
Alexander Bock
9878bfc8f7 Update submodules (#3136)
* Updating Ghoul and SGCT submodules
* Jenkins fixes
2024-03-24 17:22:41 +01:00
Alexander Bock
424429bce6 Update Kameleon submodule to fix compile error 2024-03-21 22:57:40 +01:00
Alexander Bock
ffe0babab5 Remove accidentally added dependency 2024-03-20 13:56:23 +01:00
Alexander Bock
e0ab7ae1d6 Coding style fixes 2024-03-19 14:49:44 +01:00
Emma Broman
f36868d1c4 Feature/textured points (#3068)
* WIP: Start usign texture arrays instead of just a single texture

Now the texture array is sucessfully created, sent over and sampled on the GPU

* Include information about the texture format alpha channel and do a conversion

* Make one draw wcall per texture array

* Add scale to size mapping and move to a separate component

* WIP: Make single textures work again, with texture array

Although this breaks the polygon cloud..

* Also make the polygon cloud work again

* Refactor rendering code

* handle array layer seprately from texture coordinates

* Make sure use size mapping uniform is always set

Fixes point cloud disappearing when multi-textures points are enabled

* Add has value check to size mapping

* Fix indentation

* Make sure points are rendered even when no texture is used

* Clean up texture handling a bit and add comment about storage creation

* Add comment and temporary asset changes

* Clean up handling of color mode (number of colro channels)

* Make interpolated points work with new rendering code

* Refactor

* Bring back check for valid index for color and size data

* Make sure to check if the provided data file exists

* Fix full path ont showing in error message

* Refactor rendering code a bit

* Change how the multitexture setup is configured in the asset and add documentation

Separating made documentation a lot easier..

* Add a todo comment for future discussion

* Add settings for texture compression

* Preserve aspects ratio of rendered textures

* Restructure input parameters for texture details

* Simplify color mode - we decided to not support grayscale

* Add option to set "useAlpha" from asset

* Enable texture per default and fix aspect ratio problem when no texture is used

* tiny refactor

* Fix polygon rendering that broke when adding texture compression

* Remove color in polygon shader

The color would be applied twice in rendering

* Restructure textures code and prevent loading the same texture twice

* Better handling of extra texture parameter in speck files

That does not lead to limitations in using dashes in texture names

* Add some docs and communicate texture mode to the user

* Fix so that single texture can be changed during runtime

* Allow changing compression and usealpha during runtime

* Update texture storage allocation to something that works in older OpenGL versions

* Add a check that checks if we use more texture layers than allowed

* Even more robust check of texture line in speck file (allow extra whitespaces)

* Update data mapping to include texture information and clean up code a bit

* Error handling and prevent loading non-used textures in texture map

* Update some docs

* Small cleanup

* Add one more error message for fault texture map file format

* Remove test version of tully images dataset

* Small refactor

* Add example asset

* Update Ghoul - for larger uniform cache

* Purge texture from ram when we're done with it

* Cleanup (comments, ugly png check, etc)

* Apply suggestions from code review

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

* Apply suggestions from code review

* Adress some more review comments and fix broken asset

* More code review fixes

* Read provided sizemapping parameter from asset

* Fix warnings from trying to shift 16 bit int 32 bits :)

* simplify datamapping hash string

* Update comment that was not 100% correct. The file names may be specified as relative paths to a folder

* Small update based on previous code review comments

* Fix multi textured points gui path not same as other points

* Update Folder description to reduce some confusion

* Apply suggestions from code review

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

* Prevent updates to polygon cloud texture during runtime

This lead to rendering problems.

* Add describing comments to data files

* Clarify why speck version is disabled per default

* Update and clarify confusing size mapping parameters

* Apply suggestions from code review

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

* Apply suggestions from code review

---------

Co-authored-by: Alexander Bock <alexander.bock@liu.se>
Co-authored-by: Ylva Selling <ylva.selling@gmail.com>
2024-03-19 13:17:25 +01:00
Alexander Bock
534f92c485 Second linting pass and adding .clang_tidy file (#3128) 2024-03-18 22:46:17 +01:00
Alexander Bock
6c89de373a Add the ability to convert TLE files to SPICE kernels and apply change to ISS (#3073)
* Fix orientation of ISS with dynamic frame kernel
2024-03-17 00:59:36 +01:00
Alexander Bock
2759c00e4b Pass through the code to address clang-tidy linting (#3083) 2024-03-17 00:58:50 +01:00
Emma Broman
75681d1d4c Always show all nodes in ImGui, even if SGN has guiHidden property true 2024-03-13 15:11:28 +01:00
Alexander Bock
9a6fe47d17 Fix up text formatting as path's no longer get quoted 2024-03-08 20:19:06 +01:00
Alexander Bock
fff6f8a627 General pass for code cleanup 2024-03-08 00:36:54 +01:00
Alexander Bock
2ed6907cf1 Remove the ability to implicitly load kernels from SpiceTranslation and SpiceRotations 2024-03-07 14:58:12 +01:00
GPayne
210e17b0bb Replaced std::getline usages with new ghoul::getline 2024-03-04 15:37:21 -07:00
Ylva Selling
fc2d48fa06 Rename functions for consistency 2024-03-04 14:14:23 +01:00
Ylva Selling
1ceb3d1f5a Merge remote-tracking branch 'origin/master' into issue/2645 2024-03-04 10:55:49 +01:00
Alexander Bock
041cb5c68b Prevent accessing the coloring parameters for the outline if none are specified 2024-03-01 16:40:20 +01:00
Adam Rohdin
5cb93f9afd Added point outlines for RenderablePointCloud (PR #3044)
Added point outlines for RenderablePointCloud
2024-03-01 10:16:02 +01:00
Micah Acinapura
d13974f289 Issue/1250 Increase timeout for gdal http and updated url for loading gibs (#3015)
* increase timeout for gdal http requests and updated url for loading gibs data

* revertingurl change as its no longer redirecting for me

* fixed includes, moved setting long time out to only when we load capabilities

* removed comment

* refix include

closes #1250
2024-02-27 10:31:10 -05:00
Ylva Selling
3fdac4a6d0 Move function from SceneLicenseWriter to DocumentationEngine and remove SceneLicenseWriter files 2024-02-26 09:10:52 +01:00
Ylva Selling
126c62dc3a Move json documentation generation from keybindings to documentation engine 2024-02-23 16:44:22 +01:00