Trigonometric Particles

So I dredged up a relic program from some folder that’s been unopened for ages. I was like, “I wrote that?” I was playing with the program, and thought “Hey, why don’t I make a video?”. So here’s “Trigonometric Particles” video:


Trigonometric Particles from Vincent Tan on Vimeo.

Special thanks to Ben for letting me use one of his songs “Bobsleigh” as the background music. He’s awesome. I love the quick tempo, which matches the non-stop streaming of particles.

The program uses OpenGL for 3D rendering, and I used the SDL library to help. Basically, I visualised each axis as a function. So the X axis is say, a sine function. With some creativity, I can form cylinders, cones and spheres with the 3 axes.

I submitted the program to NeHe Productions, an OpenGL site related to game programming. The submission is placed under P of the download section. I learnt a lot from the site such as general 3D skills and OpenGL tricks.

You can download the program here too (216 KB). The website address and email address in the zip file are no longer in use. It’s been 5 years since… or was it 6 years?

I’ll talk more about the mechanics soon. And yeah, I lost the source code (darn it!), so I’ll be speaking from memory. For now, just enjoy the video. If you’re hardcore, you can try dissecting the mechanics yourself. Hint: There’s an additional W axis. Hint: Composite functions are involved. Post your findings in the comments, and we’ll see how you did.