Questions tagged [caemitterlayer]

The CAEmitterLayer class provides a particle emitter system for Core Animation. The particles are defined by instances of CAEmitterCell.

The CAEmitterLayer class provides a particle emitter system for Core Animation. The particles are defined by instances of CAEmitterCell. Inherits from CALayer : NSObject

CAEmitterLayer Class Reference: Official Apple Documentation

98 questions
0
votes
1 answer

EmitterCells not showing in CAEmitterLayer

I can't seem to get the CAEmitterLayer display CAEmitterCells. I add the ConfettiEmitterView in Storyboard and the view is being displayed with a red background as intended. But the cells are not showing. No Errors or warinings either. The…
Magnus T
  • 220
  • 1
  • 9
0
votes
0 answers

CAEmitterLayer particles not visible when UIViewController is presented modally

I have a particle system created with a CAEmitterLayer. The particle effect creates a confetti effect where confetti drops down from the top of the view. The CAEmitterLayer is added as a sublayer to an UIView (specifically created for that purpose…
jaine
  • 3
  • 1
  • 6
0
votes
1 answer

Is it possible to pause a CAEmitterLayer?

I have a CAEmitterLayer instance that emits some CAEmitterCells. I'm wondering, is it possible to pause this layer such that no new CAEmitterCells are produced and the ones that have been produced remained fixed in their position on the screen?…
ajrlewis
  • 2,968
  • 3
  • 33
  • 67
0
votes
0 answers

Transparent NSWindow with layer backed NSView

I adapted Apple's RoundTransparentWindow sample project to create a NSWindow and NSView which I use to have a transparent window (obviously the children of the NSView are visible, just not the window or the view's background). I would like to add a…
glenstorey
  • 5,134
  • 5
  • 39
  • 71
0
votes
1 answer

Keep CAEmitter centered when rotating device

Is there a way to keep CAEmitter centered to UIView (using Autolayout) when rotating device? I am adding my emitter to viewDidLoad like this: // setup emitter let emitter = CAEmitterLayer() emitter.frame = self.view.bounds …
George Asda
  • 2,119
  • 2
  • 28
  • 54
0
votes
1 answer

How to solve the dropping frames when adding CAEmitterLayer over GPUImageVideoCamera

While we are implementing a broadcast app using GPUImage we encounter a performance problem. When I was trying to adding a CAEmitterLayer on top of the camera view to implement effect as the image shows, the camera started to drop frames. What our…
Xue Li
  • 1
0
votes
1 answer

iOS Particle system control

I'm trying to understand if any of the particle systems in iOS (Sprite Kit or CAEmitterLayer) are suitable for the task I have. The question: is there a way to control when the emitter is creating particles? Particularly, telling the emitter when to…
frangulyan
  • 3,580
  • 4
  • 36
  • 64
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…
0
votes
1 answer

Custom animation for CAEmitterCell

I have a CAEmitterLayer and I'd like to have a simple animation run over the course of each particle's life. As soon as particle pops in, I'd like it to scale up to about 1.2, then after a short time have it scale back to 1.0 and stay that way until…
drix
  • 21
  • 3
0
votes
0 answers

Particle emitter works in one app, but not another

I've been experiencing some difficulties with particle effects. Originally I posted a question about how the particle effects in my app were different when on an ios6 device. Particle system looks different on iOS 6 and ios7 I Originally designed…
Matthew
  • 13
  • 5
0
votes
0 answers

Particle system looks different on iOS 6 and ios7

I have a couple of particle systems on my app that I checked originally on an iPad 3 with ios7. The particles looked and behaved like I expected them, but when I test on an iPad2 with ios6. The particles are displaced up and are smaller. I have a…
Matthew
  • 13
  • 5
0
votes
2 answers

Animate view repeatedly and continuously

I'm simulating some effects, like leafs falling, snow and rain. My first call was to use CAEmitterLayer, that works very well, but i need to render the layer in context to save as an image, and that seens impossible or, at least, very…
douglasd3
  • 761
  • 2
  • 10
  • 27
0
votes
1 answer

Render CAEmitterLayer (somehow)

I really need to capture a CAEmitterLayer as an image to render in my context. I know that renderInContext method does not suport CAEmitterLayer, i have found many questions about it but no good answers. I was able to achieve my goal by using new…
douglasd3
  • 761
  • 2
  • 10
  • 27
0
votes
0 answers

How to make Blood (or liquid) spray effect with CAEmitterLayer

I'm trying to make blood/liquid spray animation using CAEmitterLayer. Does anyone know of any good techniques in doing so? Or can anyone point me to any examples? I'm trying to either make it spray out in a mist or flow out in a liquid. I will…
LampShade
  • 2,675
  • 5
  • 30
  • 60