Computer Game Design

 

Tutorial Notes

 

Files

 

FAQ

There are two client programme, the OpenGL and the DirectX version. Which one should I use?

I suggest you to use the OpenGL one.
This is because the MD3 client is OpenGL based.
Also, the computers in the laboratory do not support DirectX version due to hardward and software configure.

Why do I get a lot of redefination errors when I include the header files into my new project?

Most probably because you write this in your new project:
#include "PublicHeader"
You should change the include statement to this:
#ifndef PublicHeader
#include "PublicHeader"
#endif

The reason of this problem is that PublicHeader.h is included twice in different classes, and hence the #define used in PublicHeader.h is used more than once.
Now you use a variable called PublicHeader to see if PublicHeader.h is being included before.
When compiling, the compiler will only include it if it is not being included before.

Why are there errors when I include the files of MD3Reader to my OpenGL client project?

This is because your OpenGL project is using Visual Studio 6.0 while your MD3Reader is using Visual Studio .NET.
So what you need to do is:
Do NOT include the stdafx.h and stdafx.cpp. They are .NET specific headers.
In your OpenGL client project, search for #include "StdAfx.h" and change it to //#include "StdAfx.h" .

Why does the compiler say that I miss some DirectX library files?

Make sure you follow the steps to setup the DirectX environment in Visual Studio.
Make sure you are using DirectX 9.0b, NOT any other version such as 2005 or 2006.
You can download it from the Microsoft download web site.

 

Reference