Archive for the 'nature of code' Category



view applet, download source
Above is a new Box2D Processing example that demonstrates two key aspects of working with Box2D:
1) Though tempting as it may be, you cannot set the location manually of an object in the Box2D world and expect the physics to continue to work. Box2D doesn’t understand teleportation (which is the equivalent [...]

Building off of last week’s Box2D and Processing post, I have now posted a short tutorial about the physics package in toxiclibs. The force directed graph example is a simplified version of toxi’s wonderful fidgen project.
Link: http://www.shiffman.net/teaching/nature/toxiclibs/

 
I’m pleased to announce I’ve published a first draft of a tutorial about using Box2D in Processing.
Tutorial: http://www.shiffman.net/teaching/nature/box2d-processing/
Google code repository: http://code.google.com/p/pbox2d/
I’m struggling here to figure out whether I’m (a) creating a Processing Box2D library or (b) simply creating a tutorial and set of examples piggybacking off of JBox2D. For now, I’m doing [...]

Ok, so I may very well be one of the slowest writers ever, but I am pleased to finally announce that I have completed a draft chapter for what I hope will become my next book: The Nature of Code. Based on my experience getting Learning Processing out into the world I’ve decided to [...]

As an addendum to the previous post, here’s an early draft excerpt from Chapter 7 on steering behaviors, more specifically a tutorial related to my new path following examples. Also an excuse to cover the dot product in more detail. All based on Craig Reynolds of course.

This semester, I’ve started working on expanding my nature of code tutorials into a book. My plan is to self-publish (looking into a few options) and have drafts available for download / purchase as early as this summer. I’ll also be publishing excerpts from the book as tutorials on [...]

I’ve added three new steering examples (based, of course, off of Craig Reynolds’ Steering Behaviors for Autonomous Characters) to the nature of code tutorials. Ultimately, it’s my goal to build out all of Reynolds’ algorithms into a Processing library (much like Open Steer), so stay tuned. . .
   
Path Following
Flow Field
Crowd [...]

Two announcements.
I am incredibly honored and excited to be participating in the upcoming Art and Code symposium, organized by Golan Levin at Carnegie Mellon University.
Visit Art and Code
In addition, I’m finally working on a new tutorial page for the Nature of Code site. The tutorial will be about resolving collisions and [...]




You are currently browsing the daniel shiffman weblog archives for the 'nature of code' category.

Longer entries are truncated. Click the headline of an entry to read it in its entirety.

Categories