Polaris 1 Posted April 17, 2014 I'm having a really annoying issue where any texture (paa) I use in a GUI has a faint grey outline to it and I can't seem to remove it. The original image has been outlined in red. https://www.dropbox.com/s/alndjk9rynp4e6z/Untitled.png idc = 2027; type = CT_STATIC; style = ST_PICTURE + ST_KEEP_ASPECT_RATIO; text = "key_ca.paa"; x = 0 * safezoneW + safezoneX; y = 0 * safezoneH + safezoneY; w = 1 * safezoneW; h = 1 * safezoneH; shadow = 0; colorPictureBorder[] = {0,0,0,0}; colorDisabled[] = {}; colorBackground[] = {0,0,0,0}; colorBackgroundDisabled[] = {0,0,0,0}; colorBackgroundActive[] = {0,0,0,0}; colorFocused[] = {0,0,0,0}; colorShadow[] = {0,0,0,0}; colorBorder[] = {0,0,0,0}; Share this post Link to post Share on other sites
Polaris 1 Posted April 18, 2014 Anyone? This is really irritating me! Share this post Link to post Share on other sites
[frl]myke 14 Posted April 19, 2014 Maybe you'll get more response here in the correct section.... Share this post Link to post Share on other sites
Polaris 1 Posted April 19, 2014 Sorry I probably selected the wrong tab by mistake. Share this post Link to post Share on other sites
Polaris 1 Posted April 23, 2014 Apparently this is due to the engine not drawing textures at 1:1. Does anyone have any suggestions about how to avoid this issue? Share this post Link to post Share on other sites
sakura_chan 9 Posted April 23, 2014 It might be a long shot, but I've found that using texture types other than _ca or _co can affect the mipmap/blur of textures. I've been able to convert a texture perfectly 1:1 without any blurring but I've forgotten how :) You could also try upscaling the image, if it is a low-res image then resizing it using a pixel rescale would make it appear similar but should reduce the edge bleed that you are getting Share this post Link to post Share on other sites
Polaris 1 Posted April 24, 2014 Humm. At least I know I'm not the only one :p. Share this post Link to post Share on other sites
Polaris 1 Posted April 25, 2014 I still haven't managed to fix this issue. Can someone from BIS please comment because I know it's an engine issue. Share this post Link to post Share on other sites
Polaris 1 Posted April 28, 2014 Hopefully someone will eventually see this and be able to help :p. Share this post Link to post Share on other sites
Polaris 1 Posted April 29, 2014 I believe I've managed to fix the issue. It seems to be an issue common to a lot of game engines. Share this post Link to post Share on other sites
sakura_chan 9 Posted April 30, 2014 Perhaps post your solution? Share this post Link to post Share on other sites
Polaris 1 Posted April 30, 2014 It's a reasonably complex explanation. It seems to be an issue with how Photoshop treats transparency and the game engine attempting to interpolate. Basically when you export an image from Photoshop with transparency the transparent areas are "filled" with white, obviously these are hidden by the alpha mask though so you don't actually see them. But the game engine attempts to interpolate the edges of the image to create a more natural transition and in doing so it uses the white as the colour to interpolate to. You therefore see grey/white lines around the image. To fix this you have to make sure that you fill the transparent area manually with a colour that represents the edges of your image so that Photoshop doesn't simply fill it with white. There are also algorithms that automatically "bleed" your image into the surrounding canvas that work pretty nicely. You must have a real alpha mask for this to work though. Share this post Link to post Share on other sites
Devastator_cm 434 Posted April 17, 2017 On 30.04.2014 at 7:42 PM, Polaris said: To fix this you have to make sure that you fill the transparent area manually with a colour that represents the edges of your image so that Photoshop doesn't simply fill it with white. an old topic but looks like I am having the same issue. What do you mean by filling the edges? Do I need to add extra black pixels around the letters? Share this post Link to post Share on other sites