Sign in to follow this  
chibitotoro0_0

Water Ripples Clarification

Recommended Posts

Hi everyone, I'm working on an iphone app and trying to get ripples into my 2D texture; I'm following the method described by: http://www.gamedev.net/reference/articles/article915.asp I got blur working as shown in part 1 and I started doing part the part: ResultMap[x, y] := (( CurrentSourceMap[x+1, y] + CurrentSourceMap[x-1, y] + CurrentSourceMap[x, y+1] + CurrentSourceMap[x, y-1] ) DIV 2 ) - PreviousResultMap[x, y] Right now I have 3 buffers. 1 containing the source, 2 buffers same size as the source used to for flipping back and forth. If result map is one of the two buffers that get flipped and source map is original source and previous result map is the other buffer. How does this ever return to the original image? As I have it coded right now it looks like static on a tv screen because it doesn't return the source map. This effect happens before I even displace the buffer. Also when in the paper where it says to set one of the array values to -100 does this mean to set the RGB values to -100? Thanks for the clarifications

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this