PDA

View Full Version : glConvolutionFilter2D



drewT
06-25-2003, 12:21 PM
Looking at the example:
www.sgi.com/software/performer/brew/thermal.html#_cch3_886901441 (http://www.sgi.com/software/performer/brew/thermal.html#_cch3_886901441)

I am able to get this working with the glReadPixels/glDrawPixels method, but not with the glCopyPixels method. It seems like the glCopyPixels method is trying to read and write into the same frame-buffer, is that legal?

dorbie
06-25-2003, 05:23 PM
Well it worked for me when I wrote it. It should be supported AFAIK.

OTOH it's not too surprising that this doesn't work on your system, it's not exactly on the beaten path, experiment with your implementation and see if any copying works with non overlapping from, to regions.

These days the fast way to do this on the best PC hardware is to render to texture and use multiple texture taps to convolve the image when transferring to the framebuffer, but this can cause problems getting an AA visual if you need one. It is unlikely that ARB imaging will be as optimised as the texture approach, but you never know until you measure it I suppose.

Tell Jesse Angus says hello.