gLike
Wireframe renderer

I implemented a simple wireframe 3D renderer that reads a simple object file and renders it in 3D space and lets the user to move and rotate it. It uses GLUT to set up the window and to draw lines in 2D surface. No other libraries or frameworks were used.

Rendering the object
All the points of the object are multiplied by transformation matrix to set the object in a correct position since the user can move and rotate the object. The transformation matrix and the points in 3D space use homogenous coordinates. This makes it possible to use matrix multiplications only to move, rotate or transfor the object in other ways.

The lines that are not inside the view frustum are cut to fit the visible area also the front and back clipping planes are applied. The transformation matrix is used to multiply every point with it to move and rotate the object correctly. To make the image visible on the screen, projection matrix, that uses prespective projection to render the lines, is used.

Miika Pirkkanen
Software designer London, United Kingdom