elBukkit / EffectLib

Allows constructing of complex effects.
http://forums.bukkit.org/threads/effectlib-manage-your-effects-the-nice-way-text-image-in-particles.259879/
MIT License
81 stars 19 forks source link

The ColoredImageEffect is blinking #18

Open Foodust opened 3 months ago

Foodust commented 3 months ago

Nice to meet you. I'm using a translator, so it may not be accurate. This plugin is so interesting that I'm testing it alone. But when I import the image with the ColoredImageEffect, the particles flash. Is it because of the large image size? It loads the whole thing, but it blinks 1/4. any helps please, thank you

NathanWolf commented 3 months ago

I think you are probably right, Minecraft has a limit on the number of particles it will display. So if there are two many they may blink as it turns off the old ones when spawning new ones.

The step parameters are the best way to fix this, it will make your image less dense by moving farther between each particle spawn. Something like this, maybe:

               stepX: 20
               stepY: 20

The default is 10, so I think 50 should make 1/2 as many particles (in both directions, so 1/4 total). I'd suggest trying that and tweaking the value until it looks good.

Let me know if that works!

Foodust commented 3 months ago

Thank you! I use the translator so it may not be accurate. StepX and stepY solved the flickering problem Image pixels get lower. I don't think this is a fundamental solution. Is there another solution to load while keeping image density?

ezgif-2-0a039b6418

NathanWolf commented 3 months ago

Wow that's a lot of particles! :)

No unfortunately, there is no real solution that I know of.

It is a limitation of the Minecraft client itself, only so many particles can be on the screen at once.

Foodust commented 3 months ago

I see, thank you for your response, I will look for other ways.