Questions tagged [caemittercell]

The CAEmitterCell class is available in OS X v10.6 and later, and represents one source of particles being emitted by a CAEmitterLayer object.

The CAEmitterCell class represents one source of particles being emitted by a CAEmitterLayer object. An emitter cell defines the direction and properties of the emitted particles. Emitter cells can have an array of sub-cells, which lets the particles themselves emit particles.

51 questions
1
vote
1 answer

Multiple CAEmitterLayer sources

I want to generate different CAEmitterCells from multiple points. So far my solution is to created multiple CAEmitterLayers, each with one cell, so that I can control them individually. The problem with this approach is setting the layers render…
1
vote
0 answers

Can CAEmitterCell have vector based contents?

I want to use CALayers or another vector based drawing for the particles in my system. I need to zoom in with out pixelation. I would like to do something like this CALayer* layer = [CALayer layer]; emitterCell.contents = (id)layer;
The Way
  • 594
  • 5
  • 15
1
vote
0 answers

iOS 6 EmitterCells birthrate not working correctly

I've found some more very strange behavior with regards to the CAEmitterCell in iOS 6. Please note that these problems only exist when running iOS 6. And also note that I'm referring too Cells that are children of other cells. I've tested iOS 6…
LampShade
  • 2,675
  • 5
  • 30
  • 60
1
vote
1 answer

Add CAEmitterCell to another CAEmitterCell

I'm trying to do a particle effect where I have a cell nested onto another cell. Think of the basic firework example they have here in the Apple Docs. They've nested Cells into other Cells and they've timed them using the BeginTime parameter. I,…
LampShade
  • 2,675
  • 5
  • 30
  • 60
1
vote
1 answer

CAEmitterCell access to all particles

I have a CAEmitterCell working but I want the particles to slow down and stop. It seems if I had access to all the particles then I could just reduce their velocity and/or acceleration to 0 and they would stop moving. I tried something like…
Paul Cezanne
  • 8,629
  • 7
  • 59
  • 90
1
vote
1 answer

CAEmitterCell does not respect the duration value

I have an emitter that I want to end after 2 seconds, but I can't get it to stop running! my code is as follows: // Emitter Layer // emitter = [CAEmitterLayer layer]; emitter.emitterSize = CGSizeMake(20, 20); emitter.renderMode =…
Alan Taylor
  • 493
  • 4
  • 16
0
votes
0 answers

CAEmitterLayer works for a while, then stops diplaying. Objective C

I have added some fireworks to an app. The emitters work a few times, then stops displaying. Here is the Objective C code in the .m - (void) viewDidLoad { [super viewDidLoad]; [self setupEmitter]; [self setupFireWorkEmitterCells]; …
jsdigital
  • 21
  • 2
0
votes
0 answers

CAEmitterLayer CAEmitterCell animation bug

CAEmitterCell contents picCAEmitterLayer emits multiple CAEmitterCells with specified trajectories. When the trajectory CAEmitterCells fly to the end of time, it will become a particle graph displayed by CAEmitterCells, and then the particle graph…
0
votes
0 answers

CAEmitterCell does not show colour at all

I have looked for this problem over the internet but unable to find any solution related to my problem. Here is the code that I wrote so far. Creating CAEmitterLayer as follows: func createParticles() { let particleEmitter =…
0
votes
0 answers

How to make CAEmitterCell fade-in and then fade-out?

I am using CAEmitterLayer to emit some star images. Our clients want to change the alpha of the star from 0 to 1 , and then to 0. I know we can use alphaSpeed property of CAEmitterCell to increase or decrease the alpha, but how to change the alpha…
Rufus
  • 640
  • 1
  • 7
  • 14
0
votes
1 answer

Convert Square UIImage to round UIIMage for use with CAEmitterCell.contents

I have a custom UI component that produces an image of a round ball with some labels superimposed over top of it. I am taking a snapshot of the component using the following UIView extension I found here on StackOverflow. I am taking the resulting…
Jim
  • 55
  • 1
  • 7
0
votes
1 answer

CAEmitterCell emits in two opposite orientation (one is wrong)

I want CAEmitterCell emits in a specific angle. I use emitterCell.emissionLongitude = -CGFloat.pi to specify the orientation angle is -pi(which is left), but it emits to right as well. func setUpEmitterCell() { emitterCell.contents…
Kevin Science
  • 303
  • 4
  • 18
0
votes
0 answers

Is it possible to customise the colour of particles emitted by a CAEmitterCell?

I am using a CAEmitterCell to generate particles of a given image in various different colours: CAEmitterCell *emitterCell = [CAEmitterCell emitterCell]; emitterCell.birthRate = 256; emitterCell.lifetime = 3.0f; emitterCell.lifetimeRange =…
DanielGibbs
  • 9,910
  • 11
  • 76
  • 121
0
votes
1 answer

How to do animation just like Periscope hearts popping up?

I need to do same animation as done in Periscope App, while user is sending heart. Hearts are popping per touch and travel randomly and disappears and eventually fade out. Each touch will generate exactly one particle (heart, in this case). The…
NSPratik
  • 4,714
  • 7
  • 51
  • 81
0
votes
1 answer

Trouble getting CAEmitterLayer to show particles

I have read a few tutorials and looked over the documentation but I cannot get my CAEmitterLayer to show any particles. I have a CAEmitterLayer and CAEmitterCell property and both have the attributes nonatomic, and storng. Perhaps I am missing a…