Boids Update
Thank you and you for inspiration. Check those links out to see how real masters are doing it :)
Now everything's smoother - esp. camera movement (the camera now aims towards the overall center of the flock).
The applet is here (does not work 100% since opengl in a browser isn't that common. it surely won't work if java 5 (1.5) is installed on your machine).
Applications are here (download the appropriate folder for your os).
Command list (ripped from the code):
void keyPressed() {
switch(key) {
case RETURN:
changeCenterAtRandomCode();
break;
case 'e':
evade = !evade;
didi.evade(evade);
break;
case 'b':
bgclr = color(0, 0, 0);
break;
case 'w':
bgclr = color(255, 255, 255);
break;
case 'r':
didi.lines();
break;
case 'h':
big = !big;
default:
break;
}
Later edit: zipped mac app here, inside the os folder. never thought of this.
Also, take care when using 'e' (evade key). press it twice.
Now everything's smoother - esp. camera movement (the camera now aims towards the overall center of the flock).
The applet is here (does not work 100% since opengl in a browser isn't that common. it surely won't work if java 5 (1.5) is installed on your machine).
Applications are here (download the appropriate folder for your os).
Command list (ripped from the code):
void keyPressed() {
switch(key) {
case RETURN:
changeCenterAtRandomCode();
break;
case 'e':
evade = !evade;
didi.evade(evade);
break;
case 'b':
bgclr = color(0, 0, 0);
break;
case 'w':
bgclr = color(255, 255, 255);
break;
case 'r':
didi.lines();
break;
case 'h':
big = !big;
default:
break;
}
Later edit: zipped mac app here, inside the os folder. never thought of this.
Also, take care when using 'e' (evade key). press it twice.
3 comments:
I can't download the mac app; you're better off zipping it first, as Apache doesn't seem to know how to handle it.
poti incerca acum, zippuirea a avut loc.
nice loading time on my old mac; boids look alright; keep up the good work.
Post a Comment