Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8369107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:33:48+00:00 2026-06-09T13:33:48+00:00

I have a drawing app and I would like for my users to be

  • 0

I have a drawing app and I would like for my users to be able to use particle effects as part of their drawing. Basically, the point of the app is to perform custom drawing and save to Camera Roll or share over the World Wide Web.

I encounted the CAEmitterLayer class recently, which I reckon would be a simple and effective way to add particle effects.

I have been able to draw the particles onscreen in the app using the CAEmitterLayer implementation. So rendering onscreen works fine.

When I go about rendering the contents of the drawing using

CGContextRef context = UIGraphicsBeginImageContextWithSize(self.bounds.size);

// The instance drawingView has a CAEmitterLayer instance in its layer/view hierarchy
[drawingView.layer renderInContext:context];


//Note: I have also tried using the layer.presentationLayer and still nada

....
//Get the image from the current image context here for saving to Camera Roll or sharing


....the particles are never rendered in the image.

What I think is happening

The CAEmitterLayer is in a constant state of “animating” the particles. That’s why when I attempt to render the layer (I have also tried render the layers.presentationLayer and modelLayer), the animations are never committed and so the off screen image render does not contain the particles.

Question
Has anyone rendered the contents of a CAEmitterLayer offscreen? If so, how did you do it?

Alternate Question
Does anyone know of any particle effect system libraries that don’t use OpenGL and is not Cocos2D?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T13:33:50+00:00Added an answer on June 9, 2026 at 1:33 pm

    -[CALayer renderInContext:] is useful in a few simple cases, but will not work as expected in more complicated situations. You will need to find some other way to do your drawing.

    The documentation for -[CALayer renderInContext:] says:

    The Mac OS X v10.5 implementation of this method does not
    support the entire Core Animation composition model.
    QCCompositionLayer, CAOpenGLLayer, and QTMovieLayer layers are not
    rendered. Additionally, layers that use 3D transforms are not
    rendered, nor are layers that specify backgroundFilters, filters,
    compositingFilter, or a mask values. Future versions of Mac OS X may
    add support for rendering these layers and properties.

    (These limitations apply to iOS, too.)

    The header CALayer.h also says:

     * WARNING: currently this method does not implement the full
     * CoreAnimation composition model, use with caution. */
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a vector drawing app where users can draw lines using multiple quadratic
We have an HTML5 drawing app where users can draw lines using a pencil
I have an App where I'd like to be able to edit any type
I have a drawing app where the user can draw lines with their finger,
I have a little drawing app and want to use complex shapes as brushes,
I have a simple app with a nav bar controller and I would like
We are designing physics app, and we would like to have it written in
I have a question about making a drawing app for Android. What is the
Hi I am trying out drawing app and have a problem when it comes
I am making a drawing app for iOS and I have the following classes:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.