Motion Blur WIP

0 favourites
  • 8 posts
From the Asset Store
Complete the collection by purchasing Motion Universe Pt. 2
  • Hello! I've decided to try to make a motion blur effect, but due to the lack of shader knowledge, I have created this using R0J0hounds Paster plugin:

    https://dl.dropboxusercontent.com/u/214 ... index.html

    There are some artifacts due to how the effect is processed, and it's a serious CPU hog when it comes to multiple objects. The effect works well though, so it's a good start.

    I was thinking about storing some previous positions and using a curve of some sort to get a much more natural look when moving objects very quickly, but I've got quite a bit of HW I have to get done before tomorrow as well, so it'll have to wait.

    Here is the capx: https://dl.dropboxusercontent.com/u/214 ... ample.capx

    Let me know what you guys think, and have an awesome day! ^^

    EDIT: Something is wrong with the CPU meter, and I'm not sure why. On the Angular example (9 Objects), it uses 50% of my CPU on Node-Webkit. On the Drag (1 object) example it uses a good 8%. Is there a better way to do this?

  • It's a neat effect! I never got past about 17% on it for CPU use, though I could see it really tanking some older computers. I really don't know a better way to do it, though. Your way looks more polished than how I would've attempted it.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • It's a neat effect! I never got past about 17% on it for CPU use, though I could see it really tanking some older computers. I really don't know a better way to do it, though. Your way looks more polished than how I would've attempted it.

    Well, recently I've created a much, MUCH more optimized way to handle it, but now it uses a megaton of objects (Over 300 objects with 12 entities for a 24 sample size ._.)

    Take a peek: https://dl.dropboxusercontent.com/u/214 ... index.html

    Here's the src: https://dl.dropboxusercontent.com/u/214 ... ur2.0.capx

    Let me know how well it runs on your end ^^

  • That one capped at 7% for me. Quite respectable.

  • Looks really cool matey. Nice work.

  • Great effect. My PC settled to 8% and my Nexus 7 tablet to 90% (but it was still pretty smooth!)

  • Thanks for contributing this Phobos002. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    I modified your last capx to add a velocity dependent blurring effect that makes this look even better in action, and is useable down to 4 samples for slower movement (lower settings blur more, which sacrifices accuracy, but still looks smooth in motion). Here it is:

    CAPX: https://www.dropbox.com/s/9j0q36mne5x56 ... .capx?dl=0

    Be aware, this is a much hungrier effect GPU-wise (blurring is being applied to each moblur sample individually as a webgl effect).

    Still, at 12 samples it's smooth on my HD4000, and it could probably be used in a real game w/ a dedicated GPU. As an incidental effect, it could be used just about anywhere.

    Could make the effect cheaper/better looking with a proper directional blur effect, but I'm not aware of one for C2. Also, could probably batch moblur sprites on their own layer(s) for considerably cheaper blurring at high samples, but that would require a separate layer for each set of sprites (not un-doable, but a PITA to be sure).

  • This is what i was looking for. Thanks for effect, it will be usefull

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)