Commit Graph

4251 Commits

Author SHA1 Message Date
Jonathan Bosson
542e4c0fcb changes during feedback and cleanup 2017-05-12 15:55:20 -06:00
Jonathan Bosson
e28897eee7 allow refocus on selected node in case of double tap 2017-05-12 15:42:47 -06:00
Jonathan Bosson
90faf09fa2 fix .csv print on unit test 2017-05-12 15:27:27 -06:00
Jonathan Bosson
e854b1de3f cleanup and fixes from code review 2017-05-12 11:18:48 -06:00
Jonathan Bosson
fb79cfe5f3 classes defined in module class and cleanup 2017-05-12 11:18:17 -06:00
Jonathan Bosson
f10c3783fa set lmverbose to false as default 2017-05-12 09:42:46 -06:00
Alexander Bock
3a6f2a54e5 Add some comments 2017-05-11 23:25:13 -04:00
Jonathan Bosson
00ce0dd56f improvement on unit test 2017-05-11 16:45:36 -06:00
Jonathan Bosson
cb3e31212a do a unit test on the LM algorithm and save the data to .csv 2017-05-11 13:37:45 -06:00
Jonathan Bosson
393e65d22b set static time on unit testing 2017-05-11 13:36:53 -06:00
Jonathan Bosson
9bc653ec01 save lm data for plots later 2017-05-10 17:07:54 -06:00
Jonathan Bosson
08e3ac8a6b put constants into properties instead 2017-05-10 15:09:29 -06:00
Jonathan Bosson
232ca9c26f cleanup in guimode 2017-05-09 13:42:35 -06:00
Jonathan Bosson
1ca9b144fc allow for spinning on directTouchMode if global/local rot was big enough 2017-05-09 13:38:04 -06:00
Jonathan Bosson
b312eb308d activate _guiON if gui is shown (F1), added doubleTap tracking (used for select node/zoom) 2017-05-05 15:10:11 -06:00
Jonathan Bosson
437550505e The imgui can now be controlled by touch by emulating the mouse in '_guiON' 2017-05-05 14:08:17 -06:00
Jonathan Bosson
7580688f88 modification to allow gui control through touch 2017-05-05 14:00:12 -06:00
Jonathan Bosson
824cd1be05 guiMode infrastructure, just need to emulate mouse correctly 2017-05-04 17:29:30 -06:00
Jonathan Bosson
f3bf3fb5c7 start of guiMode implementation 2017-05-02 16:08:01 -06:00
Jonathan Bosson
7f7b40d736 solve snapping bug by not overwriting selected surface coordinates in case levmarq doesn't converge. 2017-05-02 15:25:22 -06:00
Jonathan Bosson
8f36159cba add prints of gradient if verbose 2017-05-02 15:24:42 -06:00
Jonathan Bosson
11c2d063c0 decrease velocity as we get closer to the planet more smoothly, fixed 'lose-focusnode'-bug with direct touch 2017-04-27 15:49:34 -06:00
Jonathan Bosson
bbe99f1a11 fix misinterpreted taps 2017-04-27 14:32:35 -06:00
Jonathan Bosson
c54f485b0d first pass on scaling _sensitivities with screen size 2017-04-27 14:03:33 -06:00
Jonathan Bosson
86d02fc98b Refactor TouchInteraction class (removed unneeded variables/functions and went back to switch-case for interpret() 2017-04-27 12:44:32 -06:00
Jonathan Bosson
9111151913 Using slerp to interpolate to new local rotation when choosing new focusnode, tried central difference on gradient calc to resolve zoom/roll bug 2017-04-26 16:10:23 -06:00
Jonathan Bosson
b5a058121d put direct-manipulation in its own function, dynamic time step for all but the zoom-DOF 2017-04-25 17:06:46 -06:00
Jonathan Bosson
556e81afeb fix diagonal-orbit-only bug and cleanup of code 2017-04-25 13:11:40 -06:00
Jonathan Bosson
11906b5aaf disable warnings for now 2017-04-24 09:11:01 -06:00
Jonathan Bosson
9e869fb384 merge with master 2017-04-24 08:53:38 -06:00
Jonathan Bosson
b8e6e06aef include both interaction modes 2017-04-24 08:38:16 -06:00
Jonathan Bosson
3157ac4378 minimization method now finds best-fit values that manipulates the camera state such a way that the error in screen-space is < epsilon 2017-04-21 16:35:56 -06:00
Jonathan Bosson
c54039225d Rotation now uses euler angles and modulus to make use of camera rotational axis, 4th DOF is set to be roll 2017-04-21 13:20:02 -06:00
Jonathan Bosson
c129bf1112 find minimum vector q that applies to the transform in camera space 2017-04-20 17:02:19 -06:00
Alexander Bock
4511d09b10 - Correctly detect isRegularRendering flag
- Render GUI in the PostDraw function in order render it not on the cubefaces

Closes #259
2017-04-20 18:00:31 -04:00
Jonathan Bosson
0542e7cef5 Levmarq gives right q values, need to transform them to camera space correctly 2017-04-20 15:22:53 -06:00
Alexander Bock
99a128b945 Only update ScreenspaceImage texture when it is dirty 2017-04-20 11:57:02 -04:00
Alexander Bock
28e99edd8e Compile fix with RenderableFieldLines
Update Ghoul repository
2017-04-20 11:56:52 -04:00
Jonathan Bosson
099c343693 levmarq using correct gradient (finite derivative) and using the error to determine next delta step 2017-04-19 18:14:47 -06:00
Jonathan Bosson
0e1b399458 instead of projecting to screen-space the error is now calculated in modelspace (tracing current viewplane pos to surface coordinates) 2017-04-18 16:52:16 -06:00
Jonathan Bosson
58796ca390 func in levmarq now handles the distance between two screen points (one projected from the spheres surface), need to define gradient correctly 2017-04-18 15:57:07 -06:00
Alexander Bock
bf16c76add Feature/opengldebug (#290)
* Add InLIstVerifier

* Initial implementation of OpenGL debug messages

* Moving functionality into Ghoul

* Compile fix

* Update Ghoul repository
Make use of the moved OpenGL debug functions

* Update Ghoul to fix GCC and Clang compiler errors

* Add unit test for IntListVerifier
2017-04-18 14:29:23 -04:00
Emil Axelsson
4b38b33e18 Clean up code for planet radius and bounding sphere calculation (#289)
- Remove some power scaled coordaintes.
- Remove spice dependency from sphere geometry.
- Remove dead code.
2017-04-18 09:58:27 +02:00
Alexander Bock
481ee7d821 Add extra gdal header that removes external warnings 2017-04-17 18:40:19 -04:00
Alexander Bock
0db98afe6e - Enable caching of TileProviders at startup time
- Enable path tokens in filename for temporal tile providers
 - Add support for relative paths in temporal tile providers
 - Set the GDAL temp dir to the BASE_PATH
 -
2017-04-17 18:38:36 -04:00
Alexander Bock
26e4354c40 Add cache to Moon textures 2017-04-17 18:36:50 -04:00
Alexander Bock
78c109012a Fix shader compiler error with screenspace renderable 2017-04-17 18:36:29 -04:00
Alexander Bock
a0d30b80e5 Add YYYYMMDD_hhmmss time format 2017-04-17 18:36:10 -04:00
Alexander Bock
d5307faf31 Clean earth.mod
Add Sea Ice concentration
2017-04-17 18:35:37 -04:00
Alexander Bock
dd32a812e1 Change tabs to spaces 2017-04-17 15:00:15 -04:00