Jump to content
  • Advertisement
Sign in to follow this  

Water Ripples Clarification

This topic is 3207 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!