CameraWorld

所属分类:OpenGL
开发工具:Visual C++
文件大小:61KB
下载次数:14
上传日期:2010-11-18 23:58:06
上 传 者woniudeke1988
说明:  通过opengl中的lookat,扩展到地形漫游,先是建立一个3D的简单地图,并且加入相应的碰撞判断。
(By opengl in lookat, extended to the terrain walkthrough, first create a simple 3D maps, and add the corresponding collision judgments.)

文件列表:
Camera World\3DMath.cpp (24881, 2002-02-24)
Camera World\3DMath.h (4728, 2002-05-24)
Camera World\Camera.cpp (16627, 2002-05-24)
Camera World\Camera.h (3044, 2002-05-24)
Camera World\Init.cpp (10806, 2002-01-25)
Camera World\Main.cpp (13488, 2003-04-19)
Camera World\main.h (3178, 2002-05-24)
Camera World\World.raw (10152, 2002-01-25)
Camera World\CameraWorldCollision.vcproj (4339, 2003-04-19)
Camera World\CameraWorldCollision.sln (940, 2003-04-19)
Camera World\CameraWorldCollision.suo (10240, 2003-04-19)
Camera World\CameraWorldCollision.exe (65536, 2003-04-19)
Camera World (0, 2003-02-26)

//*********************************************************************** // // - "Talk to me like I'm a 3 year old!" Programming Lessons - // // $Author: DigiBen digiben@gametutorials.com // // $Program: CameraWorldCollision // // $Description: Shows how to check if camera and world collide // // $Date: 1/23/02 // //*********************************************************************** Files: Main.cpp (The Source File containing the main program code) Init.cpp (The Source File containing the Win32 and OpenGL initialization code) Camera.cpp (The Source File containing the camera implementation) 3DMath.cpp (The Source File containing 3D math routines) 3DMath.h (The Header File containing 3D math routine definitions) Camera.h (The Header File containing the camera class definition) Main.h (The Header File containing definitions for the main program) CameraWorldCollision.vcproj (The VC++ Project File holding the project info) CameraWorldCollision.sln (The Solution File holding the solution info) World.raw (The map file) Libraries: opengl32.lib (The OpenGL Interface Library needed to compile the program) glu32.lib (The OpenGL Utility Library needed to compile the program) winmm.lib (The Windows Multimedia Library needed to compile the program) Instructions: If you have Microsoft Visual Studio .NET (version 7.0) just click on the .vcproj file. This will open up visual c++. You will most likely see the code for .cpp. If you don't, press CRTL+ALT+L This will open the "Solution Explorer". There you should find two folders named "Source Files" and "Header Files". Double click on the "source" folder and you should see your source file(s) 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 the Win32 program should pop up. :) EULA: Your use of this tutorial constitutes your agreement to GameTutorials' Terms of Use found at: http://www.gametutorials.com/TermsOfUse.htm www.GameTutorials.com 2000-2003 GameTutorials

近期下载者

相关文件


收藏者