Computer Science Canada

particle system

Author:  PaddyLong [ Mon Dec 08, 2003 11:57 am ]
Post subject:  particle system

here's my particle engine.... I wrote most of it during the summer, but decided to work on it again for some reason in the past couple days, so I made it better.... also, it's object oriented so it's pretty easy to use ... any way, here it is... oh yeah, in the demo program, the particle system moves towards the mouse cursor. when you click the mouse button, the system changes colour and size (well... particle life span)

Author:  Homer_simpson [ Mon Dec 08, 2003 6:42 pm ]
Post subject: 

it's pretty nice... but it goes pretty slow when u change the number of particles to something like 1000 or 2000

Author:  Tony [ Mon Dec 08, 2003 7:45 pm ]
Post subject: 

awesome 8) have some +Bits

Author:  PaddyLong [ Tue Dec 09, 2003 12:10 am ]
Post subject: 

Homer_simpson wrote:
it's pretty nice... but it goes pretty slow when u change the number of particles to something like 1000 or 2000


yeah :/ not really sure how I can fix this though

Author:  Homer_simpson [ Tue Dec 09, 2003 12:16 am ]
Post subject: 

I didn't go to the details in yer code... but i think u either have extra non necessary calculations... or yer updating the screen too often(doubt it)...

Author:  PaddyLong [ Tue Dec 09, 2003 12:21 am ]
Post subject: 

I think I know what it probably is... it's probably that it's generating the gradient everytime a particle is reborn... I'll see about changing this tomorrow

Author:  PaddyLong [ Tue Dec 09, 2003 12:40 am ]
Post subject: 

k, I changed that and it speeds it up a lot... just a bit more debugging to do to fix it up, but that I'll probably leave till tomorrow in case I get bored again lol

Author:  PaddyLong [ Thu Dec 11, 2003 1:03 pm ]
Post subject: 

k here's the latest version... I think this is going to be the final one.. for now any way


: