cubecubecube?
deleet
deleet
 übersicht
 suchen

projekte
 SkyColor
 DudeWars
 purzel
 daap
 ULF
 KAP

ray
 newton
 fotos
 Q2BG

io
 download
 source
 pix

root / projekte / purzel


A 2D simulator based on Fedkiw's and Bridson's paper Nonconvex rigid bodies with stacking. In contrast to Bridson/Fedkiw's implementation, it's geared towards a real-time simulation with a much simpler geometry. You can play around with it, grab bodies with the mouse, modify the simulation parameters and so on.

I implemented some of the details described in the paper -- the split-up of contact and collision, the contact graph and shock propagation, for instance -- but chose a simple two-level interference detection with a modified SAT at the lower level. Of course that means that only convex bodies can be simulated. The simulation is neither very robust nor optimized at this point.

The videos are collections of PNGs in a QuickTime wrapper which may not play with some versions of QuickTime. The source should compile on Windows (Visual C/C++), MacOS X and Linux (gcc). OpenGL/GLUT is required. Windows binaries are included.

Version 0.1a gets optional acceleration input from the sudden motion sensor in recent Apple laptops and the Nintendo Wii remote. Only works on MacOS X, though, and the Wiimote support is rather hacky. See enclosed README for a few more details.
defpurzel-0.1.tgz88.5KB 
defpurzel-0.1a.tgz98.2KBwith accelerometer support (sudden motion sensor, wiimote)
movpyramid-smash.mov7.1MB 
imgsmash-sample.png14.7KB 
movstack-collapse.mov8.1MB