Featured post

new redirect for blender.org bpy docs.

http://www.blender.org/api/blender_python_api_current/ As of 10/11 november 2015 we can now link to the current api docs and not be worr...

August 02, 2012

Firefly removal in blender

This is a continuation of the previous post about Adjusting image pixels internally in Blender with bpy

firefly removal

In optimal lighting conditions fireflies don't really occur often in cycles, I can't remember seeing any lately. here's a script that first creates a simulation of fireflies then removes them. results in this:

TBC

As you can see it's probably an ok simulation, looking at it tells me something about a potential algorithm.
  • collect all whites
  • sample colour from the surrounding non white pixels
Most images don't have any pixels that are fully white, so i won't include a check for all surrounding pixels.

Finished firefly removal script can be found here: link