From 9ae59e9c75de22f158808fefb2f9f10eb31a0fc9 Mon Sep 17 00:00:00 2001 From: Oliver Bock <oliver.bock@aei.mpg.de> Date: Thu, 14 Sep 2017 16:13:36 +0200 Subject: [PATCH] Alas! Needed to add Earth's inclination angle as a workaround for the source! --- src/pulsaranimationwidget.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pulsaranimationwidget.cpp b/src/pulsaranimationwidget.cpp index e333037..993020f 100644 --- a/src/pulsaranimationwidget.cpp +++ b/src/pulsaranimationwidget.cpp @@ -357,6 +357,10 @@ void PulsarAnimationWidget::paintGL() // draw source glPushMatrix(); { + // The second rotation isn't right: + // -> should be around x-axis (not z) and not mess up source iota from below! + // -> does the x-axis not rotate with its object (around the first y-rotation)? + // -> putting them in their own matrix doesn't help either glRotatef(-31.384, 0.0, 0.0, 1.0); glRotatef(45.093, 0.0, 1.0, 0.0); @@ -364,7 +368,7 @@ void PulsarAnimationWidget::paintGL() glPushMatrix(); { - glRotatef(m_sourceInclination, 0.0, 0.0, 1.0); + glRotatef(m_sourceInclination+23.5, 0.0, 0.0, 1.0); glRotatef(180, 0.0, 1.0, 0.0); glRotatef(m_sourceIota, 0.0, 1.0, 0.0); -- GitLab