2D Toolkit Forum
2D Toolkit => Support => Topic started by: tracyma on July 22, 2013, 08:23:55 am
-
(https://www.dropbox.com/s/5aktwfogo3zrxlh/%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%202013-07-22%20%E4%B8%8B%E5%8D%883.20.22.png)
How to deal with it, i'm new here.
TIA!
-
The cause is likely bad source images.
Switch to premultiplied alpha and try it - switch in sprite collection settings & commit. Then select the atlas material and switch shader -> tk2d/PremulVertexColor.
-
(https://www.dropbox.com/s/6d7p29fjivx4ip2/%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%202013-07-22%20%E4%B8%8B%E5%8D%886.27.47.png)
How to do the switch, I did not find the option, can u show me step by step?
-
Open up sprite collection editor. Click Settings. Tick premultiplied alpha and commit.
Select the sprite collection material, switch the shader to tk2d/PremulVertexColor.
-
I did, but the same.
And there're some sprite overturn in atlas, Why?
(https://www.dropbox.com/s/2kykmdyw057zw6p/tmp50fc65e1.png)
-
I can't see your images, btw. I couldn't see the first images either.
Try uploading to a different site or attach to the forum.
The sprites rotated in the atlas are normal. Thats how the tk2d packs the images in there.
-
Image link was updated. Some sprite was reflected, not just rotated.
-
Its rotated and flipped - thats how it stores the data in the atlas, its normal. Its corrected when drawn on screen, so you don't have to care about that.
With your error - why is the image stretched in your screenshot? Does it look better when you draw it pixel perfect? Also try setting it to point filtered, is it better then?
Can you create a simple repro case for me with this? You can blank out all the non-relevant textures if you want. support at unikronsoftware dot com if you can do that.