Sunday, December 30, 2007

Obstacle-avoiding algorithm in povray

Here's an animation showing an obstacle avoiding algorithm in povray. The camera follows the path of a boid trying to negotiate its way through a maze of balls suspended in place, and follow a set path. The path goes through the red balls. The boid is supposed, of course, to avoid hitting the red ones. There is some jerkiness as it tries to decide what to do when one part of the algorithm is telling it go through the ball and another is telling it not to hit anything. Maybe there's more work to be done there.

No comments: