Emma Broman
04130fe68a
Do some initial cleanup
2020-09-25 16:11:56 +02:00
Emma Broman
e56a8b6ba9
Resolve merge conflict
2020-05-18 10:24:39 +02:00
Emma Broman
dd61dd9733
Remove approximated method, since online method is efficient enough
2020-05-18 10:16:54 +02:00
Emma Broman
3fde62b7ca
Get changes from main branch and resolve merge conflict
2020-05-14 16:03:24 +02:00
Emma Broman
cb88f892c7
Use a constant tolerance for Newton's
2020-05-13 14:54:38 +02:00
Emma Broman
79d5af5d57
Increase nr iteration for Newton's method + small refactor
2020-05-13 14:38:21 +02:00
Emma Broman
f003274e62
Cleanup
2020-05-12 11:15:11 +02:00
Emma Broman
6811ed9025
Compute arc length using Gaussian quadrature instead of Simpson's
2020-05-12 10:53:40 +02:00
Emma Broman
b5a3d868ec
Arc length reparameterization by computing sample pairs
...
Curve parameter (u) samples are computed from arc length values using a combination of Newton's method and bisection. Approximated curve parameter is comuted using a linear fit of the samples (OBS! Should be improved to a higher order later
)
2020-05-12 10:43:04 +02:00
Emma Broman
a97d85b99b
Fix faulty comparisons in Bezier3
2020-05-07 09:03:24 +02:00
Emma Broman
b04528fa8a
Get rid of some warnings in Bezier3
2020-05-01 14:46:04 +02:00
Lingis
3b2f2ff8e9
Adapt to rebase
2020-04-27 14:43:04 +02:00
Emma Broman
7aecf87d5b
cleanup
2020-04-27 14:42:58 +02:00
Emma Broman
ae5b5ec417
Prototype curve for creating collision free paths
2020-04-27 14:42:00 +02:00
Emma Broman
bf2c800831
Make PathSegment responsible for speed, rotation and curve initialization
2020-04-25 13:12:28 +02:00
Emma Broman
f9c0ec202f
Refactor rotator class using object orientation
2020-04-22 11:11:21 +02:00
Emma Broman
a9005cdcbb
Started implementing pause/stop behaviors
2020-04-15 13:44:53 +02:00
Emma Broman
fbd383491a
make sure to always include 1.0 in _parameterIntervals
2020-04-02 21:15:08 +02:00
Emma Broman
39151bda2e
Minor refactor
2020-03-30 14:41:36 +02:00
Emma Broman
76de04d1d7
Make PathSegment responsible for path traversal
2020-03-30 14:24:45 +02:00
Emma Broman
1524a207f7
store the valid bounding sphere once computed
2020-03-10 15:08:51 -04:00
Emma Broman
ed47272e8e
Replace CameraState with a Waypoint and CameraPose struct
2020-03-10 11:07:03 -04:00
Emma Broman
3a38792f67
consistent types
2020-03-06 11:52:16 -05:00
Emma Broman
d704c95ca0
Move rotation logic into its own class
2020-02-27 13:30:39 -05:00
Emma Broman
d606a569bc
minor refactor
2020-02-27 10:48:44 -05:00
Emma Broman
aa0ae9bc73
rename function valueAt to positionAt
2020-02-27 10:07:51 -05:00
Emma Broman
3f5123ffb6
Epsilon variable for double comparsons
2020-02-25 17:02:24 -05:00
Emma Broman
6fc12fd2c7
Compute length for other curve types
2020-02-17 12:53:59 -05:00
Emma Broman
65cf8a79da
Rename interpolation parameter to u, to reduce confusion about what is related to time
2020-02-17 10:30:36 -05:00
Emma Broman
3425604a9d
Improve arc length approximation by using Simpson's method
2020-02-14 15:00:22 -05:00
Emma Broman
1f2840c320
Preparatory refactoring for computing curve position absed on travelled distance
2020-02-13 14:37:08 -05:00
Emma Broman
3ead8a92dd
Reparameterization of Bezier3 now works
2020-02-12 15:34:14 -05:00
Lingis
066b91b076
Not correct, wrong shape of curve created in Bezier::valueAt
2020-02-12 11:13:49 -05:00
Lingis
bf434ee3ee
Same anchor bug fix and readability in bezier3
2020-02-06 13:37:10 -05:00
Lingis
62c812f73c
Merge branch 'bezier-test' into thesis/2019/camera-paths
2020-02-06 10:42:29 -05:00
Lingis
2370679fce
Removed Bezier, Bezier2 and Linear2 curve types
2020-02-05 16:41:29 -05:00
Lingis
ef076acadb
readability and fixed correct direction of tangents
2020-02-05 16:09:33 -05:00
Lingis
cf8472cf34
Added accessors for rendering control points, for debugging
2020-02-03 11:19:31 -05:00
Lingis
9709a9c171
Merge
2020-01-26 17:39:24 -05:00
Lingis
c1c96cd81d
Bezier3 with more special cases handled and lookAt rotation
2020-01-26 17:22:25 -05:00
Emma Broman
c44fff4b22
Temporary solution for handling pauses in instruction
2020-01-24 11:07:25 -05:00
Lingis
88b7dbe3eb
merge conflict fix
2020-01-23 15:48:55 -05:00
Lingis
4507ac69fe
Bezier3 added and set as default curve
2020-01-23 15:37:10 -05:00
Emma Broman
146fc4ce8d
Approximate curve length
2020-01-22 11:02:34 -05:00
Emma Broman
b528c6d4ab
Refactor helper interpolating functions a bit
2020-01-16 14:38:12 -05:00
Emma Broman
b9a34cd0f0
Fix issues with circular dependencies
2020-01-16 14:21:50 -05:00
Emma Broman
6a6d2ca973
Split path curve code into separate file
2020-01-16 10:30:13 -05:00