Sprite Kit particles or video

Discussion in 'iOS Programming' started by devQ, Aug 11, 2014.

  1. devQ macrumors newbie

    Joined:
    Aug 11, 2014
    #1
    Hello,


    I was wondering if someone could help me with following problem. I want to create something like this http://www.shutterstock.com/video/clip-4668353-stock-footage-flickering-particles-loop-blue.html but only 2 options crossed my mind:

    1. with sprite kit it's probably impossible. If there is too many particles, frame rate is killed, and if there's too few it doesn't look good. Another problem is that I want to scale up and then scale down particles, but particle editor offers only one direction at a time.

    2. with video it is possible but I don't know if it's a good idea. Also don't know which resolution to choose for both iPhone and iPad, which format and size. It can drain battery quickly probably and use too much space.


    Every advice is appreciated and I would love to hear some suggestions.
    Thanks.
     
  2. rjain, Aug 12, 2014
    Last edited by a moderator: Aug 12, 2014

    rjain macrumors newbie

    Joined:
    Aug 4, 2014
    #2
    RE: Sprite Kit particles or video

    You might like to user SKEmitterNode.

    Check out this video:

     
  3. devQ thread starter macrumors newbie

    Joined:
    Aug 11, 2014
    #3
    Yeah, that's how I did it. But it won't work. I'm probably going to use video or simplify particles with editor.
     
  4. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    It won't work? Care to elaborate?
     
  5. devQ thread starter macrumors newbie

    Joined:
    Aug 11, 2014
    #5
    Sure. Using SKEmitterNode is probably best (and proper ) way to do it, but since I use too many particles and movement, frame rate is low and everything is choppy. With firefly particles only, it works fine, but adding smoke to whole screen kills everything.
     
  6. chrono1081 macrumors 604

    chrono1081

    Joined:
    Jan 26, 2008
    Location:
    Isla Nublar
    #6
    Are you trying this on an actual device or just the simulator?
     
  7. omenatarhuri macrumors 6502a

    Joined:
    Feb 9, 2010
    #7
    This is a valid point, at least for me the simulator gives awful performance even with a couple image sprites. iPad Mini with Retina however runs perfectly at 60fps.
     
  8. devQ thread starter macrumors newbie

    Joined:
    Aug 11, 2014
    #8
    At that time it was simulator :) I even managed to freeze my mac in one iteration. :D

    I decided to use video at the end.
     

Share This Page