Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
einsteinathome
pulsatingscience
Commits
9ae59e9c
Commit
9ae59e9c
authored
Sep 14, 2017
by
Oliver Bock
Browse files
Alas! Needed to add Earth's inclination angle as a workaround for the source!
parent
b41c9409
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pulsaranimationwidget.cpp
View file @
9ae59e9c
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment