Looking for Photoshop PluginCommunity Forums/Developer Stations/Looking for Photoshop Plugin
| I'm wondering if there's a Photoshop plugin which will process an image in a particular way. It's a given that I could write my own, but the file formats are not particularly straightforward so it would be a lot easier to do in Photoshop. Or a similar app.|
Essentially, I'm looking for something which can take an image and fill every transparent pixel with the color of the nearest opaque pixel until the entire image is filled up. It's to avoid sharp edges on masked textures when mipmaps are being used.
Alternatively, I do own FilterForge, so if anyone knows of a FilterForge Filter which will do the same thing, that would also be good.
| edit: here is my action for photoshop. See below for description.|
Get it here!
If I understand you correctly, you want to create a color map that is not premultiplied?
I have an action that I have made that can do this, or at least something very similar. What I do is duplicate the layer many times until all the pixels are solid. I know it may sound a bit odd, but it does a great job of getting rid of a fringe when you clip an image with alpha.
There are a couple of tricks that will help make this work better.
1. duplicate the layer
2. blur the bottom layer slightly (just a few pixels)
3. now duplicate the lower layer 4 times and collapse those layers (leaving the original layer on top)
4. repeat steps 2 and 3 several times. By collapsing the layers in step 5, you can build up the opacities faster.
5. once all the pixels are solid, you are done. Note that 100% transparent pixels will still be transparent, so you can either just fill in a back layer, or do a big blur on a bottom layer and then repeat the steps.
Otherwise you can just hit Ctrl-J (duplicate layer) and then Ctrl-E (Merge down) about 10-15 times
If you want I can post the action here tomorrow from work.
| Couldn't you process these images, if no other alternative arises, in your programming laguage of choice, upon loading them in? |
| Thanks Pongo. That's a neat trick. I didn't think of doing that but it should work perfectly.|
Ross: No, not really. The images will have mipmaps embedded in them by the time the engine loads them, as I don't particularly like letting DirectX create mipmaps automatically. Extracting and retrieving all the mipmaps, processing the image and all it's mipmaps, then bundling them all back together and uploading them into VRam again is going to add quite a bit of time to the load time.
| Ah, point taken. |