simple vortex field

39a2064bb2baa77517f3391af81a0074
0
empy_85 101 Dec 10, 2010 at 00:20

hi everybody,
i m jus working on opengl particles..
i need to create a vortex field ..
can anybody shed some idea that how to make the vortex field for the particle…………

thankx in advance

3 Replies

Please log in or register to post a reply.

A8433b04cb41dd57113740b779f61acb
0
Reedbeta 167 Dec 10, 2010 at 00:25

Make the particles travel in circles around a central axis, with a speed that is high close to the axis and slow far from it.

6837d514b487de395be51432d9cdd078
0
TheNut 179 Dec 10, 2010 at 01:51

Spirals
Gravity

Depending on your vortex, those two topics should help you get started on your vortex simulator. If you’re interested in just creating a cloud vortex like a hurricane, then create a spiral and populate the arm with a lot of particles. As Reedbeta stated, rotate the particles closest to the centre quicker than those further away. You can use the inverse-square law to determine how fast the particles move in relation to its distance from the centre.

If by vortex you’re talking about wormholes, blackholes, or similar things, then you could add a little more realism by introducing gravity into your simulator. Depending on how you want the effect to look, start off with an explosion of particles on the spiral and with an initial force equal to the tangent of the spirals arm. If you use a weak force, the particle will get drawn into the well. If you use a strong force, it will slingshot. You can calculate the escape velocity if you want it to orbit the well. Then just let physics do the rest. Rotate the spiral so newly created particles appear to be rotating with the vortex. Add more than one spiral if you want a more nauseous animation. Add warping and shearing effects in a fragment shader to really get that “Ohhhh” and “Ahhhh” effect :)

39a2064bb2baa77517f3391af81a0074
0
empy_85 101 Dec 10, 2010 at 09:42

@TheNut

Spirals
Gravity

Depending on your vortex, those two topics should help you get started on your vortex simulator. If you’re interested in just creating a cloud vortex like a hurricane, then create a spiral and populate the arm with a lot of particles. As Reedbeta stated, rotate the particles closest to the centre quicker than those further away. You can use the inverse-square law to determine how fast the particles move in relation to its distance from the centre.

If by vortex you’re talking about wormholes, blackholes, or similar things, then you could add a little more realism by introducing gravity into your simulator. Depending on how you want the effect to look, start off with an explosion of particles on the spiral and with an initial force equal to the tangent of the spirals arm. If you use a weak force, the particle will get drawn into the well. If you use a strong force, it will slingshot. You can calculate the escape velocity if you want it to orbit the well. Then just let physics do the rest. Rotate the spiral so newly created particles appear to be rotating with the vortex. Add more than one spiral if you want a more nauseous animation. Add warping and shearing effects in a fragment shader to really get that “Ohhhh” and “Ahhhh” effect :)

YAA THANK UREED BETA AND NUT..
THANK U SO MUCH…