Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: itszander on September 10, 2012, 04:57:35 PM
-
HI all, I've been working through the process and have been creating a texture atlas for SD and HD fonts. I'm noticing that when i create texture atlas i see lots of black space and the atlas is really big (2048x2048) but is mostly unused space. Am I doing something wrong here?
i've attached an image so you can see the problem
-
Question how big is the texture of the largest font that you have? It almost looks like its > 1024 (or half of the 2048 texture) this would cause the atlas to bloat to a 2048.
-
The trick is to keep it at 1 unit below the power-of-two dimensions. So for example if you were exporting the font as 1024x1024, do it as 1023x1023 instead. Although looking at your font, I'd go with a non-power-of-two ratio that would create square textures on export instead. Try something like 600x600.
-
Thanks for the feedback! It's very helpful...