I am developing a first-person shooter/strategy game using the Lightweight Java Game Library, which has support for OpenGL. I would like to create a sniper which I need to magnify the screen and project an image onto the back of the scope. I have tried using gluPerspective() for zooming in and out, but it just makes the screen go black. I am thinking about using glReadPixels for grabbing pixel data from the zoomed in image, but I'm not sure what to put in field 'data'. explanation of glreadpixels here I'm also not sure how to get the data from glReadPixels and put it back onto the back of the scope.
EDIT: I'm not doing full screen zooming, I'm showing the image on the back of the scope.
Anyone know how to do this?