Commit c9bfa5fa authored by Oliver Bock's avatar Oliver Bock

Finally, added new shiny backdrop

* Increased texture size to 2048x2048
* What about tiling? Is it worth it?
parent ad717b74
......@@ -280,6 +280,26 @@ void PulsarAnimationWidget::paintGL()
glPopMatrix();
glPopMatrix();
// save current state
glMatrixMode(GL_PROJECTION);
glPushMatrix();
glLoadIdentity();
glOrtho(0, width(), 0, height(), 0.1f, 501.0f);
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
glLoadIdentity();
// draw backdrop (independent parallel projection)
glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, mat_specular);
glTranslatef(0.0f, 0.0f, -501.0f);
drawTexture(QPointF(0.0f, 0.0f), m_backgroundTexture);
// restore original state
glMatrixMode(GL_PROJECTION);
glPopMatrix();
glMatrixMode(GL_MODELVIEW);
glPopMatrix();
// draw orbital planes
if(m_cameraInteraction) {
glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, translucent);
......
src/resources/texture_background.png

36.2 KB | W: | H:

src/resources/texture_background.png

87.8 KB | W: | H:

src/resources/texture_background.png
src/resources/texture_background.png
src/resources/texture_background.png
src/resources/texture_background.png
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment