Sketchbook

Creating drawings and renders using computer graphics is one of the most exciting things I have ever learned. This sketchbook showcases some of the "artwork" I've crafted using OpenGL/WebGL. For every artwork, I try to apply new techniques and learn more about OpenGL, or computer graphics in general.

Attack on Titan

This is a 2D OpenGL drawing that uses immediate mode to draw the titan from Attack on Ttian (one of my favourite shows of all time). The precise drawing was done by first building a quick tool in Blender to trace out the shapes in a reference image and output the vertices for OpenGL drawing.

Universe

This is a 2D OpenGL drawing that uses immediate mode to draw simple orbiting spheres. The spheres were drawn with color blending for faking a shaded appearance. Motion blur was also added by rendering previous frames together with the current one.

Ray Tracing

This is a 3D OpenGL render that uses ray tracing for rendering. Phong's Illumination model is used with basic material properties. Shadows and depth of field (DoF) were also added as part of global illumination.

Endless World

This is a 3D OpenGL render that generates terrain using Perlim Noise, and uses L-system for generating simple trees. The app features three different looks including wireframe, flat shaded, and smooth shaded using OpenGL's built in Gouraud Shading.