Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: i_am_kisly on April 12, 2016, 03:54:26 PM

Title: TP Import Atlas Bug
Post by: i_am_kisly on April 12, 2016, 03:54:26 PM
Good afternoon, I have a problem with the import of texture atlases. Despite the correct coordinates, the frames are shifted (offset is not correct). For example (gui of popular Korean games), I put my atlas and its description in TXT format. Screenshots of the problem below.

atlas - https://dropmefiles.com/YZufd (The files are available within 14 days from 13/04/2016.)

To reproduce the problem, I took a different frame size, aspect ratio and 512x512 square filled them.
(clickable links)
(http://img.radiokot.ru/files/21274/thumbnail/xp0o3t00k.png) (http://img.radiokot.ru/files/21274/medium/xp0o3t00k.png)(http://img.radiokot.ru/files/21274/thumbnail/xp0o4mctg.png) (http://img.radiokot.ru/files/21274/medium/xp0o4mctg.png)

How do I fix this problem?
PS // If you import as standard Multiple Atlas frames that are recognized correctly.
Title: Re: TP Import Atlas Bug
Post by: ArenMook on April 13, 2016, 07:52:08 AM
Make sure that the texture is imported at its correct size and isn't getting resized.

That said, there is no need to use the texture packer workflow. You can create your atlas in Unity by using the Atlas Maker tool. Just select all the textures you want in there and add them to the atlas.
Title: Re: TP Import Atlas Bug
Post by: i_am_kisly on April 13, 2016, 02:27:34 PM
I do not know how it works. I downloaded unitypackage from github. Then texsturepatsker -> process to sprite. And it worked. Mystic.
(http://forum.unity3d.com/attachments/processtosprites-png.78664/)