4.75

4.8 | 4 ratings Rate this file 17 Downloads (last 30 days) File Size: 21.08 KB File ID: #14314
image thumbnail

Particle System Toolbox

by Joerg Buchholz

 

17 Mar 2007 (Updated 24 Oct 2008)

Graphically simulate the interactions of particles, springs, and attractions in a particle system.

| Watch this File

File Information
Description

Did you ever wonder, how they do the simulation of all that snow, rain, dust, smoke, and fire in modern computer games? How they model bullets, ropes, curtains and solar systems?

With this particle system toolbox you can easily create particles, attractions, and springs in a particle system environment with gravity and drag and graphically simulate their interactions with just a few lines of code. Run one of the 12 demos and read the detailed documentation at

http://buchholz.hs-bremen.de/particles/particles_2_1.pdf
(pw: dummy)

Have fun...

MATLAB release MATLAB 7.6 (R2008a)
Other requirements If you want to enjoy "real-time", your cpu and gpu should be of this century; object orientated programming in Matlab is not really the fastest lane on the particle system highway... ;-)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (10)
20 Mar 2007 John D'Errico

Complex, but absolutely splendid!

My only thought was a minor one. I'd have liked to see the pdf documentation already be included in the zip file itself. It is something that any user will want to read and keep around, so why make the user download it separately, then move it into the particles directory to keep it around?

21 Mar 2007 Joerg Buchholz

John, seems like I'm a little antediluvian regarding file size. I just can't get rid of that feeling that there are still some 56k-modem users out there in Matlab Country, hating to download "large" files for just a sneak preview... ;-)

05 Dec 2007 Shawn Harrison

So, what is the password to read the pdf documentation??

Seems silly to password protect the documentation.

06 Dec 2007 Joerg Buchholz

It is a very long story, why I had to do that ...

The password is: dummy

27 Feb 2008 Namhee Kim  
13 Aug 2009 Prashant Pawar

I am getting following error

??? Error: File: particle_system.m Line: 1 Column: 10
A class definition must be in an "@" directory.

Error in ==> demo_1 at 23
Particle_System = particle_system

Can you plz help me about avoiding the error.

13 Aug 2009 Joerg Buchholz

@ Prashant Pawar: The Mathworks augmented the Matlab object model in R2008a. Therefore you have to use a version equal or higher than that for the PSTB 2.x. The error indicates that you use an older version of Matlab. I will send you a 1.0 version of the PSTB that sholud work with your Matlab via e-mail .

13 Aug 2009 Prashant Pawar

thank you

22 May 2011 Andrew Bolt  
24 Nov 2011 Roberto Gallea

Great work! I suggest to improve it by allowing the particles to be fixed in a desired direction (x, y, z or arbitrary).

In addition, I ported this framework in C/C++, if someone is interested please let me know.

Please login to add a comment or rating.
Updates
23 Apr 2007

Just a few minor debugs...

07 Mar 2008

All objects in the version 2.0 of this toolbox are derived from the handle class, significantly increasing the ease of aggregation and administration of particles, springs, and attractions in the particle system.

24 Oct 2008

Particles, springs, and attractions now have their own update_graphics_position method. New demo "Three-Body Eight".

Tag Activity for this File
Tag Applied By Date/Time
mechanical modeling Joerg Buchholz 22 Oct 2008 09:04:54
particle system Joerg Buchholz 22 Oct 2008 09:04:54
particle Joerg Buchholz 22 Oct 2008 09:04:54
spring Joerg Buchholz 22 Oct 2008 09:04:54
attraction Joerg Buchholz 22 Oct 2008 09:04:54
snow Joerg Buchholz 22 Oct 2008 09:04:54
drag Joerg Buchholz 22 Oct 2008 09:04:54
gravity Joerg Buchholz 22 Oct 2008 09:04:54
rain Joerg Buchholz 24 Oct 2008 14:15:51
simulation Joerg Buchholz 24 Oct 2008 14:15:51
particle system A B 31 May 2009 12:02:13

Contact us at files@mathworks.com