Curious Blobs
I was really interested in exploring the relationship between audio and animation throughout the semester, and immensely enjoyed creating blobs. I wanted to build a small ecosystem of audioreactive blobs for my final, and primarily focused on refining look and feel of them. I hooked up the individual blob particles to a noise field, and modified the force of the field from audio input data. The texturing of the blobs was achieved by the following snippet of code (in the blob class):
img.getTextureReference().bind();
glBegin(GL_TRIANGLE_FAN);
glColor4f(1.0,1.0,1.0,1.0);
glTexCoord2f(imgCoords[0], imgCoords[1*2]);
glVertex2f(centroid.pos.x, centroid.pos.y);
for (int i = 1; i < particles.size(); i++)
{
glTexCoord2f(imgCoords[i*2], imgCoords[i*2+1]);
glVertex2f(particles[i]->pos.x, particles[i]->pos.y);
}
glTexCoord2f(imgCoords[2], imgCoords[3]);
glVertex2f(particles[1]->pos.x, particles[1]->pos.y);
glEnd();
img.getTextureReference().unbind();
Curious Blobs from Justin Blinder on Vimeo.