sdslabs / Rootex

An advanced C++ 3D game engine powering an in-production game yet to be announced

Home Page:https://rootex.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Effekseer persisting old effect even after loading new ones.

r41k0u opened this issue · comments

using the Simple_Distortion.efkefc in the ParticleEffectComponent shows some problems with it.
After Selecting the Moving option, when the scene containing the ParticleEffectComponent is moved, the effect shows up at the new location, but is also shown at its previous location, effectively duplicating it.

When a new effect is loaded instead of Simple_Distortion.efkefc, this effect is not overwritten, but the new particle effect shows up along with Simple_Distortion.efkefc

image

image

image

the effect files used : Simple_Distortion.efkefc and Laser02.efkefc (available in Effekseer162bWin\Sample\00_Basic after unzipping https://github.com/effekseer/Effekseer/releases/download/162b/Effekseer162bWin.zip)

This seems to be a problem with effects which run continuously (don't have a finite lifetime). The laser effects provided don't show this problem as they have a finite lifetime. But Sime_Distortion runs continuously. Also, after saving and reloading this scene, Simple_Distortion effect doesn't show up and only Laser02 works (which is intended and should happen)

To trigger the bug, you'll also have to play the scene. It seems like playing the scene is duplicating the effect. If we don't play the scene, it is working as intended. But after play, a duplicate of the effect is created which persists even after play has been stopped.