Hi,
I have an OpenInventor application that I’m trying to put a live camera image in the background of. Using the image as a texture for some kind of surface is much too slow, so I’m using glDrawPixels.
My problem is that the image I draw with glDrawPixels keeps clipping my Inventor models. I’d like the image to be the background for everything else. Whatever I put into glRasterPos doesn’t seem to make any difference at all.
My current code for the drawing (in short):
glPushMatrix();
glLoadIdentity();
xzoom = (float)viewportwidth/640.0;
yzoom = (float)viewportheight/480.0;
glPixelZoom(xzoom, -yzoom);
glRasterPos4f(-1, 1, 1, 1);
glDrawPixels(640, 480, GL_RGB,
GL_UNSIGNED_BYTE, buf);
glPopMatrix();
What am I doing wrong? Can anybody help me?
Thanks a lot in advance,
Björn
bjoern@giesler.de