Octree Demo

Programmer: Shane Cantrell

Downloads:

DirectX 9 Program: OctreeDemo.zip

Description:

This demonstration program is the solution to my octree homework assignment. It essentially shows how the octree splits up the scene and how triangle picking can be performed with an octree. The frame rate is locked at a third of your computer's refresh rate.

The upper right corner shows your display's refresh rate, the frames per second, and the number of times your computer has failed to achieve the ideal frame rate (misses).

How it works:

1) Use the arrow keys to rotate the camera view.

2) Press the 'o' key to toggle the full octree structure, which is shown in grey, on and off.

3) Click in the window to see which octree boxes contain the projected picking line (shown in white), and the first intersected triangle (outlined in yellow).

Known problems:

The software has minimal error checking, so it will fail if any of the files are missing, or the hardware or drivers are unsupported.