twisting spline & crt
projects | | linkz:
Skills Practiced: C++, GLSL, Fragment Shaders, Geometry Shaders
Tools Used: OpenFrameworks
Project Duration: 3 Weeks
Project Focus: University Coursework
This was a piece of coursework during my study at the University of Abertay, Dundee, for the Graphics Programming with Shaders module.
The coursework required a nontrivial number of shaders; I wrote CRT monitor simulation fragment shader, a LUT-based colour correction fragment shader, a glow shader, a gaussian blur shader, and a scanline filter shader.
The polygons of the curving track are created on the GPU, using a geometry shader that I wrote; the main application, running in C++ with OpenFrameworks (as an OpenGL layer) simply plots single vertices in a hermite spline configuration and moves the viewing camera along the spline. A vertex shader is applied to the spline geometry that allows the spline’s vertices to be twisted into a spiral.
The shader was heavily parameterized, so that everything could be adjusted on the fly for different effects.