PDA

View Full Version : Accessing the color buffer



pgup
03-15-2001, 03:17 AM
Hello everyone!

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
pgup

harsman
03-15-2001, 03:33 AM
The functions you're looking for are glReadPixels and glWritePixels, check out the definitions in the spec.

pgup
03-15-2001, 03:40 AM
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
pgup

john
03-15-2001, 03:32 PM
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.

cheers,
John

pgup
03-16-2001, 02:21 AM
yes, 'high frame-rate' is the keyword. thanks for the correction.
greets
pgup

zed
03-16-2001, 02:47 AM
well i get high framerates using my tnt2 with draw/write pixels. check the nvidia performance faq (valid for most cards )

Bob
03-16-2001, 03:55 AM
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.