I am attempting to render a "reflection" of a scene for water:
To create this illusion, I need to render the scene from below, and then ignore all geometry below the water line.
As such, I need to move the camera below the water, and invert the pitch.
I have one problem: My entire framework is based on the fixed-function pipeline. Basically, I need to call the correct glTranslatef() calls and glRotatef() calls to be able to simulate the camera being in the new position, and then render the scene.
Unfortunately, I have so far failed to achieve this. Calling the glRotatef() function obviously just rotates the entire scene, so I am struggling to just simulate the camera rotation.
The water is at a height of 300. I believe I may be moving the camera down correctly by calling
glTranslatef(0, -(2 * (camera.y() - 300))), but it has been impossible for me to get them to both work.