cameras

所属分类:OpenGL
开发工具:C++
文件大小:299KB
下载次数:18
上传日期:2005-07-04 15:37:13
上 传 者maomaotongzhi
说明:  使用四元组实现矩阵旋转功能,具有6维功能的摄像机。需用dev-C++编译。
(use four yuan Group to achieve rotation matrix with six cameras peacekeeping function. Required dev- C compiler.)

文件列表:
camera.cpp (557, 2000-06-11)
camera.h (308, 2000-06-11)
Cameras.dev (436, 2000-12-17)
Cameras.exe (540233, 2000-12-17)
general.cpp (11642, 2002-08-20)
icon.ico (2238, 1996-11-17)
main.cpp (11005, 2000-12-17)
math.cpp (8443, 2001-02-26)
matrix.cpp (5897, 2000-06-06)
matrix.h (442, 2001-02-24)
object.cpp (6404, 2000-12-17)
object.h (1084, 2001-04-25)
polygon.cpp (1378, 2000-06-06)
polygon.h (277, 2001-04-25)
project.rc (89, 2002-08-18)
quat.cpp (2114, 2000-06-06)
quat.h (733, 2001-02-26)
resource.rc (78, 2001-04-25)
resource.rh (23, 2001-02-20)
texture.cpp (6541, 2000-06-06)
texture.h (871, 2001-04-25)
Tile1.tga (196652, 2001-03-02)
vector.cpp (568, 2000-06-06)
vector.h (458, 2001-02-26)
vertex.cpp (250, 2000-06-06)
vertex.h (344, 2001-02-24)

OpenGL & Win32 (Tutorial No.2 - Cameras) Program by Alan Baylis Copyright 28/04/2001 This program demonstrates how to make a Win32 & OpenGL application with multiple quaternion based cameras. The demo was compiled using Dev-C++ which is freely available from http://www.bloodshed.net/ This code may be freely modified and redistributed but I make no warrantees about it; use at your own risk. If you use this code then give me credit and a link back to this site. An email or a post to my message board of where we could find your program would be nice too. Updated 18/12/2002: There are now two camera modes, one that has 6dof and one Quake style camera movement. Pressing M toggles between the two modes. Instructions: Pressing the letter 'C' cycles through all the cameras. The mouse controls the cameras orientation: moving the mouse up and down controls pitch. moving the mouse left and right controls yaw. pressing the left and right mouse buttons controls roll. To move the cameras position use the arrow keys and the pgup and pgdown keys. Pressing the spacebar resets the current camera to its default position. The numbers 1 - 9 adjust the current cameras movement step amount.

近期下载者

相关文件


收藏者