//*******************************************************************************
//
// - "Talk to me like I'm a 3 year old!" Programming Lessons -
//
// $Author: TGraupmann tgraupmann@yahoo.com
//
// $Program: 3DS Animation II
//
// $Description: Shows you how to read the .3DS object hierarchy
//
// $Date: 04/28/03
//
//*******************************************************************************
Files: Main.cpp (The Source File containing the most worked with code)
3DS.cpp (The Source File containing the 3DS loading code)
Init.cpp (The Source File containing the rarely changed code)
Main.h (The header file that holds the global variables and prototypes)
3DS.h (The header file that holds the chunk definations and structures)
3DS Animation.dsp (The Project File holding the project info)
3DS Animation.dsw (The Workspace File holding the workspace info)
Character.3ds (The .3ds file that stores the animation and model)
3DS Format.rtf (The .3DS file format explained further)
sandharvestor2.3ds (Sandharvestor Model created by Tim Graupmann)
H-Hound-Move.3DS (DarkBasic Hell Hound Model)
hound.BMP (DarkBasic Hell Hound Model Texture)
H-Cyborg-Move.3DS (DarkBasic Cyborg Model)
cyborg.bmp (BarkBasic Cyborg Model Texture)
Libraries: opengl32.lib, glu32.lib, glaux.lib
Keys Used: Left Mouse Button - Changes the Render mode from normal to wireframe.
Right Mouse Button - Turns lighting On/Off
Left Arrow Key - Spins the model to the left
Right Arrow Key - Spins the model to the right
F1 Key - Toggles camera views
F2 Key - Toggles diagostic modes
F3 Key - Increases the current Node ID
F4 Key - Decreases the current Node ID
F5 Key - Moves the current Node ID to its parent
F6 Key - Toggles Pivot Diagnostic P1 mode
F7 Key - Toggles Pivot Diagnostic P2 mode
F8 Key - Toggles Pivot Diagnostic P3 mode
Numpad Plus Key - Increases Vertex[X]
Numpad Minus Key - Decreases Vertex[X]
Escape - Quits
Win32 App: Remember, if using visual c/c++, if you want to create a windows
application from scratch, and not a console application, you must
choose "Win32 App" in the projects tab when selecting "New" from
the file menu in visual C. Your program will not be able to run
if you try and create a window inside of a console program. Once
again, if creating a new project, click on "Win32 Application" and
not "Win32 Console Application" if you want to create a program for
windows (not a DOS window). This process is further explained at
www.GameTutorials.com
Instructions: If you have visual studio c++ (around version 6) just click on the
<Program Name>.dsw file. This will open up up visual c++. You will most
likely see the code for <Program Name>.cpp. If you don't, there should be
a tab on the left window (workspace window) called "FileView". Click the
tab and click on the plus sign in this tab if it isn't already open.
There you should see 2 folders called "source" and "header".
Double click on the "source" folder and you should see your source file with
a .cpp extension after it. Double click on the file and it will open
up in your main window. Hit Control-F5 to run the program.
You will probably see a prompt to compile/build the project. Click OK and
a window should pop up with the program. :)
Ben Humphrey
Game Programmer
digiben@gametutorials.com
www.GameTutorials.com