effekseer / EffekseerForCocos2d-x

MIT License
41 stars 18 forks source link

Does not work with cocos2d::ClippingNode #42

Open css-run opened 7 months ago

css-run commented 7 months ago

Build with: macOS 13.6 Xcode 15.0.1 cocos2d-x v4 EffekseerForCocos2d-x latest (commit f8a286ddc3f4e692fce3c17312288bb6b89bc85c)

Run on: macOS 13.6

Testing code:

auto stencil = cocos2d::Sprite::create("mask.png");
auto clip = cocos2d::ClippingNode::create(stencil);

auto emitter = efk::EffectEmitter::create(efkManager);
auto effect = efk::Effect::create("effects/test.efkefc", 20);
assert(effect);
emitter->setEffect(effect);
emitter->setPlayOnEnter(true);

auto sprite = cocos2d::Sprite::create("mask.png");
clip->addChild(sprite);
clip->addChild(emitter);

addChild(clip);

Please see the first attached gif for result.

Meanwhile, EffekseerForGodot4 DOES work with clipping (the second gif). So the problem seems to be related to EffekseerForCocos2d-x rather than Effekseer.

1

2

durswd commented 6 months ago

We don't implement about clipping. Cocos-2dx has not been developed recently, so no further support for EffekseerForCocos2d-x is provided.