Thorbear Online

DirectX 3D Programming

I recently found this awesome website that offers some tutorials to basic C++ programming and DirectX. With some background from lessions of Java OpenGL at HiST, I found this to be very insteresting, and quite easy to learn. I will be posting here some of the programs I make as I learn more about C++, DirectX and game programming.

Programs marked with DX9, DX10 or DX11 will require DirectX 9c, 10 or 11 Runtime respectively to run.

A simple cube

After a few lessions, I were able to make this simple rotating cube. The cube only has one color and a directional light illuminating it from the left.

Download program (DX9)
Orbiting spheres

I kept experimenting a bit with different kinds of shapes, and different kinds of light. The next completed program was these spheres orbiting around a light-source.

Download program (DX9)
A textured die

The last program utilized everything that the free part of the tutorial had to offer, hungry for more I bought access to the paid part and dived into the use of textures. The program made is a cube with textured sides, all sides different.

Download program (DX9)
Rotating tellus

Funny enough, one of the main reasons I started with DirectX in the first place was because I wanted to create a screensaver with a spinning globe after having created a spinning globe with JavaOpenGL. This program displays a model of Tellus (the earth) rotating (yeah, I know, the wrong direction), with some stars moving in the background. The program detects your screen resolution automatically and runs in fullscreen, press Esc to exit.

Earth texture obtained free from Springer Cartographics (altho it seems the textures are no longer available from their website).

Download program (DX9)

Visitors since Dec 11th 2009: 13940 Valid XHTML 1.0 Strict Valid CSS!