From dd8a40decd0b390f74e1e0c6b468174d52a036f9 Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Thu, 5 Sep 2013 11:41:16 -0700 Subject: [PATCH] Need to call resizeGL in order to update the projection matrix. --- interface/src/Application.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 69cce9648f..45a8b39868 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -1806,10 +1806,12 @@ void Application::update(float deltaTime) { const float EYE_OFFSET_SCALE = 0.1f; glm::vec3 position = _faceshift.getHeadTranslation() * EYE_OFFSET_SCALE; _myCamera.setEyeOffsetPosition(glm::vec3(-position.x, position.y, position.z)); + resizeGL(_glWidget->width(), _glWidget->height()); } else if (_webcam.isActive()) { const float EYE_OFFSET_SCALE = 5.0f; _myCamera.setEyeOffsetPosition(_webcam.getEstimatedPosition() * EYE_OFFSET_SCALE); + resizeGL(_glWidget->width(), _glWidget->height()); } } }