lightmaps

所属分类:OpenGL
开发工具:C++
文件大小:483KB
下载次数:46
上传日期:2005-07-04 17:10:10
上 传 者maomaotongzhi
说明:  使用高度图(lightmapping)给室内场景加光照效果,加快光照显示。
(use of highly map (lightmapping) to the indoor scene increase lighting effect, speed up light show.)

文件列表:
bsp.cpp (19989, 2002-08-19)
bspline.cpp (12031, 2002-08-19)
bspline.h (1207, 2001-10-21)
camera.cpp (557, 2000-06-11)
camera.h (308, 2000-06-11)
collision.cpp (12704, 2001-11-15)
default.spn (880, 2000-01-13)
floor.tga (196652, 2001-12-10)
general.cpp (33612, 2000-01-13)
glfont.cpp (3774, 2001-08-08)
glfont.h (1328, 2001-08-05)
icon.ico (2238, 1996-11-17)
images\lightmap.txt (50, 2001-12-19)
light.cpp (1785, 2001-12-04)
light.h (647, 2000-06-13)
lightmap.cpp (11998, 2001-12-18)
lightmap.h (425, 2001-12-16)
lightmapping_tutorial.html (15454, 2001-12-18)
Lightmaps.dev (435, 2002-09-04)
Lightmaps.exe (713129, 2000-01-13)
main.cpp (18172, 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 (337, 2001-11-27)
project.rc (89, 2002-08-19)
quat.cpp (3013, 2001-09-22)
quat.h (752, 2001-09-22)
resource.rc (1222, 2002-08-19)
resource.rh (96, 2001-10-27)
roman.glf (35096, 2001-08-05)
roof.tga (49196, 2000-06-25)
texture.cpp (6905, 2001-12-15)
texture.h (828, 2001-12-09)
tga.cpp (15247, 2002-04-01)
tga.h (505, 2001-12-07)
... ...

OpenGL & Win32 (Tutorial No.12 - Lightmapping) Program by Alan Baylis Copyright 19/12/2001 This program demonstrates how to make a Win32 & OpenGL application with lightmaps. The demo was compiled using Dev-C++ which is freely available from http://www.bloodshed.net/ When the program starts you can will see a dialog box where you enter the filename and path to a spline data file (.spn) which has been previously created with Spline_Ed which is available from my site. The program begins in Free camera mode and you can change the camera mode by pressing the M key. Again, there isn't anything to do in the demo except look at the lightmaps. 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 my site at http://members.net-tech.com.au/alaneb/opengl.html Instruction reference: The program uses the screen resolution of the desktop and I recommend that you set this to 800x600 to view the onscreen text correctly. This program works on Windows 9x but has not been tested on later versions. The 'M' key cycles through the three camera modes, Free, Look and Follow. The 'S' key changes the current spline. The 'T' key changes the target spline. The 'H' key toggles the visibility of the spline curves and control points. Pressing the letter 'L' cycles through all the lights (only one is available in this demo as it is.) 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 billboard of a sun by default: 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 cameras movement step amount.

近期下载者

相关文件


收藏者