views:

3017

answers:

2

I'm working on an iphone game. In that i had to produce water ripples. I dont know how to get that. I heard thatit can be done with openGL. I am very new to this concept. Can any one guide me?

+8  A: 
Simucal
+1  A: 

jk:

z=sin(x)+cos(y)

More seriously, doesn't the Quartz Composer basically do ripples for you as one of the effects layers? Or was that announced only for the iPhone 3.0 SDK?

dlamblin
That's a really expensive routine. It would absolutely kill OpenGL in a game. I'm guessing he wants a decent water effect, which means old-school texture mapping tricks.
Pestilence
Pardon; I know. I was joking.
dlamblin