Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Spacez on July 08, 2013, 06:52:17 AM
-
i'm new to NGUI, after bought the full version and using it with my current project i got the problem.
i created some UIs with the textures in my atlas then i add black image with transparent into my atlas (after completely created some UIs using my atlas) and all images in my atlas all shifted.
am i doing something wrong ? any suggestions would be appreciated
here is my black image > https://dl.dropboxusercontent.com/u/51053996/Pics/%5BWorld%5DBlack.png
-
Is there supposed to be a black image there? Just looks like a very large grey square. Not sure why you'd add that to an atlas to begin with. You can achieve the same size square by creating a 2x2 grey sprite and giving it a 1 pixel border all around, then using a sliced sprite to display it.
-
ok, let me recall some, because i dont know what i'm understanding is right
first, in NGUI, the more atlases i use mean the more draw calls will have ?
so i decided to use only one atlas and add everything into it. But, i dont know which textures i'm gonna use so i just add some textures when i want it. Unfortunately, some textures (such as the black one i posted) make every texture in the atlas shifted after being added. (i think i'm doing something wrong but what ?)
the reason why i added black image into the atlas because i want a plane-like UI that can be acknowledged when it's clicked (i have no idea how to check with the sliced sprite so i decide to do it using button, btw, button needs texture from atlas, that's why)
sry that i'm really newbie to this :(
i have not much time to watch every single videos in the youtube, so i chose somes (like basic, advanced, and some more that i think it's concerned to my project) and watched them.
Also, i read all of the tutorials and examples in the website. The idea of atlas, plane, anchor are really new to me, so i dont think i understand it clear now
Thanks very much for your help
-
Yes, multiple atlases mean multiple draw calls.
The problem is that the picture you posted doesn't have anything in it. It's just a big grey square. There is no black square in it.
-
sorry, my bad english skill :(
i meant that's the full black-colored image with some opacity. (so it looks like a grey one)