Hey peeps. While helping someone around here ;) write a game, I've come across an idea and put it into use.
[Heres a Screenie:]

Mirror:
1) make complete level mesh.
2) Use Big10p's mesh clipping code to crop the mesh at water height.
(http://www.blitzbasic.com/codearcs/codearcs.php?code=1143)
3) Copy this mesh and flip it, then move it up by 2xwaterheight.
4)Create water plane.
rendering:
1) Hide original mesh. Show reflection mesh. Hide water. Render
2) go down the screen using copyrect to mvoe each bit left/right a bit and up by 1, using rnd and SIN to create an alogrhythm that you like.. (up by one to fix cracks...)
3) Show original mesh. Hide reflection mesh. Show water
4)Cameraclsmode camera,0,1
Render.
Flip :D
I have something mroe advanced in the workings too involving water with full reflections but still see the bottom of the cropped mesh through water.
i will post about this later.
I know i dont have any pics or code right here, but what are your thoughs on this technique?
[Heres a Screenie:]
Mirror:
1) make complete level mesh.
2) Use Big10p's mesh clipping code to crop the mesh at water height.
(http://www.blitzbasic.com/codearcs/codearcs.php?code=1143)
3) Copy this mesh and flip it, then move it up by 2xwaterheight.
4)Create water plane.
rendering:
1) Hide original mesh. Show reflection mesh. Hide water. Render
2) go down the screen using copyrect to mvoe each bit left/right a bit and up by 1, using rnd and SIN to create an alogrhythm that you like.. (up by one to fix cracks...)
3) Show original mesh. Hide reflection mesh. Show water
4)Cameraclsmode camera,0,1
Render.
Flip :D
I have something mroe advanced in the workings too involving water with full reflections but still see the bottom of the cropped mesh through water.
i will post about this later.
I know i dont have any pics or code right here, but what are your thoughs on this technique?