In case you’ve been trying unsuccessfully to get the source code for my demos from CodePlex (their Team Foundation Server experienced some unfortunate operator error) I’ve published the 3D XBAP stuff here. Note the beachballs now have a nice specular material applied ![]()
In my last post I’d forgotten to credit Daniel Lehenbauer for his Sphere3D code (which saved me a lot of effort!). You can find his original post here.
UPDATE: I’d forgotten to post the “main” part of the source code; d’oh! You can find it here (source only, or a version with binaries here)..


7 comments
Comments feed for this article
April 30, 2007 at 5:03 am
Duque Vieira
Great demo!!!
You forgot to post your part of the code, though.
The solution is missing the main code. Could you check the ZIP you’ve posted?
Thanks. Best regards.
April 30, 2007 at 6:27 am
Chris Cavanagh
Duque – Right you are!
I’d forget my head if it wasn’t attached
See my updated post…
May 21, 2007 at 1:38 pm
Erwin Coumans
Thanks for the fun demo. Are you using a fixed timestep for Bullet?
Could you get in touch over email, so we can try to improve the simulation for boxes (get rid of the jiggle/jitter/softness) ?
Thanks!
Erwin
May 21, 2007 at 3:40 pm
Chris Cavanagh
Erwin – Thanks for the comment! Currently it’s using the millisecond difference between the current and last step. On some machines this makes the animation pretty choppy (rather than just slowing it down). What’s your preference?
Great idea about improving the box simulation; it’s probably something really simple causing the problem. You can email me at wpf@spamsong.chriscavanagh.com (without the spamsong).
February 1, 2008 at 11:53 pm
Scott Hanselman's Computer Zen - Firefox, WPF and XBAP
[...] 3D Physics XBAP by Chris Cavanagh and Source [...]
August 17, 2009 at 8:26 am
Takuan Daikon
That is seriously freaking cool. Thank you so much for posting the code for this, it looks like it’ll make a good quickstart
August 17, 2009 at 9:48 am
Chris Cavanagh
Thanks Takuan
I hope it’s useful!