For those of you following me on Twitter today, you witnessed the pain I endured under the cruel, icy grip of OpenGL.
That pain: learning how to compute vertex normals.
But eight hours later, I managed to pull it off with the help of the OpenGL SuperBible, this thread, and this article. Oh, and this amidst porting it to C++ (openFrameworks) for maximum control and speed.
Along the way, I learned how OpenGL lighting works. I was having such a hard time with it before because my form didn’t have its surface normals nor its vertex normals correctly calculated. So light wasn’t bouncing off it the way I expected. Now it’s all making good sense.
My next steps will be adding interactivity. I’m going to try to use my HP TouchSmart for touch input along with its webcam for vision input. Separately, I’ll try to make some sort of music visualizer out of this — or at least make it audio-responsive.
Check out a video from today: