Programmer

Flocks - Code Art

Academic Project - "Computer Graphics"

4 weeks : 2015/11 - 2015/12

Processing

“Flocks” is an interactive 3D graphics code art to simulate the natural flocking behaviors of the birds. Through project, 3D version of the autonomous agents was implemented referencing “The Nature of Code” by Daniel Shiffman.

#proecesing #interactive #3D_graphics
#autunomous_agents #nature_of_code

category
academic project
duration
4 weeks : 2015/11 - 2015/12
platform
Processing
#proecesing #3D_graphics
#interactive
#autunomous_agents
#nature_of_code
TASK
Creatively build interactive 3D graphics project
TOOL
Processing, GLSL
WORKFLOW
"Flocks" is an interactive 3d graphics code art. Viewers can design their own paper plane with the drawing palette and apply the design. Viewers can explore the 3D space in two ways. (1) Viewers can either see the paper plane flocks flying autonomously in 3rd person perspective, (2) or navigate through the virtual landscape with keyboard control in immersive 1st person perspective of the designed paper plane.
INTERNAL MECHANISM
"Flocks" was a project to simulate the natural flocking behaviors of the birds. Through project, 3D version implementation of autonomous agents in "The Nature of Code" by Daniel Shiffman. The flocks of paper planes fly in a herd yet avoiding the collision through three steering forces :

1. Avoidance : check the nearby neighborhood and steer away to avoid collision
2. Alignment : calculate the average velocity of the neighborhood to make them head the same direction
3. Cohesion : steer towards to the center of the neighborhood to say within the group




Three forces are applied to the flocks and control the autonomous flight of the paper planes.
PROCESS

World Making

Object Design

RESULT
SOURCE CODE
Find the source code on my github.