summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-01-29 14:00:14 (GMT)
committerMarius Kintel <marius@kintel.net>2012-01-29 14:00:14 (GMT)
commite6222d95205887124f670db65d8f9e4930af602b (patch)
treefa447d7423aae490dc0c1017618d986ac8a92116
parent65181c9ad63f2631c0add7fc1a68bf7b3388ac58 (diff)
parente342fa734a88d9b4e4de21caa70ca81d206ba369 (diff)
Merge pull request #74 from openscad/orthofix
fix ortho projection bug rept by nop head + Triffid Hunter
-rw-r--r--src/glview.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/glview.cc b/src/glview.cc
index 499e555..0f9ec5b 100644
--- a/src/glview.cc
+++ b/src/glview.cc
@@ -371,6 +371,7 @@ void GLView::setupOrtho(double distance, bool offset)
glOrtho(-w_h_ratio*l, +w_h_ratio*l,
-(1/w_h_ratio)*l, +(1/w_h_ratio)*l,
-FAR_FAR_AWAY, +FAR_FAR_AWAY);
+ gluLookAt(0.0, -viewer_distance, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0);
}
void GLView::paintGL()
@@ -450,8 +451,6 @@ void GLView::paintGL()
setupOrtho(1000,true);
- gluLookAt(0.0, -1000, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0);
-
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glRotated(object_rot_x, 1.0, 0.0, 0.0);
contact: Jan Huwald // Impressum