如何制作《海星》中所见的水?
有一个不错的 Sea Stars iOS 应用程序,可以在 视频< 中看到漂亮的水效果/a>.
我在 这里,所以我想我可以弄清楚如何掀起波澜。
我想知道当英雄从水中弹出时如何产生效果(飞溅和水变形)。另外我想知道当我从上方和下方观察水线时如何产生效果 - 请注意当英雄位于其上方和下方时水线如何变化。
我熟悉Box2d和Cocos2d,所以我想知道这是否可以在这些知识范围内完成。我也想知道花栗鼠是否可以帮忙。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来海星中的波浪并不是真正模拟的,而只是简单的柏林噪音并在溅起水花时添加了简单的凹凸。如果你想要水模拟,我在这里发布了一些我编写的代码:
http://www.cocos2d-iphone.org/forum/topic/25494
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