First of all, thanks to everyone for all the help I have been getting. It is great to be able to come to a forum and have questions resolved (even though they are probably easy for all the experts).
I am trying to fit an image in a OpenGL window and it appears to be getting “clipped” when I rotate it. I am using glOrtho() because it seemed to be the easiest to start with. The image I am “drawing” is a series of Triangular polygons that are very large in number (~58,000). A small snippet of the code I am using follows (using the Java OpenGL bindings JOGL):
…
public void reshapeGLAutoDrawable drawable, int x, int y, int width, int height) {
GL gl = drawable.getGL();
gl.glViewport(0, 0, width, height);
gl.glMatrixMode(GL.GL_PROJECTION);
gl.glLoadIdentity();
gl.glOrtho(-50, 50, -50, 50, -50, 50);
gl.glMatrixMode(GL.GL_MODELVIEW);
}// End of reshape()
The Image looks great, just when I rotate it the ends are visibly “clipped” at certain points. I am sure this is probably a simple problem that maybe just needs some “tweeking” but I just wanted to make sure it wasn’t something obvious in my code first. ANY help/hints would be great.
Thanks in advance.