Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 particle system
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
PaddyLong




PostPosted: 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)


ParticleEngine.t
 Description:
particle engine - updated december 8 11:40pm

Download
 Filename:  ParticleEngine.t
 Filesize:  7.7 KB
 Downloaded:  242 Time(s)


ParticleEngineDemo.t
 Description:
a demo program (you need ParticleEngine.t to use this)

Download
 Filename:  ParticleEngineDemo.t
 Filesize:  2.37 KB
 Downloaded:  212 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Homer_simpson




PostPosted: Mon Dec 08, 2003 6:42 pm   Post subject: (No subject)

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




PostPosted: Mon Dec 08, 2003 7:45 pm   Post subject: (No subject)

awesome 8) have some +Bits
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
PaddyLong




PostPosted: Tue Dec 09, 2003 12:10 am   Post subject: (No 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
Homer_simpson




PostPosted: Tue Dec 09, 2003 12:16 am   Post subject: (No 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)...
PaddyLong




PostPosted: Tue Dec 09, 2003 12:21 am   Post subject: (No 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
PaddyLong




PostPosted: Tue Dec 09, 2003 12:40 am   Post subject: (No 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
PaddyLong




PostPosted: Thu Dec 11, 2003 1:03 pm   Post subject: (No subject)

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


ParticleEngine-PaddyLong2003.zip
 Description:

Download
 Filename:  ParticleEngine-PaddyLong2003.zip
 Filesize:  275.22 KB
 Downloaded:  161 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 8 Posts ]
Jump to:   


Style:  
Search: