What is the easiest way to implement a particle system without openGL or cocos2d

Everything in this question, I worked well enough with cocos2d to say that it is a great library, but today I just want to use the particle system in a general UIKit project. Until I know, unfortunately, I have to implement it with OpenGL. Any suggestions?

+3
source share
7 answers

You can use Core Animation and CAReplicatorLayer to create particle systems without having to expand to OpenGL ES. Joe Ricioppo " To 1e100f and Beyond with CAReplicatorLayer " gives an idea of ​​how to use this class. In addition, Apple has its own ReplicatorDemo app , which I have ported to the iPad .

The Mac also has CAEmitterLayer , which has been available on iOS since 5.0. Examples of Apple apps for this include Fire , which shows the effects of fire and smoke, and Fireworks , which mimics fireworks.

+15
source

UIKit-only Particle Playground (Mac App Store Link), , . PP Particle Designer, .

, CAEmitter (Layer/Cell), Ray Wenderlich Arg! . .

: Particle. --- PP .

+4

, CAEmitterLayer iOS 5. .

, , . , Apple Fire iOS 5.

+3
+1

You should also consider the element emitter (http://particledesigner.71squared.com/), which was designed to be used as the cocos2d plugin.

Here's a tutorial: http://www.71squared.com/2009/05/iphone-game-programming-tutorial-8-particle-emitter/

-1
source

Source: https://habr.com/ru/post/1787497/


All Articles