Commit Graph

6000 Commits

Author SHA1 Message Date
Emil Wallberg
be3a301dc0 Blackhole as background decupled blackhole from anchor.
Fix so that the blackhole can be used as a background to other 3D Objects and there for had to make it so that the blackhole rendering is independet of the camera anchor node
2025-03-31 19:31:43 +02:00
Emil Wallberg
d3d2a6069e Fixed zoom distortion bugg
Co-Authored-By: Wilhelm Björkström <143391787+Grantallkotten@users.noreply.github.com>
2025-03-31 15:58:25 +02:00
Emil Wallberg
99d2f08817 Parallax effect using multilayerd star maps
Co-Authored-By: Wilhelm Björkström <143391787+Grantallkotten@users.noreply.github.com>
2025-03-31 13:17:52 +02:00
Emil Wallberg
4a46f79ae1 Optimizations for Blackhole fragment shader performance.
Co-Authored-By: Wilhelm Björkström <143391787+Grantallkotten@users.noreply.github.com>
2025-03-27 16:48:57 +01:00
Emil Wallberg
0cb677d69c Better bleed between stars from KD tee
Co-Authored-By: Wilhelm Björkström <143391787+Grantallkotten@users.noreply.github.com>
2025-03-27 15:02:33 +01:00
Emil Wallberg
724aecb3b0 KDTree refactor and some star render tweaks
Co-Authored-By: Wilhelm Björkström <143391787+Grantallkotten@users.noreply.github.com>
2025-03-26 16:54:29 +01:00
Emil Wallberg
e4ff077b52 Viewport screen size assert message
Co-Authored-By: Wilhelm Björkström <143391787+Grantallkotten@users.noreply.github.com>
2025-03-26 11:48:44 +01:00
Emil Wallberg
a9b197a5e0 Resolution dynamically updates, and warning fixes
Co-Authored-By: Wilhelm Björkström <143391787+Grantallkotten@users.noreply.github.com>
2025-03-26 11:40:25 +01:00
Wilhelm Björkström
edddb2909f Star brightness adjustment based on dist to the viewer
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-26 10:32:59 +01:00
Wilhelm Björkström
66827a06d2 Tweek of the star size for less clutter
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-26 09:13:59 +01:00
Wilhelm Björkström
802c4db98e Fixed blackhole readable to work with fisheye camera
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-25 16:49:45 +01:00
Wilhelm Björkström
88dfbf134d Merge branch 'master' into thesis/2025/black-hole 2025-03-25 14:30:20 +01:00
Wilhelm Björkström
304304e6bc Star colours, and translation
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-25 14:28:31 +01:00
Wilhelm Björkström
b8a854eafa Cuda changed r_0 to be const
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-25 11:09:17 +01:00
Alexander Bock
e93ad7910f Rename propertyowner and gui to geographic overlays (#2883)
Breaking change
2025-03-24 17:12:47 +01:00
Wilhelm Björkström
db154393ec Merge branch 'master' into thesis/2025/black-hole 2025-03-21 14:21:35 +01:00
Wilhelm Björkström
5594b79ec8 Added KDTree stars to black hole render
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-21 14:20:16 +01:00
Wilhelm Björkström
4e35cc3725 Changed rendering camera to the one from RenderData.
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-21 14:18:58 +01:00
Alexander Bock
28d0a778d5 Add proper motion of stars (#3561) 2025-03-20 09:55:19 +01:00
Alexander Bock
edd123197f Give the GeoJSON component in the RenderableGlobe a better name (closes #2883) 2025-03-19 13:31:13 +01:00
Wilhelm Björkström
216831fa6f Merge branch 'master' into thesis/2025/black-hole 2025-03-19 08:20:40 +01:00
Wilhelm Björkström
5568ceb3c7 Varible names changed to stay consistent
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-19 08:19:38 +01:00
Alexander Bock
2e191b6bd2 Second merge fix 2025-03-17 11:42:57 +01:00
Alexander Bock
ab84ca7ad6 Fix merge issue 2025-03-17 11:37:32 +01:00
Alexander Bock
5008aa7cd7 Adding documentation and examples (#3541)
- Make the SourceType and DestinationType parameters required in the DashboardItemAngle
  - Shift the "UTC" string in the DashboardDate from the FormatString to the TimeFormat
  - Make the SourceType and DestinationType parameters for the DashboardItemDistance required
  - Add new "Deltatime" option to the DashboardItemFramerate.  Add examples for the DashboardItemFramerate
  - Fix issue where the inputstate would not update if no option was selected
  - Automatically disable simplification if a unit is requested in the asset for a DashboardItemSimulationIncrement or DashboardItemVelocity
2025-03-14 11:25:26 +01:00
Alexander Bock
fc9b2ab091 Increase the compilation speed (#3545)
- Remove toStringConversion function and move json_helper include out of numericalproperty.inl
  - Optimizing some header files
  - Remove duplicate Lua functions from properties. 
  - Move List,Option,Selection,String, and TriggerProperty into misc folder
  - Move lua_helper include out of inline file
  - Add lua_helper to the precompiled header
  - Declare property functions as final. No longer have OptionProperty derive from IntProperty
  - Remove Dictionary header from properties
2025-03-14 11:22:40 +01:00
Wilhelm Björkström
70cb3c2a57 Changed blackhole mass to represent Sagittarius A*
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-13 16:36:18 +01:00
Wilhelm Björkström
e59f39e502 Camera navigation in local and global space
CameraRotationDecomposition decomposeCameraRotationSurface made public in order to acces global and local camera rotations.

Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-13 13:31:54 +01:00
Wilhelm Björkström
91fdc1ea7e Skybox path updated
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-12 17:10:53 +01:00
Wilhelm Björkström
4b4f2687cb Rotation and dummy skybox texture added
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-12 17:04:06 +01:00
Wilhelm Björkström
7a2a8a19cb Import for light years conversition
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-12 17:03:11 +01:00
Wilhelm Björkström
b3d6eff39f Exit program bugfix
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-12 16:51:40 +01:00
Wilhelm Björkström
714a1df3a8 Clamp lerp [0, 1]
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-12 16:48:00 +01:00
Wilhelm Björkström
495d8559fa Units in light years and interaction sphere
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-12 16:46:32 +01:00
Wilhelm Björkström
e0e40d0625 New init value function for dudphi
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-12 16:44:37 +01:00
Wilhelm Björkström
81f3a6b0a4 Merge branch 'master' into thesis/2025/black-hole 2025-03-12 09:22:11 +01:00
Wilhelm Björkström
825a2a6f6d Cleanup in C++ files
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-12 09:21:44 +01:00
Wilhelm Björkström
fb61984c85 Re render on r distance change
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-12 09:20:37 +01:00
Wilhelm Björkström
29b30dc62d Clean up in blackhole fragment shader
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-11 15:01:18 +01:00
Alexander Bock
0e815559d2 Improve the error message for FixedRotation (closes #2445) 2025-03-10 14:56:59 +01:00
Wilhelm Björkström
4cccc132f6 Merge branch 'master' into thesis/2025/black-hole 2025-03-10 14:50:45 +01:00
Wilhelm Björkström
cfe824bddc Interpolation between angels for camera to env-map
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-10 14:49:53 +01:00
Alexander Bock
9b5c7b3080 Fix merge error 2025-03-10 14:31:04 +01:00
Alexander Bock
7328a94fb1 TimeFrame specification and status (#3553)
* Makes Translation/Scale/Rotation all able to have a TimeFrame, not just the SpiceRotation.  Add read-only BoolProperty to the TimeFrame that indicates whether the current time is a in the timeframe

---------

Co-authored-by: Emma Broman <emma.broman@liu.se>
2025-03-10 13:53:32 +01:00
Wilhelm Björkström
25df480b72 Replaced linear search to BST in fragment shader
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-10 11:33:44 +01:00
Wilhelm Björkström
d703fd2746 Fixed warnings and general clean up in C++
Co-Authored-By: Emil Wallberg <49481622+EmilWallberg@users.noreply.github.com>
2025-03-10 11:33:08 +01:00
Wilhelm Björkström
aeb491078f Black hole placment movment
Temporaly made camera distance to acerNode handle moving the placment of the black hole in the scene
2025-03-07 11:40:49 +01:00
Wilhelm Björkström
90fadafddf Change of varible name in CUDA to better match C++ files 2025-03-07 09:49:44 +01:00
Wilhelm Björkström
8e99e99297 Change in one varible name in renderblackhole 2025-03-07 09:48:57 +01:00
Wilhelm Björkström
11a6e1749f Fixe for warnings, variable conversations, and unused variables 2025-03-07 09:35:37 +01:00