Particle filter

I know this is probably never gonna get added but I thought I’d mention it anyways. It would be cool if there was a filter where it makes clones of the original media and makes it fly through the air in random directions as if it emitting copies of itself. There could be controls for where the particles go and how fast the move.

(I know this is a weird example of what i’m talking about but it demonstrates it well) You can see at the parts of the video with the numbered eggs that there are multiple eggs being emitted.

1 Like

This effect can probably be done with HTML overlay. @Elusien would know.

1 Like

You could always use an overlay.
This one is Creative Commons Zero (CC0)

Or find your own. There is many videos with the Creative Commons License in YouTube.
If you use a filter, you can find them.

Just applied Chroma Key: Simple, set to black.

i know what you are trying to say but i mean if the particles could be an image and not just dots

Yes, you’re right it can be done with an Overlay HTML filter using WebVfx. I do something similar with my framework with the “franmentation” option. There I split an image into multiple chunks and animate each chunk. I’d use that as the basis for some code to take a picture and animate multiple copies of it I might have a look at it if I can find some spare time.

I thought so.
I’ve managed to create an effect using your fragmentation code. It’s an image that’s in pieces that come together. It works but I’d like to use it as an overlay or maybe a transition. Can’t figure out how to get the fragmentation to overlay on a video or image. Any tips?

Here’s the file.

Implode.txt (700 Bytes)

I put the HTML filter on a blue color clip with a green color clip on the track below but the green does not show through.

Change the CSS at the beginning of the code that says “background-color: #000” to “background-color: transparent” and see if that does the trick.

Changed it to transparent. It works, but I have to apply the Overlay filter to a color clip, image or video for the transition to work.

Thanks for the tip @Elusien.
Finally got HTML overlay to work. The implode/defragment sequence can be used for a transition or titling. Have to work on the explosion effect next.

Managed to get both defragment and fragment to work.

Both effects were created using @Elusien’s code copied from

In case any user wishes to use these effects I’ve put the folders containing the html code, and a sample image here.

Both effects are set to use Image.jpg for the frag/defrag effect. If you need to use a png, simple copy Image.png into the folder and edit the html code to to use Image.png instead of Image.jpg.


The data control attribute is set to 2 seconds at 30 fps. The column width and height are set to 10.

The easiest way to use the effects is to copy the folder(s) to the project you are working on
and create one folder for each effect then use the overlay HTML filter to apply the effect to the image.


Put the image you want to use in the folder and overwrite my sample image.


WOW - fantastic demos, @sauron . @elusien 's fragmentation/defrag work so well as transitions!!! Can’t wait to experiment with this. Thanks sauron for making the resources available for download. Excellent work :grinning::grinning::grinning::+1::+1::+1:

It took me a while to figure out how to modify the code.

Html overlay wasn’t working until 18.12.23. Now it’s working pretty well with the Beta. At times it slows to a crawl. Found it easier to use chrome browser to do most of the experimenting.

Looking forward to see what you do with the frag/defrag.

Hey, hey, HEY! - Success today making transitions (inspired by @sauron ’ s work above) using @Elusien 's Defragmentation feature (part of his WebVfx framework).

The result:

So, my demo has 8 images (they are frame captures grabbed using Shotcut, from a video). I called them image01.png, image02.png etc. I copied the “Defragmentation” HTML file 8 times, changing the image of each one to image01.png, image02.png etc…

My folder looked like this:

Then imported the 8 pngs onto 8 video tracks, as shown here:

Then split image01 into two, making the second bit 2 seconds long. Then applied “Defrag image02” to the Overlay HTML filter.

(It took me a while to realise that the HTML file should relate to the clip BELOW, not the clip itself…)

Then repeated the process with image02 - image07, but split these images into 3 bits (beginning transition, middle, end transition).

Finally, image08 was split into 2, and a fade-out applied.

It’s really a doddle to do. I think some users may be daunted by doing this but should have a go…
Grateful thanks to @elusien and @sauron!

1 Like

UPDATE - I just made a TITLE and added it to my video above:



I should have included my track layout and made things a bit easier. You have 7 tracks too many.:smile: Did mine with 1 track for the transitions and 1 audio track.

Made a 1 second split at 1A 2A 3A 4A and 5A. Then overlaid 2 on 1A, 3 on 2A. 4 on 3A, and 5 on 4A.

Ah, a much simpler solution! :grinning: Wish I’d done that!:yum::yum: Thank you.
Anyway I think it’s a really cool effect. I have no idea whatsoever how anyone can think of code to produce this effect. Mind-blowing!

Also, question to @elusien - could the code be adapted so as to achieve transitions between video clips, rather than still images? Thanks.

I’m afraid not. My HTML fragmentation code can only handle static images. You could get a snapshot image of the the last frame of one clip, apply the fragmentation filter to it, then get a snapshot image of the first frame of the next clip and apply the defragment filter to that. Similar to what you did in your video.

However, there are a whole set of different transitions (67 to be precise) showcased on here:

To see how they perform you can play about with them by moving your mouse pointer across the individual images. You can tailor them by clicking on the image. Dan has been good enough to provide me with some code that I am using to make it simple for any user of Shotcut to make use of them. See here:

I have written the first bit of code and now it is fairly easy to do the rest. I should have something available for people to try within the next few days.

The code is an Overlay HTML filter that you apply to a transition. To use it:

  • You create a very simple HTML file that has just the HTML ‘<canvas>’ tag in it specifying the name of the transition you want to use and any of its parameters that you want changing e.g. ‘<canvas id=“swirl”></canvas>’

  • You then create a transition between two clips as would normally (dragging the left clip part way over the right).

  • You then select the transition area on the track and apply the Overlay HTML filter (with the WebVfx option ticked) to it.

Et voila - the transition is applied. It uses the GPU for rendering the transition.

I will make an announcement on the forum when I have the finished product for people to use. At some stage I might get round to adding some of my own transitions into this new framework.

1 Like

A bit of silliness.:grin:

1 Like

That sounds really exciting, @elusien ! Can’t wait to see the new framework and trying it out. :grinning::grinning:

Two for the price of one … :grinning::grinning:

Made a reasonable fragment transition between video clips. Used @Elusien’s suggested method with some modification.

1 Like