cocos2d / cocos2d-html5

Cocos2d for Web Browsers. Built using JavaScript.
https://www.cocos.com
3.07k stars 902 forks source link

"Texture mode" in particles does not work #620

Closed ricardoquesada closed 11 years ago

ricardoquesada commented 11 years ago

How to reproduce it:

Crash (...)

The error in the console is:

[20:48:58.261] Image corrupt or truncated: data:image/png;base64,TU0AKgAAQAgAA...
[...]
...D13vZt9vv3ivgZ+Kj5OPnH+lf65/t3/Af8mP0p/br+S/7c/23//w==
--
[20:49:10.920] NS_ERROR_NOT_AVAILABLE: Component is not available @ http://localhost/cocos2d-html5/cocos2d/sprite_nodes/CCSprite.js:50

Tested on:

dingpinglv commented 11 years ago

Yes, this is a mistake in decode image data. Because ParticleDesigner encodes image data into a string, sometimes using tiff format, sometimes using png format. when using png format, ParticleSystem can decode the data, but if tiff format is used, the error is generated.

dingpinglv commented 11 years ago

This problem has been solved at https://github.com/cocos2d/cocos2d-html5/pull/847

Thank you, Riq.