are these functions glCopy Pixels, glDrawPixels... do they work in Perspective view. I have only seen them work in Ortho and that is all I can get them to work in also.
are these functions glCopy Pixels, glDrawPixels... do they work in Perspective view. I have only seen them work in Ortho and that is all I can get them to work in also.
works for me without orhto view
Code:void drawImage() { // draw 'display' image glClear(GL_COLOR_BUFFER_BIT); glRasterPos2d(-1, -1); glDrawPixels(width, height, GL_RGB, GL_UNSIGNED_BYTE, (unsigned char*)display); glFlush(); } .... void initGL(GLint width, GLint height) { glMatrixMode(GL_PROJECTION); glLoadIdentity(); glViewport(0, 0, (GLsizei)width, (GLsizei)height); }
nothing in your code above is perspective?? I meant with gluPerspective or glFrustum. With the depth buffer enabled and everything.
[EDIT]Got it to work; I forgot to translatef down on the z buffer
Last edited by linuxdude; 07-15-2004 at 04:40 PM.