[SOLVED] My particles are black rectangles

Hi, when I try to use particles from a plist file, it just looks like this:

My code:
CCParticleSystemQuad *ps = CCParticleSystemQuad::create("particles/statup.plist"); ps->setPosition(ccp(240, 30)); addChild(ps, 100);

And I have attached my particle.

Why does this happen? How can I fix it?


statup.plist.zip (0.8 KB)


line.png (3.1 KB)

Just tested, this happens on both Win32 and Android.

SOLVED!

In my plist, I had:
<key>blendFuncDestination</key> <integer>770</integer> <key>blendFuncSource</key> <integer>0</integer>

This should have been

@
blendFuncDestination
1
blendFuncSource
770@

I’m sorry, that too is incorrect.

It should read:

<key>blendFuncDestination</key> <integer>771</integer> <key>blendFuncSource</key> <integer>1</integer>

Which is GL_ONE_MINUS_SRC_ALPHA and GL_ONE, respectively