View Full Version : Accessing the color buffer
Does anybody know if it is possible to access directly OpenGL's color buffer (for example to do a full scene embossing or some other effect like that)?
With kind regards
03-15-2001, 03:33 AM
The functions you're looking for are glReadPixels and glWritePixels, check out the definitions in the spec.
Sorry, I forgot to say that I like the whole thing in a real time animation. If i remeber right glRead and glWrite are just too slow to do this. Any ideas?
Thanks a lot
yuo mean, you want the animation to have interactive (or, at least, *high*) frame- rates rather than "real-time", which means subtly different things. FEH.
yes, 'high frame-rate' is the keyword. thanks for the correction.
well i get high framerates using my tnt2 with draw/write pixels. check the nvidia performance faq (valid for most cards )
These two functions is generally slow, I mean less fast, because you choose the wrong pixelformat. Go for zed's advice and read the FAQ.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.