3DSAnimation2_MOD

所属分类:OpenGL
开发工具:Visual C++
文件大小:2330KB
下载次数:24
上传日期:2009-11-23 16:42:50
上 传 者zz11370
说明:  关于 opengl 读取3ds 动画的例子
(Read 3ds animation on the opengl examples of)

文件列表:
3ds animation ii (0, 2003-04-29)
3ds animation ii\3DS Animation.dsp (4231, 2003-05-01)
3ds animation ii\3DS Animation.dsw (551, 2003-05-01)
3ds animation ii\3ds Format.rtf (79176, 2003-05-01)
3ds animation ii\3ds.cpp (72452, 2003-05-01)
3ds animation ii\3ds.h (5942, 2003-05-01)
3ds animation ii\Init.cpp (13452, 2003-05-01)
3ds animation ii\Main.cpp (53817, 2003-05-01)
3ds animation ii\main.h (10243, 2003-05-01)
3ds animation ii\data (0, 2003-05-01)
3ds animation ii\data\Character.3DS (47741, 2003-05-01)
3ds animation ii\data\sandharvestor2.3ds (385988, 2003-05-01)
3ds animation ii\data\3DS (0, 2003-05-01)
3ds animation ii\data\3DS\People (0, 2003-05-01)
3ds animation ii\data\3DS\People\Cyborg (0, 2003-05-01)
3ds animation ii\data\3DS\People\Cyborg\cyborg.bmp (786488, 2001-07-13)
3ds animation ii\data\3DS\People\Cyborg\H-Cyborg-Move.3DS (29123, 2001-09-17)
3ds animation ii\data\3DS\People\Cyborg\H-Cyborg-Attack1.3DS (28833, 2001-09-17)
3ds animation ii\data\3DS\People\Hound (0, 2003-05-01)
3ds animation ii\data\3DS\People\Hound\hound.BMP (786488, 2001-06-19)
3ds animation ii\data\3DS\People\Hound\H-Hound-Move.3DS (29688, 2001-09-15)
3ds animation ii\data\3DS\People\Hound\H-Hound-Attack1.3DS (29246, 2001-09-16)

//******************************************************************************* // // - "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 .dsw file. This will open up up visual c++. You will most likely see the code for .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

近期下载者

相关文件


收藏者