Home

Screensavers

School screensaver for Win32, based on Craig Reynolds' Boids algorithm

Download school.zip HERE

School Screensaver ------------------ This is an OpenGL schooling simulation using Craig Reynolds' Boids algorithm to simulate a 3d school of fish. See his site for a description of the algorithm and the original paper. This is a lightly modified version of the algorithm that supports goal attraction. It's a rewrite of a screensaver that I wrote for the NeXT way back when, and I did it to get my feet wet in OpenGL. A note about settings: ====================== Many different behaviors are possible through parameter tweaking. Briefly, the accelerations are applied in order until the acceleration limit is reached: Avoidance - avoid schoolmates Matching - match schoolmates velocity (and heading) Centering - try to get to the center of the local group Targeting - seeking the goal The local schoolmate group is determined by the size of the Neighborhood parameter. Increasing the neighborhood tends to make the fish blob up into bigger groups. Decreasing it leads to smaller, more independent groups. Hope you enjoy it, it's my first OpenGL effort. If you're an OpenGL or 3D expert, and you have comments, I'd love to hear them. Thanks! - David C. Lambert

01 March 2006