如何实现水波纹? [英] How to implement water ripples?
本文介绍了如何实现水波纹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一款iphone游戏。因为我不得不产生水波纹。我不知道该怎么做。我听说可以用openGL完成。我对这个概念很新。任何人都可以指导我吗?
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?
推荐答案
以下是我找到的一些资源:
Here are some resources I found:
语言不可知2d水波纹算法
alt text http://freespace.virgin.net/hugo.elias/graphics/x_water4.gif alt text http://freespace.virgin.net/hugo.elias/graphics/ ripples.gif
带水涟漪的OpenGL项目(来源)
alt文本http://www.sulaco.co.za/opengl/water.jpg
你也可能希望摆动 GameDev的常见问题解答。向下滚动到水渲染部分。
You also might want to swing by GameDev's FAQ. Scroll down to the "Water Rendering" section.
这篇关于如何实现水波纹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文