Library EffectLib - Manage your effects the nice way. (Text/Image in Particles)

Discussion in 'Resources' started by Slikey, Apr 21, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Slikey

    Thank you so much. I am happy that people like my lib! ;)

    Hey, I already though about this and I think that you shouldn't use this library when there are 200 or more players in the radius of packet-recieving. If you think about some players having hundreds of torches on their hubs, it also influences the performance.
    Here is an example for the text. I use the firework-sparks every 40 ticks to send them to all players.
    [​IMG]
    As you see there are 246 particles on this effect and the result is worth it, I think. It is theoratically(!) 6,15 packets per tick per player.

    I consider also caching those packets. Maybe it is senseful not to send all packets in the same tick, but split the effect for players so the effect is send over the next 5 ticks to all players, in case of a big repetition period.
    Or maybe a producer / consumer pattern that handles X packets per tick, to ensure a consistent impact on performance.
    I'll have to do some checks about this.. Maybe I can increase performance then.. I wonder how much packets are sent from the server while in idle? :O

    codename_B Do you know how much packets are send per tick from you hub on Hypixel? I don't know how many packets are too many. :O

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Oct 29, 2015
    LegitJava likes this.
  2. Offline

    bigteddy98

    246 is nothing compared to other particles you've shown us, try it again with some bigger particles. Anyway, I indeed think it isn't very much, unless you have 100+ players online in the same world.
     
  3. Offline

    Slikey

    bigteddy98 To my disgrace, i have to admit that most of the effects in the screenshots are with a high density of particles.. the default settings shouldn't be that high :D
    But damn! Screenshots have to lie ;)
     
    bigteddy98 likes this.
  4. Offline

    LCastr0

    I have only one thing to say... On the BigBamg effect, your auto-exploding fireworks could be made using bigteddy98 's lib :p So it wouldn't show the firework trails ;)

    :p Good luck ;)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jan 4, 2016
    bigteddy98 likes this.
  5. Offline

    Slikey

    LCastr0 Yeah.. Have to look in it.. But the BigBangLocationEffect is not yet done, because I have some problems there with high particle density.. I want to create an epic explosion and the fireworks aren't enough there.. :(
     
  6. Offline

    codename_B

    Slikey we cache the particle packets so each effect is only generated once, and sent to every player.

    It's cool but what about just the outline of a cube? ;)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Oct 29, 2015
  7. Offline

    Slikey

    Yeah. I do so too. I also check if the player is inside a certain radius... Question is, if it would be good to create a producer / consumer pattern for this to guarantee a constant impact on performance instand of sending every 40 ticks a shitload of packets to all the players.. I think i'd be better to send 200 packets over 4 ticks then sending sending all 200 in one tick..

    I think, that that's easily done ;) Looking into it, after a short nap. ;)

    New Effect: Image (Same settings as text, but reads an image in jpg, png or gif from the plugin folder)

    Converts an image from black/white to particles in minecraft!

    [​IMG]
    [​IMG]


    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Oct 29, 2015
  8. Offline

    LCastr0

    Just... :O
     
    glen3b likes this.
  9. Offline

    Gater12

  10. Offline

    ArthurMaker

    Slikey
    You are a god, sir.
     
  11. Offline

    Slikey

    No compliment for an atheist. But thank you very much ;) The image parser wasn't that hard.. In generel.. I think the Lib is pretty much done soon.. I am so fast at generating these effects, that I think it's pretty much good to handle.. And there are a lot of samples for effects now. So that people can start creating their own effects..
     
  12. Offline

    coco5843

  13. Offline

    Slikey

    Yeah. A Donut is a great idea.. I think I'll get that one done this evening.. after codename_B's cube net ;)
     
    LCastr0 likes this.
  14. Offline

    LCastr0

    I have a "dare" for you :p
    A planet, like a sphere, where some parts are blue and some parts are green ;)
    xD
     
    glen3b likes this.
  15. Offline

    VictoryShot

    Omg yes
     
  16. Offline

    Slikey

    Oh that's gonna be hard, because I have to generate land and fill the rest up with ocean.. I am going to need a VertexMap I think... Let's see ;) but there is a lot to do now.. I have to change some internals and finish 2 effects..^^

    Donut done: added as effect ;)
    [​IMG]

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jan 23, 2016
  17. Offline

    codename_B

    Whars ma cube lawl
     
  18. Offline

    Slikey

    codename_B dat's comin' now!
    Show Spoiler

    [​IMG]


    here you go..

    Added as option to the CubeLocationEffect.. just set the flag "outlineOnly". (done in 17 minutes!)

    [​IMG]

    ahh i remember.. you wanted it giant..
    [​IMG]

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Oct 29, 2015
    ChipDev likes this.
  19. Offline

    LCastr0

    Another idea: A sun!
     
  20. Offline

    Slikey

    Another new Effect: Hill
    • Custom Height
    • Custom Particle and Particles per row
    • Custom edgeLenght
    • Custom rotation around y-axis
    [​IMG]
     
    LCastr0 likes this.
  21. Offline

    codename_B

    Haha thanks ;)
     
    LCastr0 likes this.
  22. Offline

    VictoryShot

    Are you going to use these particles in minigames?
     
    LCastr0 likes this.
  23. Offline

    coco5843

    "/donut" :::::D
     
  24. Offline

    Slikey

    So.. I'll announce now, that I have found something new to work on. So the frequency of new effects is going to decrease drastically. Since I gave you guys a big repository of effects, you should have the ability to learn from that and create own effects.
    The next effects will contain a lot of detail and may be more complex then every (yet) implemented effect. Stay tuned for effects and of course submit you own effects!
    And additionally stay tuned for my next project. ;)
     
    Wingzzz, AstramG, DogeDev and 3 others like this.
  25. Offline

    coco5843

    Thank you for this great and full resource library, when I started programming plugin
    I've always dreamed of doing this!
    I am creating my own effects and even publish here
     
    Slikey likes this.
  26. Offline

    ftbastler

    WOW! Thanks. This is so awesome.
     
  27. Offline

    iMurder

    I absolutely LOVE THIS!
    I do not think I can show my appreciation enough, for this masterpiece!
     
  28. Offline

    AstramG

    Slikey Thank you for your contributions. I'll try to work my part and possibly contribute to this as well. I'm still learning some of the trigonometry functions done here, but soon I might be able to release some effects myself.
     
  29. Offline

    iWareWolf

    This is incredible! You just paved the way into the next stage in Minecraft Server plugins!
     
  30. Offline

    Slikey

    ftbastler iMurder AstramG iWareWolf Thank you guys! Such compliments is what devs need. If you are happy with something, it is really nice for the dev, if he know that people like what he's doing. Thanks you and have fun with the Lib! ;)
     
    iMurder likes this.
Thread Status:
Not open for further replies.

Share This Page