Image alpha problem

Image alpha problem
0.0 0


I have a semi-transparent image, but the result rendered in cocos2d-x is different from that looks in photoshop.

put the image on red background, it looks much brighter in PS (left) than that in cocos2d-x(right).

cocos2d-x version is cocos2d-1.0.1-x-0.12.0
blend func is default.

Artists complains about this issue, is there any suggestion?

comparation.png (27.6 KB)

source.png (1.3 KB)


there could be 2 issues that you can check

  1. check if blending mode in photoshop is different from your implementation in cocos2d-x. blending modes are normal, addition(screen in photoshop), linear dodge etc.

  2. check if you are using the correct color mode in photoshop, if its CMYK, it will look different when the image is rendered using RGB values


Thanks for your reply.

  1. the blending mode in PS is “Normal”, and blend fund in cocos2d-x is default(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA), I think they should be the same?

  2. yes, the color mode in PS is RGB

I ran the test app on win32/android/iphone, they all looked much darker than that in PS. Any suggestions are appreciated~