AWESOME particle system

hello,
i just found this video on youtube and i want to post it here in case you didn’t see it, it’s pretty amazing and it’s written with in pure java with no outside libraries.

a8uZUqIEsoI

Dear Experts ::slight_smile:
a getting started tutorials about graphic effect (Glow,Blur, particle system ) in java will be very appreciated ;D

That’s how i like it. Messing with pixels, no forms, pure math.

I’m yet to see if it performs well.

Very limited though. Nice to see someone mange to crank so many particles in just java2d but if you look at the source he does not do very many g.draw calls. (if any) most is directly manipulating pixels which is not very nice when you want to do more then program pixels.

I would love to know what his computer specs are because I simply can’t see most peoples computers doing 1 mil particles. I also tried the code and although it compiled it just didn’t do anything. Another reason why you should stay the hell away from java2D. It is not at all consistent on computers.

It does look insanely cool though. The fact that he managed to make it work like this on his development machine is still an achievement, even if you’ll never make it perform well in general.

You try dragging with the right mouse button? I thought it was broken too until I looked at the code.

Except that the vast majority of this is not Java2D, it’s direct pixel manipulation, which is highly consistent across computers. This would probably perform better if he switched to an active rendered buffer strategy for the final blitting.

xD
i dunno why you hate Java2D that much ::slight_smile:
try watch this one, he is explaining his method for the previous particle system
here

for graphics effects in java: search opengl +

i didn’t start learning openGl yet ::slight_smile:
i need to finish my first Java2D game 8)
ps :
i dunno why it scares me :stuck_out_tongue:
“openGL” xD
it’s hard to learn isn’t it ?

Definitely not harder than Java2D…
But people don’t get it…

And for performance code, opengl is FAR easier than java2d. Perhaps FX may change that. But i won’t hold my breath.

This OpenGL introduction applies to LWJGL
http://tomdalling.com/blog/category/modern-opengl/ - caution, as it has 7 parts, and not really much is yet explained here but it will get you into OpenGL enough so you can use other tutorials and stuff.

And for Matrix and Camera use LibGDX classes (PerspectiveCamera and Matrix4/Matrix3)
While learning, please use LWJGL directly, don’t use LibGDX GL wrappers, they don’t support VAO

then the problem is finding a good place to start …

thank’s i’ll give it a try