@zombie - you using any dithering flags on TP?
PNG vs PVR antialiasing
(47 posts) (12 voices)-
Posted 1 year ago #
-
dithering does not make any diferences when using pvrtc4 textures. Nevertheless I tried it without the --dither parameter. The results are the same.
Posted 1 year ago # -
It is working correctly when I use pvr RGBA8888 instead of pvrtc4 textures. Seems like cocos or TP does have a problem with premultiplied pvrtc images.
Posted 1 year ago # -
I had some trouble with PVRs in TexturePacker before 2.1.6 - 2.1.7 is out since yesterday and should fix these problems.
The problem was that premultiply was applied twice in some cases.Could you please get 2.1.7 and see if it solves your problems?
Posted 1 year ago # -
I have pvr with premultiply-alpha, and also set [CCTexture2D PVRImagesHavePremultipliedAlpha:YES], the problem I had was the border.
Posted 1 year ago # -
I have 2.1.7 installed.
Posted 1 year ago # -
I know this is an old topic but i encountered the same problem.
I managed to solve mine. I am using TexturePacker(Pro) 2.4.3. I used the following settings: image format ARGB5551/or argb565, texture format pvr.ccz. and Border and Shape padding 0.
Due to sprites being so close together with 565 i got some dark edges belonging to the neighboring sprites in the sheet to display on the borders and some lighter in color in the 5551 format.
It got fixed by increasing the padding to the default 2.
This rose another problem: Some of my sprites are 1024X1024 and one fits in a 2048X2048 sheet instead of four as with 0 padding. I must therefore fit a single sprite on a sheet and pad it to 0 in order to not have border artifacts...This problem was not present in the PNG texture format. Hope this helps someone.
@ Andreas Loew : I can send a small project that demonstrates this problem if you are interested and if this is a new issue.Posted 5 months ago # -
Somewhat related:
Setting [CCTexture2D PVRImagesHavePremultipliedAlpha:YES] will break all PVR images compressed with PVRTC-2 or PVRTC-4. We need a way to disregard that setting for such image types.
Posted 3 months ago # -
@riq Done (issue 1319). Actually I didn't know about it until a few minutes ago when I finally managed to track down my PVRTC display issues ;-)
Posted 3 months ago # -
@Karl What is exactly happening to them? Can you post a screenshot with premultiply on/off?
I had several issues with the borders of PVRTC images but could fix them by filling transparent parts of the images with colored invisible pixels (that is what 'reduce border artifacts' does)
Posted 3 months ago # -
Straight from the horse's mouth:
Posted 3 months ago # -
Here's what it looks like depending on whether or not I use [CCTexture2D PVRImagesHavePremultipliedAlpha:YES]:
With premultiply turned on: http://i.imgur.com/s7UQu.png
With premultiply turned off: http://i.imgur.com/oPxpL.png
The image is 4bpp PVRTC compressed, made with texturetool (the same thing happens if I use TexturePacker, regardless of TexturePacker's "premultiplied alpha" switch).
I'm kind of stuck here because some of the images use premultiplied alpha (all the UI stuff) and some stuff doesn't (the planets), so a global switch really screws things up :(
Posted 3 months ago # -
@Karl:
I have just tried PVRTexTool + Image with alpha + converted to PVRTC-4BPP, and cocos2d can display the image correctly when "have premultiplied" is on.
Perhaps it is a bug in TexturePacker. Just to discard a possible bug in cocos2d, could you try converting the image with PVRTexTool ? thanks.Posted 3 months ago # -
@riq:
Just tried it with PVRTexTool and it worked!
Posted 3 months ago #
Reply
You must log in to post.