Commit Graph

57 Commits

Author SHA1 Message Date
f4a72f19a2 Added support for distance between camera position and camera target 2019-06-13 09:12:44 +02:00
ccc522dd2b Added imgui debug dialog for camera statistics 2019-05-20 09:39:57 +02:00
6a06a2882c Camera refactoring: Frustrum calculations moved into Camera class 2019-05-16 15:54:11 +02:00
72e7c07401 Flip X mouse deltas if bed is upside down (when camera up vector has negative Z) 2019-04-30 15:09:25 +02:00
0f657b772b Camera refactoring
1) All camera related OpenGL calls moved into class

2) The Camera class now stores the view matrix, the projection matrix and the viewport

3) The Camera class now exposes methods to get the camera orientation vectors, the camera position, the view matrix, the projection matrix and the viewport

4) All the code operating on the camera or requiring camera data has been modified to use the new methods
2019-04-01 10:00:10 +02:00
444002e156 Code cleanup 2019-03-08 12:03:31 +01:00
55342be4a1 Use unique camera shared by 3d view and preview (experimental) 2019-03-08 12:03:17 +01:00