View Full Version : Flip entire framebuffer upside down?
07-25-2002, 07:30 AM
Subject says what I need to do...systematically do a vertical flip of everything in the framebuffer right before it is displayed onscreen.
Flipping just the geometry (glPixelZoom, etc.) will not work in this application (don't ask).
07-25-2002, 07:59 AM
OK, I won't ask
or similar, possibly???
07-25-2002, 08:42 AM
07-25-2002, 08:44 AM
turn the monitor upside down
07-25-2002, 08:59 AM
actually, that's exactly what i'm doing http://www.opengl.org/discussion_boards/ubb/wink.gif
07-25-2002, 09:11 AM
Any other suggestions on how to do this without moving the monitor or standing on my head?
07-25-2002, 09:30 AM
you could render to a texture or copy the framebuffer to a texture then draw a quad with that as its texture across the entire screen
07-25-2002, 10:32 AM
Since you say you want a flip, not a rotate, I would guess glScalef(1.0, -1.0, 1.0) would be more appropriate. I wouldn't put it in the projection matrix, though. You can mess up lighting/fog calculations. Do that before any "Camera" transformations like gluLookAt()
07-27-2002, 02:20 PM
WHy not just swap the signs on the top/bottom parameters when you create your frustum?
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.