shaders - ripple effect

BlitzMax Forums/BlitzMax OpenGL Programming/shaders - ripple effect

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hrm, not sure whats being suggested here, but a ripple anim texture based bump/normal map would actually look as good, and perform much better than any shader variant. The reason for this, is that you will need to render to texture at a fairly decent resolution (to match that of an anim normal map) and then apply it as a post render effect - which is pretty wasteful and pointless.

So Id do something like (pseudo code):
LoadTextureAnim - bump/normal map ripple

During render loop:
RenderScene as normal

When needing ripple:
Render quad Mesh overlay with bump/normal mapped frame

For this effect, there simply isnt any point in runtime render to texture rendering, unless you are doing something fancy with the onscreen data (seems very unlikely).