Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Transparency fill borders
#4
(05-09-2020, 03:14 PM)tmanni Wrote: I don't know if this technique has a particular name, but technically, it is a voronoi diagram : color of a transparent pixel is replaced by color of the (spatially) nearest opaque pixel.
GEGL has a work-in-progress operation to do this.



Unfortunately, it is currently only available for developpers (not in the stable release).

This looks closest to what images with transparency look like when transparency is removed, which I did in the first post with the second image.
https://docs.unity3d.com/462/Documentati...amaps.html
https://assetstore.unity.com/packages/vf...ding-57720
I did some further googling and the  technique is so called "edge padding" and this is done to avoid seams or "bleeding" in games if the transparent area's near the border of the opaque areas are too different of the border opaque pixels.
On the first link there is a script named "AlphaUtility.atn" for photoshop that has an action "dilate" but I don't have photoshop, maybe someone can make a gimp version.
G'MIC's solidify is also an option but is very slow, to "solidify" the image below took 25 seconds.
   
Reply


Messages In This Thread
Transparency fill borders - by joeyeroq - 05-09-2020, 12:58 PM
RE: Transparency fill borders - by rich2005 - 05-09-2020, 02:52 PM
RE: Transparency fill borders - by tmanni - 05-09-2020, 03:14 PM
RE: Transparency fill borders - by joeyeroq - 05-09-2020, 04:04 PM
RE: Transparency fill borders - by tmanni - 05-09-2020, 04:26 PM
RE: Transparency fill borders - by joeyeroq - 05-09-2020, 04:37 PM
RE: Transparency fill borders - by tmanni - 05-09-2020, 04:53 PM

Forum Jump: