BumpLens

所属分类:3D图形编程
开发工具:Visual C++
文件大小:122KB
下载次数:38
上传日期:2008-07-07 13:43:46
上 传 者shawn.pan
说明:  DirectX 图形源码2bumplens
(DirectX graphics 2bumplens source)

文件列表:
BumpLens\resource.h (1475, 2002-11-12)
BumpLens\winmain.rc (6729, 2002-11-12)
BumpLens\BumpLens.vcproj (4995, 2008-07-06)
BumpLens\BumpLens.sln (905, 2008-07-06)
BumpLens\BumpLens.manifest (685, 2002-11-12)
BumpLens\BumpLens.jpg (15830, 2002-11-12)
BumpLens\BumpLens.dsw (539, 2002-11-12)
BumpLens\BumpLens.dsp (5439, 2002-11-12)
BumpLens\BumpLens.cpp (18804, 2002-11-15)
BumpLens\BumpLens.ncb (84992, 2008-07-06)
BumpLens\BumpLens.sln.old (916, 2002-11-12)
BumpLens\BumpLens.vcproj.old (4638, 2002-11-12)
BumpLens\BumpLens.suo (8192, 2008-07-06)
BumpLens\Debug (0, 2008-07-06)
BumpLens (0, 2007-05-12)

//----------------------------------------------------------------------------- // Name: BumpLens Direct3D Sample // // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- Description =========== The BumpLens sample demonstrates a lens effect that can be acheived using bumpmapping. Bumpmapping is a texture blending technique used to render the appearance of rough, bumpy surfaces, but can also be used for other effects as shown here. Note that not all cards support all features for all the various bumpmapping techniques (some hardware has no, or limited, bumpmapping support). For more information on bumpmapping, refer to the DirectX SDK documentation. Path ==== Source: DXSDK\Samples\C++\Direct3D\BumpMapping\BumpLens Executable: DXSDK\Samples\C++\Direct3D\Bin User's Guide ============ The following keys are implemented. The dropdown menus can be used for the same controls. Starts and stops the scene Advances the scene by a small increment Shows help or available commands. Prompts user to select a new rendering device or display mode Toggles between fullscreen and windowed modes Exits the app. Programming Notes ================= Bumpmapping is an advanced multitexture blending technique that can be used to render the appearance of rough, bumpy surfaces. The bump map itself is a texture that stores the perturbation data. Bumpmapping requires two textures, actually. One is an environment map, which contains the lights that you see in the scene. The other is the actual bumpmapping, which contain values (stored as du and dv) used to "bump" the environment maps texture coordinates. Some bumpmaps also contain luminance values to control the "shininess" of a particular texel. This sample uses bumpmapping in a non-traditional fashion. Since bumpmapping really just perturbs an environment map, it can be used for other effects. In this case, perturbing a background image (which could be rendered on the fly) to make a lens effect. This sample makes use of common DirectX code (consisting of helper functions, etc.) that is shared with other samples on the DirectX SDK. All common headers and source code can be found in the following directory: DXSDK\Samples\C++\Common

近期下载者

相关文件


收藏者