April 24, 2014

Class project - torus knot

My goodness, it's been a while since I've posted in here.

My intrigue for shader programming hasn't left me, but the semester is nearing to a close and things are very busy now.  But we had a final project in my Rendering class where we were required to implement either bump mapping or environment mapping and I chose the latter.

I've been really interested in mathematical shapes.  I wanted to implement a 3D Julia set but I can only use VBOs to implement the geometry and the professor thought it would be too difficult, so I implemented a torus knot instead.  It wasn't easy either but at least it was doable.

I'll attach a video later but here's a screenshot:


Basically the camera rotates around the knot and the knot rotates along two of its axes.  It looks pretty cool, I wish I was able to implement clouds in the fragment shader and it would be really cool.