Hi cocos2dx team,
I used CCParticleSystemQuad in cocosBuilder,
but I discover that particle file in cocosBuilder can be read but have really weird shape on the result.
please refer to attachment to read what’s I mean.
Thanks.
Hi cocos2dx team,
I used CCParticleSystemQuad in cocosBuilder,
but I discover that particle file in cocosBuilder can be read but have really weird shape on the result.
please refer to attachment to read what’s I mean.
Thanks.
>
version:
cocos2d-x3.0 alpha 0
cocosBuilder 3.0 alpha5
Why I know that is render’s problem?
because I add code as below when into onDidLoadFromCCB callback in JSB:
var texture = cc.TextureCache.getInstance().addImage("ccbResources/ccbParticleFire.png");
this.particle.setTexture(texture);
Still show me the weird shape(rectangle without texture).
You can run TestCpp/ExtensiontsTest/CocosBuilderTest/ParticleTest to look the the effect.
thanks, maybe I am not explain clear, my issue is the attached particle file, i run it in cocos2d-x 2.x all thing is good, but after i update to 3.0, it always show a shape around. i have read the source code, but can not found why, would you please give me some advice?thanks a lot.
I think this is a compatible problem. @mosquito du, please call fire-> setBlendAdditive(bool) function manually. You can test which parameter can meet your requirement.
BTW, It is safer to call setBlendAdditive after you call setTextureFunction. setBlendAdditive will need some data from texture.
Simon Pan wrote:
> Hi cocos2dx team,
> I used CCParticleSystemQuad in cocosBuilder,
> but I discover that particle file in cocosBuilder can be read but have really weird shape on the result.
> please refer to attachment to read what’s I mean.
> Thanks.
>
> version:
> cocos2d-x3.0 alpha 0
> cocosBuilder 3.0 alpha5
>
Why I know that is render’s problem?
because I add code as below when into onDidLoadFromCCB callback in JSB:
[…]
Still show me the weird shape(rectangle without texture).
hi ,can I have your email ? I have some questions wann to talk with u