Skip to content
Snippets Groups Projects
Commit d13faf25 authored by Oliver Bock's avatar Oliver Bock
Browse files

Pulsar orbital plane should lower than companion's (change of order required)

parent 129584a5
No related branches found
No related tags found
No related merge requests found
...@@ -278,16 +278,6 @@ void PulsarAnimationWidget::paintGL() ...@@ -278,16 +278,6 @@ void PulsarAnimationWidget::paintGL()
if(m_cameraInteraction) { if(m_cameraInteraction) {
glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, translucent); glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, translucent);
// pulsar
glPushMatrix();
glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
glTranslatef(0.0f, 0.0f, -0.1f);
gluDisk(m_quadricPulsarOrbitPlane,
m_pulsarSemiMajorAxis - 0.25f,
m_pulsarSemiMajorAxis + 0.25f,
64, 1);
glPopMatrix();
// companion // companion
glPushMatrix(); glPushMatrix();
glRotatef(90.0f, 1.0f, 0.0f, 0.0f); glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
...@@ -297,6 +287,16 @@ void PulsarAnimationWidget::paintGL() ...@@ -297,6 +287,16 @@ void PulsarAnimationWidget::paintGL()
m_companionSemiMajorAxis + 0.25f, m_companionSemiMajorAxis + 0.25f,
64, 1); 64, 1);
glPopMatrix(); glPopMatrix();
// pulsar
glPushMatrix();
glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
glTranslatef(0.0f, 0.0f, 0.1f);
gluDisk(m_quadricPulsarOrbitPlane,
m_pulsarSemiMajorAxis - 0.25f,
m_pulsarSemiMajorAxis + 0.25f,
64, 1);
glPopMatrix();
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment