diff --git a/modules/camera/src/vkcv/camera/PilotCameraController.cpp b/modules/camera/src/vkcv/camera/PilotCameraController.cpp index 4af8eec94cbf766e2ef806fb39bba21ecfaa09e0..1c7bb12679e57c9221465452f2fc41a539b6b2a0 100644 --- a/modules/camera/src/vkcv/camera/PilotCameraController.cpp +++ b/modules/camera/src/vkcv/camera/PilotCameraController.cpp @@ -127,7 +127,7 @@ namespace vkcv::camera { GLFWgamepadstate gamepadState; glfwGetGamepadState(gamepadIndex, &gamepadState); - float sensitivity = 100.0f; + float sensitivity = 1.0f; double threshold = 0.1; // handle rotations diff --git a/modules/camera/src/vkcv/camera/TrackballCameraController.cpp b/modules/camera/src/vkcv/camera/TrackballCameraController.cpp index cc72e94ba2778ad68bba9d22a857286a15aebe1b..8de2beb87d8f29415db611bfe0d17c5efd57a2a3 100644 --- a/modules/camera/src/vkcv/camera/TrackballCameraController.cpp +++ b/modules/camera/src/vkcv/camera/TrackballCameraController.cpp @@ -86,7 +86,7 @@ namespace vkcv::camera { GLFWgamepadstate gamepadState; glfwGetGamepadState(gamepadIndex, &gamepadState); - float sensitivity = 100.0f; + float sensitivity = 1.0f; double threshold = 0.1; // handle rotations diff --git a/projects/indirect_dispatch/src/App.cpp b/projects/indirect_dispatch/src/App.cpp index d3afc68196136e38186fffd9df2b2da13044b9bd..b5a0208620bf9e0d2d7a44b9173cf6b1e4385467 100644 --- a/projects/indirect_dispatch/src/App.cpp +++ b/projects/indirect_dispatch/src/App.cpp @@ -106,7 +106,7 @@ void App::run() { eDebugView debugView = eDebugView::None; eMotionBlurInput motionBlurInput = eMotionBlurInput::MotionVectorMaxTileNeighbourhood; - float objectVerticalSpeed = 0.005; + float objectVerticalSpeed = 5; float motionBlurMinVelocity = 0.001; int cameraShutterSpeedInverse = 30; float motionVectorVisualisationRange = 0.008; @@ -139,7 +139,7 @@ void App::run() { const glm::mat4 viewProjection = m_cameraManager.getActiveCamera().getMVP(); const auto time = frameEndTime - appStartTime; - const float fCurrentTime = std::chrono::duration_cast<std::chrono::milliseconds>(time).count(); + const float fCurrentTime = std::chrono::duration_cast<std::chrono::milliseconds>(time).count() * 0.001f; const float currentHeight = glm::sin(fCurrentTime * objectVerticalSpeed); const glm::mat4 modelMatrix = glm::translate(glm::mat4(1), glm::vec3(0, currentHeight, 0)); const glm::mat4 mvp = viewProjection * modelMatrix;