From 21db0b15734ae99530f0a82382892acaed10b990 Mon Sep 17 00:00:00 2001 From: Oliver Bock <oliver.bock@aei.mpg.de> Date: Sun, 30 Nov 2008 19:46:15 +0100 Subject: [PATCH] Set camera's up-vector statically to y-axis * Seems to fix pan/tilt control * Tilt probably needs some fine tuning in boundary check/handling --- src/pulsaranimationwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pulsaranimationwidget.cpp b/src/pulsaranimationwidget.cpp index 9dca1f7..bcf4a55 100644 --- a/src/pulsaranimationwidget.cpp +++ b/src/pulsaranimationwidget.cpp @@ -117,7 +117,7 @@ void PulsarAnimationWidget::paintGL() gluLookAt(m_cameraPosX, m_cameraPosY, m_cameraPosZ, 0.0, 0.0, 0.0, - 0.0, 2.0, -5.0); + 0.0, 1.0, 0.0); // TODO: should be located elsewhere static GLfloat no_mat[] = { 0.0, 0.0, 0.0, 1.0 }; -- GitLab