culling

所属分类:OpenGL
开发工具:C++
文件大小:195KB
下载次数:12
上传日期:2005-07-04 16:21:57
上 传 者maomaotongzhi
说明:  检查某一点是否位于平截头体内,并据此决定是否显示。用dev-c++编译。
(check whether a certain point in the first-cut body, and accordingly decide whether to show. With dev- c compiler.)

文件列表:
camera.cpp (557, 2000-06-11)
camera.h (308, 2000-06-11)
collision.cpp (12694, 2000-06-13)
Culling.dev (431, 2002-09-04)
Culling.exe (78336, 2002-09-04)
general.cpp (15490, 2002-08-20)
icon.ico (2238, 1996-11-17)
light.cpp (1781, 2000-06-13)
light.h (647, 2000-06-13)
main.cpp (14116, 2002-09-04)
math.cpp (9458, 2000-06-13)
matrix.cpp (5897, 2000-06-06)
matrix.h (442, 2001-02-24)
object.cpp (6209, 2000-06-06)
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)
tile.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)
winfuncs.cpp (1395, 2000-06-13)

OpenGL & Win32 (Tutorial No.6 - Frustum Culling) Program by Alan Baylis Copyright 28/04/2001 This program demonstrates how to make a Win32 & OpenGL application with frustum culling. When the position of the current light is in view the program will draw a small green sphere on screen. 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. Instructions: Pressing the letter 'L' cycles through all the lights. The 'I' key brings up the ambient color selection window. The 'O' key brings up the diffuse color selection window. The 'P' key brings up the specular color selection window. The lights are directional by default and can be changed to a positional light by pressing the numberpad 5 key (note that the numlock key must be selected for these keys to work.) The following numberpad keys control the position of the current light which is highlighted by a red sphere: 7 = Up 9 = Down 4 = Left 6 = Right 8 = Forward 2 = Backward 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.

近期下载者

相关文件


收藏者