1
Graphics / Re: Motion Blur GLSL
« on: March 23, 2016, 01:32:37 am »
Thank you, I believe my lack of knowledge about GLSL got me stumped here.
I tried replacing the
And added accordingly:
But didn't have much success.
What I was trying to accomplish was a trailing effect like the image bellow:
However I didn't know where to start. I thought learning per object motion blur with GLSL would be a good start, but not knowing the language is a barrier. Could anyone guide me on how to achieve this?
Also, some examples suggest acquiring the previous framebuffer or the previous view-projection matrix. How could I do this with or without SFML? I hope this isn't a stupid question...
I tried replacing the
mat4 proj_modelview_mat = projection_mat * modelview_mat;
withmat4 proj_modelview_mat = gl_ModelViewProjectionMatrix;
And added accordingly:
gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;
gl_FrontColor = gl_Color;
gl_FrontColor = gl_Color;
But didn't have much success.
What I was trying to accomplish was a trailing effect like the image bellow:
However I didn't know where to start. I thought learning per object motion blur with GLSL would be a good start, but not knowing the language is a barrier. Could anyone guide me on how to achieve this?
Also, some examples suggest acquiring the previous framebuffer or the previous view-projection matrix. How could I do this with or without SFML? I hope this isn't a stupid question...