Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make water as seen in Sea Stars?

There is a nice Sea Stars iOS application out there, with a good looking water effect can be seen on video.

I have found Tiny Wings "waves" tutorial on here, so I guess I can figure out how to make waves.

I wonder how do I make effect when hero pops out of the water (splash and water deformation). Also I wonder how do I make effect when I look on water line from above and from below - please notice how water line changes when hero is above it and below it.

I am familiar with Box2d and Cocos2d, so I wonder if this can be done within that knowledge. Also I wonder if Chipmunk can help.

like image 855
Dennis Krut Avatar asked Nov 05 '22 05:11

Dennis Krut


1 Answers

It looks like the waves in sea stars aren't really simulated, but just simple perlin noise and adding a simple bump when making a splash. If you want water simulation, I posted some code I wrote to do that here: http://www.cocos2d-iphone.org/forum/topic/25494

like image 192
slembcke Avatar answered Nov 14 '22 03:11

slembcke