I have decided to put up the whole solution for my DirectX 9 terrain demo that I made, so you can browse through my code and build it as you wish. I have also made a few changes to it since the last time I uploaded it, such as adding a factory to clean up the code.
You can download the solution here.
(Just a reminder you will need a Xbox360 controller to use this program.)

I have decided to put up the whole solution for my DirectX 9 terrain demo that I made, so you can browse through my code and build it as you wish. I have also made a few changes to it since the last time I uploaded it, such as adding a factory to clean up the code.

You can download the solution here.

(Just a reminder you will need a Xbox360 controller to use this program.)

Cross Platform Development

My final project was to make a cross platform demo that would work for both the PSP and PC.

As the idea was to encapsulate and share as much code as possible, I decided it would be appropriate to split each component of the program (i.e. the initialisation manager, the cube data, and the brains of the application) into three separate classes.

  •   A base class, which would have all non platform specific information which could be shared
  •  A class for the PC, which would inherit from the base, and include all DirectX specific code
  •   A class for the PSP, which would inherit from the base, and include all PSP specific code.

I also used ifdefs in shared classes, to know what to include at compile time.

Below are the results of what I managed to accomplish. 

PSP Demo

DirectX Demo



[Flash 10 is required to watch video]

This was my final hand in of my Interactive 3D Graphics Programming module. I managed to implement the following features with this terrain demo:

  • Scene Nodes
  • State Machine
  • Resource Manager
  • Flat Terrain
  • Fault Formation Terrain
  • Midpoint Displacement Terrain
  • Heightmap Terrain
  • Model Loader
  • Gamestates
  • 1st Person Camera

DOWNLOAD SOURCE

DOWNLOAD EXE

About Me

I am a final year student at the University of Derby, and am using this blog to show how I progress through the course.

I Follow