hi,
i want to have some more algorithims, for manipulating the paths of particles, any one care to help me out?
hi,
i want to have some more algorithims, for manipulating the paths of particles, any one care to help me out?
for what API?
look around at these places.
http://www.flipcode.com
http://www.gamedev.net
http://www.gametutorials.com
check their tutorials and ask on thier forums.
ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.
well, for a basic fountain type thing, with gravity, you could do this...
x=velocity*cos(angle)
y=velocity*sin(angle)*-16(t*t)
where t = time...those might be wrong, I haven't tested them, I just did it from memory, but they look right...
i want to know, things like how do i make effects like those on Ms Media Player, specifically "flame", but i want to make that sort of effect in my program.
(thanks for the gravity thing, i needed that for something else)
well, for things like fire you will need particles to have a varying lifespan (within certain ranges), perhaps basing the life span partially on the angle they are projected at and part random. You'll need to change the color of the particle based on how long it's been in existence, and you'll need to alter the coefficient for the gravity (-16(t*t) is real world gravity, but it would make fire look strange) You could add some random fluxuations in the x component to add some distortion or turbulence type things, or a constant multiplied by t for wind... you'll need a lot of particles for the fire, but in a way, all particle systems are variations on the same principles.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Some of my best thoughts have ended in a semi-colon.