BumpEarth
所属分类:3D图形编程
开发工具:Visual C++
文件大小:1697KB
下载次数:137
上传日期:2008-07-07 13:28:46
上 传 者:
shawn.pan
说明: c++ DirectX源码 之一 凹凸地球
(c++ DirectX one source Bump Earth)
文件列表:
BumpEarth\winmain.rc (7412, 2002-11-12)
BumpEarth\resource.h (1898, 2002-11-12)
BumpEarth\BumpEarth.vcproj (4999, 2008-07-06)
BumpEarth\BumpEarth.sln (907, 2007-09-16)
BumpEarth\BumpEarth.dsp (5464, 2002-11-12)
BumpEarth\BumpEarth.manifest (686, 2002-11-12)
BumpEarth\BumpEarth.jpg (17502, 2002-11-12)
BumpEarth\BumpEarth.dsw (541, 2002-11-12)
BumpEarth\BumpEarth.cpp (42194, 2002-11-25)
BumpEarth\BumpEarth.plg (252, 2007-05-12)
BumpEarth\BumpEarth.opt (49664, 2007-05-12)
BumpEarth\BumpEarth.ncb (551936, 2008-07-06)
BumpEarth\BumpEarth.sln.old (918, 2002-11-12)
BumpEarth\BumpEarth.vcproj.old (4643, 2002-11-12)
BumpEarth\BumpEarth.suo (8704, 2008-07-06)
BumpEarth\Debug (0, 2007-05-12)
BumpEarth (0, 2007-05-12)
//-----------------------------------------------------------------------------
// Name: BumpEarth Direct3D Sample
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
Description
===========
The BumpEarth program demonstrates the bump mapping capabilities of Direct3D.
Bumpmapping is a texture blending technique used to render the appearance of
rough, bumpy surfaces. This sample renders a rotating, bumpmapped planet Earth.
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\BumpEarth
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 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
近期下载者:
相关文件:
收藏者: