Convolution kernel (blur) with ATI_fragment_shader

Started by
1 comment, last by 16x16 15 years, 3 months ago
I'm trying to implement gaussian blur pixel shader on ATI Radeon 8500. It'a Pixel shader 1.4 card and only available ps extension is ATI_fragment_shader. I've looked at the glsl examples of blur shaders but ATI_fragment_shader functionality seems too limited to handle it. Any suggestions on how to go about it? Thanks.
Advertisement
Try mesa3d.org which is a software renderer and supports GL 2.1.
Just drop the opengl32.dll into your programs folder.
And then code your shader with GLSL and make it as complex as you like.
Sig: http://glhlib.sourceforge.net
an open source GLU replacement library. Much more modern than GLU.
float matrix[16], inverse_matrix[16];
glhLoadIdentityf2(matrix);
glhTranslatef2(matrix, 0.0, 0.0, 5.0);
glhRotateAboutXf2(matrix, angleInRadians);
glhScalef2(matrix, 1.0, 1.0, -1.0);
glhQuickInvertMatrixf2(matrix, inverse_matrix);
glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);
I'm affraid that using software renderer would make things unacceptably slow for the realtime application.

This topic is closed to new replies.

Advertisement