I would like to combine an image sequence into a single image in a quick way.

I tried adding all the images into the compositor manually:

enter image description here

But it will take a long time to add each node one by one.

This is what type of result I want.

  • 1
    $\begingroup$ Possible duplicate: blender.stackexchange.com/q/5017/599, possibly related: blender.stackexchange.com/q/3720/599 $\endgroup$ – gandalf3 Jun 19 '15 at 19:58
  • 1
    $\begingroup$ It would help if we knew what kind of information the images contain (renders of the same frame with different noise seeds? Or..?), and what you want the result to be $\endgroup$ – gandalf3 Jun 19 '15 at 19:59
  • $\begingroup$ The images contain different frames of animation. And for the result I would like to average the frames together $\endgroup$ – SupaKoopaTroopa64 Jun 19 '15 at 20:09
  • $\begingroup$ A timelapse or a long exposure effect? $\endgroup$ – VRM Jun 19 '15 at 21:09
  • $\begingroup$ Long exposure effect $\endgroup$ – SupaKoopaTroopa64 Jun 19 '15 at 21:51

You can't really do recursive operations (loops) in the compositor, but in this case there is a sort of hack you can do (a bit like this or this).

You can apply this to the animation as it's rendered, but I preferred to render everything to .exrs and composite afterwards.

  1. Add an image sequence node (or renderlayer node) that gives the raw render output
  2. Add an image sequence node pointing to the output directory where you'll render the combined sequence.
    To do this you may have to create a few dummy files to convince blender that there is an image sequence there. Copying at least the first few frames of the render output to this directory will do, but be sure to delete them once the node is added.

  3. On the image sequence node, set Frames to the length of your render and the Offset to -1. Be sure that the start frame is set correctly as well. This will make the image sequence node read the previous frame.

  4. Add a file output node or use a composite node and adjust the scene output settings. Set the output path to the directory the image sequence node is pointing to. You may want to render to .exr files so you can adjust the exposure later.

enter image description here

Then render the animation.

This will start by adding the first frame to nothing (as the 0th frame doesn't exist), then the second frame to the first, and the third to the combination of the first and second, and so on. The end result will be an animation like this:

The last frame is the result of all the frames added together:

enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.