Particle System simple examples?

Hi! I’m new to Babylon and trying to manipulate particle systems in my scene. I’d like have basic fire flames like this playground: https://www.babylonjs-playground.com/#7IM02G#0 and have several in my scene and manipulate things like the starting position on the screen, and turning their visibility on and off based on other JS events. Can anyone point me in the direction of where the documentation or examples for these basic variables might be? This playground just shows the creation of one flame, and all the docs I’ve found are more complex about particle size/position etc, but I’m talking about the system as a whole. I think what I’m trying to do is simple, but all the docs about particle systems vs particle helpers are a bit confusing. Let me know if you have any suggestions. Thanks!

Hey @kgob, welcome to the Babylon family!

There’s a lot of examples of how to use particles in our documentation here:
https://doc.babylonjs.com/babylon101/particles

Another resource you could try is checking out our YouTube channel…there’s a lot of great tutorials on there that can help as well.

3 Likes

Thanks for these links! Your pirate fort video is really helpful- and super cool looking!

Question- in the fire particle system helper playground I linked above- is there a way that I can take that fire graphic and use it in the same way you’re manipulating all of these particle systems? Put another way: how did you create the smoke effect for your cannons in your particle system? Thanks!

1 Like

I used the particle editor to create the particle smoke effect. Then essentially parented the particle system to a mesh that can be moved, rotated, scaled…etc.

There’s no reason you shouldn’t be able to do the exact same thing with the fire effect.

Hope this helps.

1 Like