Commit Graph

216 Commits

Author SHA1 Message Date
Emma Broman 39c8f8283f Tiny refactor/cleanup 2021-06-04 16:03:43 +02:00
Emma Broman 7f9d8b8da6 Simplify speed function a bit (less object oriented) 2021-06-04 15:55:50 +02:00
Emma Broman 81b5821d0e Update copyright year 2021-06-04 15:34:31 +02:00
Emma Broman 0b65c798cd Rename instruction to pathinstruction 2021-06-04 15:15:46 +02:00
Emma Broman fd9521db41 Remove support for multiple path segments
A "path" is now only one "segment"
2021-06-04 15:05:01 +02:00
Emma Broman 8a08fa43e4 Remove possiblity to add stops in between segments 2021-06-04 13:34:38 +02:00
Emma Broman 542078cc48 Another cleanup attempt 2021-06-03 17:04:21 +02:00
Emma Broman 9e1d93325f Start trying to refactor path creation and add documentation 2021-06-03 15:45:08 +02:00
Emma Broman a6b8157bff Adapt to new master (filesystem changes) and cleanup slightly 2021-06-03 09:02:02 +02:00
Emma Broman b762ccad98 Disable root finding for now, as it leads to motion discontinuities
- Includes an attempt to enhance the root finding result using Bisection for the initial guess
- Also remove scaling of parameter intervals to match segment lengths, as this messes up the precision for short segments
2021-05-03 10:58:02 +02:00
Emma Broman c6ebb51293 Fix cast warning 2021-05-03 10:12:01 +02:00
Emma Broman 26978ea1b1 Make randering of path work again 2021-04-30 13:46:43 +02:00
Emma Broman 1bbba17a69 Fix problems with loading textures 2021-04-29 16:47:37 +02:00
Emma Broman 1025c6fec6 Make the code compile with changes from master 2021-04-29 13:52:41 +02:00
Emma Broman 79a42702cd hasFinished should return true if there is no path 2020-11-19 16:00:37 +01:00
Emma Broman 737e478809 Cleanup and fix faulty return value 2020-11-19 10:32:39 +01:00
Emma Broman 8498b3fd6d Add Lua function to ask module if a camera path is running 2020-11-18 13:49:38 +01:00
Emma Broman 2c3ec08329 Fix faulty property string 2020-11-17 11:50:09 +01:00
Emma Broman 319e192c7c Handle interpolation of up vector more smoothly 2020-11-17 10:25:49 +01:00
Emma Broman e0f6fc5519 Adapt up direction choice to look good for Earth and Saturn 2020-11-17 10:01:37 +01:00
Emma Broman 0dd6d73eb3 Add option to compute camera up direction from transform of target 2020-11-17 09:48:07 +01:00
Emma Broman ec5f81c00e Add a function to go to a geodecic positon on a renderable globe 2020-11-06 16:20:42 +01:00
Emma Broman 68ca45addf No longer silently pause the simulation time when starting a camera path
And if user unpauses during motion, pause again.
2020-11-05 14:35:45 +01:00
Emma Broman 3b08862fc6 Avoid checking agains espilon at the end of curve interpolation
For long paths this epsilon corresponds to a large portion of the curve and will result in clipping to the start and/or end state
2020-11-05 11:44:12 +01:00
Emma Broman 73af17b029 Add a function to go to a specific height 2020-11-05 11:21:51 +01:00
Emma Broman 15477c291e Add option to always pick the closest target position, if desired
Might be useful within the solar system
2020-11-05 10:41:58 +01:00
Emma Broman e9b2b6ff1c Make zoomoutoverview curve less pointy is the middle
And move some variables around
2020-11-05 09:49:08 +01:00
Emma Broman 2a1aedcc79 Handle target node being the Sun (resulted in zero vector) 2020-11-05 08:45:33 +01:00
Emma Broman f786af7b94 Rename some files and functions to better match code standard 2020-11-04 16:13:03 +01:00
Emma Broman 2447dc3b0f Move curve implementations to their own folder 2020-11-04 16:12:58 +01:00
Emma Broman c916545ec5 Print info when a path is stopped 2020-10-30 13:28:11 +01:00
Emma Broman ba3f5124f1 Use Simpson's rule for speed integration computation 2020-10-30 09:57:07 +01:00
Emma Broman f982e9962b Some cleanup 2020-10-29 14:30:52 +01:00
Emma Broman 37b92aa677 Better naming 2020-10-29 14:26:36 +01:00
Emma Broman f2fafc27b4 Cleanup + remove old curve type 2020-10-29 11:50:06 +01:00
Emma Broman 58c7c983a9 Move gaussian quadrature into separate function 2020-10-29 11:40:31 +01:00
Emma Broman c1df1d1e37 Incresae precision of per frame integration along path 2020-10-29 11:23:29 +01:00
Emma Broman 74c1979400 Minor cleanups 2020-10-27 08:52:12 +01:00
Emma Broman 353b950fc6 Adapt to new master: Pointer notation for globals 2020-10-27 08:51:49 +01:00
Emma Broman 4cdcf8b0a0 Start adding const qualifiers 2020-09-25 16:28:00 +02:00
Emma Broman 04130fe68a Do some initial cleanup 2020-09-25 16:11:56 +02:00
Emma Broman d79d77f7e5 Add missing header 2020-09-25 15:51:10 +02:00
Emma Broman 723530d525 Use quintic instead of sixtic speed, for better responsiveness and match with orbit stop behaviour 2020-08-17 11:28:11 +02:00
Emma Broman f2d3be8257 Use a smaller delta, to reduce visual artefacts 2020-08-17 11:10:52 +02:00
Emma Broman 327d0090fa Add forgotten string concatentation 2020-08-17 10:36:47 +02:00
Emma Broman 925138c4cf Add possibility to change size of rendered spheres/lines 2020-08-16 21:04:17 +02:00
Emma Broman cc52dc6277 Add property for scaling default speed - to use in dome presentation 2020-08-16 11:32:39 +02:00
unknown d8995a5a61 New length of middle tangents for a more parametric shape 2020-06-09 15:45:20 +02:00
unknown 86e3819ea9 Added new curve type ZoomOutOverview 2020-06-09 11:47:55 +02:00
unknown 6d97231d71 Removed lines added by mistake! 2020-06-09 11:16:30 +02:00