Hello.<br><br>I am playing with the QGLWidget and I have some problems. <br><br>I am able to draw an object and rotate/zoom/move it. <br>My problem now is that I&#39;d like to draw the object in 4 viewport (no problem here) but with different point of view.
<br>Basically I am trying to draw the 3 basic orthogonal view (XY, XZ, YZ) and a perspective view. <br>I am not interested in a 2D view for the orthogonal projections, since I will need the full 3D object anyway.<br><br>Now I get this simply rotating the object around the axis as I need, but I am not sure this is the correct thing to do. 
<br>Looking around it seems that the correct solution is to move the camera to have the correct point of view. <br>So what are the correct way ? Rotate the object or move the camera ?<br><br>And if the correct way is to move the camera, where I can find a simple example ? 
<br><br>My idea is to make something like this:<br><br><pre>glMatrixMode(GL_PROJECTION)<br>glLoadIdentity()<br>glViewport(0, 0, w, h)<br>gluLookAt(eyeX, eyeY, eyeZ, <br>          centerX, centerY, centerZ,<br>          upX, upY, upZ);
<br>glMatrixMode(GL_MODELVIEW)<br><br>and then render my object<br><br>but I cannot understand if this is correct and where I must do it.<br>I suspect that I must do it in the paintGL function, setting the values of<br>the parameters for gluLookAt in some other places (I am thinking about the properties
<br>of the viewport)<br><br>Is this the correct approach ? If not, where is my error ?<br><br>thanks in advance<br>Gianluca </pre>