Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: mimminito on November 28, 2013, 05:01:14 AM
-
Hi,
After updating to 3.0.6, when adding stuff into an Atlas I already had made in a prior version (still 3.x), I am now getting a weird background/border appearing behind the sprite when shown in the game. In the preview screen its fine, but when I add it to the scene, its got this weird background/border effect. It looks like a large square border. Also, when I view the Texture created by the atlas, I can see the issue in there as well.
I then tried to create a new Atlas, and start adding in my textures, and when viewed, they are all ok! So there is some issue with the upgrade process here which has messed up my old atlas. Any suggestions?
Adam
-
I have the same issue.
-
Sounds like pre-multiplied alpha was unchecked on the Atlas Manager. I noticed it when I updated NGUI recently. In the Atlas Maker window make sure PMA Shader is checked.
-
Yeah, that with a couple of other changes to the texture and shader, and all was working again.
I dont like saying this, but the latest releases of NGUI have not been stable at all, and have caused more issues than features added!
-
PMA option on the atlas should only be used with a PMA shader. If you check the PMA checkbox on the atlas maker and your atlas is not using a PMA shader (PMA = Pre-Multiply Alpha), then you are going to get strange results.
Also, make sure that "Alpha is Transparency" is checked on your atlas texture.
P.S. PMA stuff hasn't changed since ~2.5.0