From ec8df1cdb15d1d136407e2943076bfd93a2e52a4 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 16 May 2022 10:54:01 +0200 Subject: Remove restriction on free camera option (allow for sphere modes) --- src/main.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index fc75397..592e3dd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1152,9 +1152,8 @@ bool CMainApplication::HandleInput() m_reset_rotation = glm::inverse(hmd_rot); } - if(projection_mode == ProjectionMode::SPHERE || projection_mode == ProjectionMode::SPHERE360 || !free_camera) { + if(!free_camera) hmd_pos = current_pos; - } vr::InputAnalogActionData_t analogData; if ( vr::VRInput()->GetAnalogActionData( m_actionAnalongInput, &analogData, sizeof( analogData ), vr::k_ulInvalidInputValueHandle ) == vr::VRInputError_None && analogData.bActive ) @@ -1771,9 +1770,7 @@ void CMainApplication::AddCubeToScene( const glm::mat4 &mat, std::vector long columns = 32; long rows = 32; double angle_x = 3.14; - double angle_y = 3.14; - double radius_depth = 1.0; - double radius_height = 0.5; + double radius_height = 1.0; double radius = radius_height * width_ratio * 0.5; for(long row = 0; row < rows; ++row) { -- cgit v1.2.3