Posted: 5th Oct 2003 0:29
Hey I made a screenshot for all you guys Great effect, this should encourage you to try it out

Effect: 'Rain Drops'



RPGamer
Posted: 5th Oct 2003 0:58
Hey thanx for your promotion
I thought this topic will die soon but.... now
Posted: 5th Oct 2003 3:11
No prob Skovron Just promoting a great snippet
Posted: 7th Oct 2003 13:12
"Simple Water Wave Effect"... It looks VERY complicated to me.....
Posted: 8th Oct 2003 0:35
I'm not good at english.
But still it's simple not becouse the code is easy to understand without comment but simple becouse it isnt accurate. I mean the algorithm rely on "simple" approximation instead of ray-tracing.

I dont know your programming skil but belive me that many programmers which know how to generate waves using grids would say that it is very easy

On the other side I agree that it is always hard to understand code written by somebody else especially when its not comment well (as my code is)
Posted: 17th Oct 2003 12:55
I noticed that when playing KOTOR that they use something rather interesting... I believe that it's a bitmap that's ghosted and scrolled diagonally creating a wave effect. Looks really realistic too. I suspect that your code runs something a bit like this. Am I correct?
Posted: 17th Oct 2003 13:07
No, you're wrong .
Posted: 18th Oct 2003 15:18
Youre wrong. No ghosted and scrolled bitmaps.
It just for every pixel checks height difference (along x and y axis) then this differences added to pixel coordinates gives new pixel position and that pixel is being copied from original bitmap

take a look at pseudo code:

+ Code Snippet
for x=1 to width
 for y=1 to height
   difference_x = height_map(x-1, y) - height_map(x, y)
   difference_y = height_map(x, y-1) - height_map(x, y)
   color = get pixel from bitmap(x+difference_x, y+difference_y)
   put pixel on screen(x, y, color)
 next y
next x
Posted: 19th Oct 2003 23:31
That's a nice effect. Have to experiment with it.

Lenny
Posted: 26th Oct 2003 12:26
remembers the effect that you can play with while WaveRace GC is loading the track
Posted: 3rd Nov 2003 17:26
niiiiiiiiiiiice