I have a drawing application and I would like my users to be able to use particle effects as part of their drawing. Basically, the point of the application is to execute a custom drawing and save it to Camera Roll or transfer it over the World Wide Web.
I recently discovered the CAEmitterLayer class, which I believe would be a simple and efficient way to add particle effects.
I was able to draw particles on the screen in the application using the CAEmitterLayer implementation. Thus, rendering on the screen works great.
When I talk about the contents of a picture with
CGContextRef context = UIGraphicsBeginImageContextWithSize(self.bounds.size);
What I think is happening
CAEmitterLayer is in a constant state of "revitalization" of particles. Therefore, when I try to make a layer (I also tried visualizing layers.presentationLayer and modelLayer), the animations never run, so rendering the image without a screen does not contain particles.
Question Has anyone displayed the contents of CAEmitterLayer off-screen? If so, how did you do this?
Alternative question Does anyone know of any system effect libraries that do not use OpenGL and are not Cocos2D?
source share