Profile PictureTrace
$0+

Edge Pixel Extension [Blender Addon]

Add to cart

Edge Pixel Extension [Blender Addon]

$0+

This addon is to add a panel to the image editor in blender that allows the ability to extend edge pixels.

This effect is useful to things such as textures, where seams on textures can become visible from a distance on a model if the part of the texture under the UV map does not exceed the size of the UV island by enough pixels. A similar feature to this addon is built into substance painter (probably better than my implementation), but I wanted to be able to do it in blender using the image editor. This addon works by simply finding nearby transparent pixels and setting their color to be the average of the non-transparent pixels around them and repeating.


Usage:

  • Use the "Extend Edge Pixels" button to trigger the effect
    • Note that this can take some time, so recommend editing the "Extention Offset" (Yes I misspelled extension in the addon) to be around 2 or 3. Can always press the button again if you need it extended more.
  • Alpha Threshold is the value required for a pixel to count as transparent, and thus should be overwritten by the nearby pixels value.
  • Extention Count is the number of times that the process loops to create a buffer of pixels around the image. 1 means one pixel buffer or extension, while 2 means two pixel buffer or extension.
    • 0 is used as the placeholder for no limit, thus will go until the entire image is filled.

Notes:

  • Blender's api for addons is python and only seems to run using one cpu core, so the addon is not entirely speedy. The exension of 6 took my cpu about 6 seconds to run, while at 0 it took about a whole minute.

Install Guide:

  1. Download the file
  2. Go to Edit->Preferences->Add-ons then press the "Install from disk" button hidden in the arrow drop down menu in the top right
  3. Select the python file downloaded earlier
  4. Hit the install button (should be called "Extend Edge Pixels" once installed)
$
Add to cart

A python file that is the addon

Size
22.5 KB
Copy product URL
No refunds allowed