Saturday, July 30, 2011

Bullet Physics demo 3: Collapsing stack of balls + EXE





Yesterday I got a new idea for a real-time path traced Bullet physics animation: a collapsing stack of spheres. The plan:



I've implemented the scene and physics in both the tokaspt and the Simplex Paternitas path tracers to see the difference in framerate and realism.

Picture from Tokap (some circular artefacts which look kinda cool :) :


Picture from the Futuristic Buildings (Simplex Paternitas) path tracer:


All videos below were rendered in real-time on my poor little 8600M GT, probably one of the weakest CUDA-enabled cards in existence. Every animation below should run smoothly and at much higher quality on a GTX 260 or higher:

Tokap with Bullet 4 spp:


Futuristic Buildings with Bullet 12 spp:


Futuristic Buildings with Bullet 24 spp:


Futuristic Buildings with Bullet 4 spp, Eagle's view:











Download the executable for "TOKAP Bullet Sphere Stack" at http://code.google.com/p/tokap-the-once-known-as-pong/downloads/list


UPDATE: Some people have reported that the Bullet demos don't work on their systems, receiving the following message:

"Activation context generation failed for "programme name".

Dependent Assembly Microsoft.VC90.DebugCRT, processorArchitecture="x86", publicKeyToken = "1fc8b3b9a1e18e3b", type="win32", version="9.0.21022.8" could not be found. Please use sxstrace.exe for detailed diagnosis."


This error is due to the fact that the demos were compiled with the Bullet library in debug mode and are dependent on the Visual C++ 2008 runtime library. Downloading the Microsoft Visual C++ 2008 Redistributable Package (x86) from http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=29 should solve the issue.