User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Motion blur

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Posts
    1,027
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Motion blur

    What would be the best way to create a smooth motion blur for an object? Say a simple semi-transparent grey brick was traveling across the sreen and I want a motion blur to trail after it?

    I don't have a clue as how to implement the effect in code and have only thought of the possibility of creating several images for each object.

    This is the kind of effect I'm going for:


    (From Crimsonland)


  2. #2
    No Products Registered

    Join Date
    Jul 2006
    Location
    Cape Town South Africa
    Posts
    192
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Motion blur

    Just made something quickly the best is going to be to use the lens object.
    Add a lens object behind the traveling brick gives you a blur effect.
    The background will need some texture to make it look good.

    If you need the example let me know.

  3. #3
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Joshua, Texas, Earth, Solar System, Milky Way, Local Group, Unverse 0
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Motion blur

    Clone the object and make it "Motion Trail", then you could always or "every 01 millisecond" create the motion trail object at the position of the main object. Just remember to always keep the main object layered in front.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Posts
    1,027
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Motion blur

    I would like an example, because all of my tests with the lens object were very slow.... :x

    I tried to have a set of objects trail behind the bullets. However, I could never get the trail to look smooth : /

  5. #5
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Motion blur

    Lens object? Motion blur is not distorting something, it appears when an object moves too fast while the shutter on a camera is open. Why would you use the lens object?

    Anyhoo, you're not going to be able to get it smooth, and have it run smoothly as well. Crimsonland uses hardware acceleration and such, MMF2 doesn't have hardware acceleration (yet, it's on the to-do list). As it is now, there isn't really a way to draw an antialiased line that fades out towards the end.

    What you can do if you really want that effect is have an active object, not too big, probably about 3x10, and stretch it out how you need the bullet trail to be. I'll make an example for you real quick.

    EDIT: Ok here's the example I said I'd make. Click ME!!!!

  6. #6
    No Products Registered

    Join Date
    Jul 2006
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Motion blur

    Also remember that MMF2 supports alpha channels in active objects. You can create a version of the sprite that has the motion blur built into it if you want by making a version of image with the blur already applied.

  7. #7
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Motion blur

    But then the collision conditions also apply to the blur.

  8. #8
    No Products Registered

    Join Date
    Jul 2006
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Motion blur

    You can put a pre-blurred sub-object underneath the real one, or use an invisible sub-object for collision detection.

  9. #9
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCSWF Export Module
    Alonso's Avatar
    Join Date
    Jul 2006
    Posts
    681
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Motion blur

    Quote Originally Posted by LazyCoder
    But then the collision conditions also apply to the blur.
    Or you could test for the collisions with the normal bullet and at the end of the event list, change the animation to blurred.

  10. #10
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Motion blur

    But with my way, it can be variable lengths.

    If it proves to be just too slow with many objects, then you can use the pre blurred method.

    The way I see it, you can either have flexibility or speed.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Motion Blur Example
    By Christian_Wheel in forum File Archive
    Replies: 3
    Last Post: 21st September 2010, 01:03 AM
  2. Motion Blur
    By Looki in forum Hardware Accelerated Runtime
    Replies: 12
    Last Post: 10th June 2010, 11:15 AM
  3. Motion blur?
    By Nick in forum Hardware Accelerated Runtime
    Replies: 29
    Last Post: 18th November 2008, 01:33 PM
  4. Motion Blur example
    By Dines in forum File Archive
    Replies: 4
    Last Post: 26th February 2008, 04:07 PM
  5. Motion blur
    By iza in forum File Archive
    Replies: 37
    Last Post: 15th August 2006, 10:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •