什么是最简单的方法来实现粒子系统没有openGL和cocos2d [英] what is the easiest way to implement particle system without openGL nor cocos2d

查看:237
本文介绍了什么是最简单的方法来实现粒子系统没有openGL和cocos2d的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所有的问题,我已经工作足够cocos2d说,这是一个伟大的图书馆,但今天我只想在一个完整的UIKit项目中使用粒子系统。只要我知道,不幸的是,我必须实现一个与OpenGL。
任何建议?

All is in the question, I've worked enough with cocos2d to say it's a great library but today I only wanna use particle system in a total UIKit project. As long as I know, unfortunately, I have to implement one with OpenGL. Any suggestions ?

推荐答案

您可以使用Core Animation和 CAReplicatorLayer 生成粒子系统,而不必下拉到OpenGL ES。 Joe Ricioppo的向1e100f及以上与CA​​ReplicatorLayer 介绍了如何使用这个类。此外,Apple还拥有其 ReplicatorDemo 示例应用程序,其中我移植到iPad

You can use Core Animation and CAReplicatorLayer to generate particle systems without having to drop down to OpenGL ES. Joe Ricioppo's "To 1e100f And Beyond with CAReplicatorLayer" gives an introduction to how to use this class. Also, Apple has their ReplicatorDemo sample application, which I ported to the iPad.

在Mac上,还请参阅 CAEmitterLayer ,在iOS 5.0中可用。 Apple的示例应用程序包括 Fire ,其中显示了火灾和烟雾的影响,以及模拟烟火显示的 Fireworks

On the Mac, there's also the CAEmitterLayer, which became available in iOS as of 5.0. Apple's sample applications for this include Fire, which shows off fire and smoke effects, and Fireworks, which simulates a fireworks display.

这篇关于什么是最简单的方法来实现粒子系统没有openGL和cocos2d的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆