Tutorials

Tutorials for getting started with programming on Linux

Draw a Cube

Rendering a 3D Model from the Terminal without a window manager.

Published
Liked the article? Share it!

Now that we hopefully are starting to get a grasp for 2d, let’s go ahead and jump forward into 3d and draw a cube. In order to do this we first define the vertices needed to draw the cube, and then we also provide a projection matrix needed to look at the cube. The result of this article is shown below.