[BUG]CCParticleSystemQuad use cocosBuilder3 in cocos2dx-3.0 draw weird shape.


#1

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


未命名-1.png (168.4 KB)


#2

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:

    var texture = cc.TextureCache.getInstance().addImage("ccbResources/ccbParticleFire.png");
    this.particle.setTexture(texture);

Still show me the weird shape(rectangle without texture).


#3

Did you fix it? I got same problem.


#4

Joy Cho wrote:

Did you fix it? I got same problem.

nope!


#5

I have same problem. any one can help?:frowning:


#6

We are trying to fix soon.


#7

thanks. waiting for good news.


#8

It is fixed in this pull request: https://github.com/cocos2d/cocos2d-x/pull/4326.


#9

Minggo Zhang wrote:

We are trying to fix soon.

thanks very much, but i tested it, still have this issue, I attached the file used, would you please use this to test it.

ParticleSystemQuad* fire = ParticleSystemQuad::create("icearrow_hit.plist");

    fire->setPosition(Point(500, 300));
    this->addChild(fire);

#10

You can run TestCpp/ExtensiontsTest/CocosBuilderTest/ParticleTest to look the the effect.


#11

Minggo Zhang wrote:

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.


#12

it will show like this.


#13

Have you applied the patch?


#14

Oh did you use latest codes to test?


#15

yes, I have update the cocos to newest.


#16

mosquito du wrote:

yes, I have update the cocos to newest.

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.


#17

thanks every much。 it works.
:slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile:
thanks again.


#18

:slight_smile: You are welcome


#19

Simon Pan wrote:

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