projgriddemo
所属分类:Windows编程
开发工具:Visual C++
文件大小:4356KB
下载次数:150
上传日期:2007-04-21 11:08:05
上 传 者:
supersuyanyu
说明: 一个很好的海浪模拟程序. 注意编译环境是VC2003.net和directx 9.0 sdk
(a good wave simulation program. Attention to the environment is compiled and direct VC2003.net x 9.0 sdk)
文件列表:
packmk2\demoNV20.exe (1114112, 2004-03-19)
packmk2\demoR300.exe (1118208, 2004-03-19)
packmk2\duckie.X (227414, 2003-10-29)
packmk2\island.X (4086370, 2004-03-07)
packmk2\skybox.fx (2095, 2004-03-19)
packmk2\source (0, 2004-03-19)
packmk2\source\camera.cpp (2306, 2003-11-04)
packmk2\source\camera.h (484, 2003-10-02)
packmk2\source\dxmouse.cpp (6186, 2003-09-24)
packmk2\source\dxmouse.h (1048, 2003-10-09)
packmk2\source\noisemaker.cpp (12887, 2003-10-20)
packmk2\source\noisemaker.h (1493, 2003-10-20)
packmk2\source\parameterhandler.cpp (3921, 2004-01-21)
packmk2\source\parameterhandler.h (1718, 2004-01-21)
packmk2\source\projected grid demo.sln (927, 2004-03-03)
packmk2\source\software_noisemaker.cpp (17397, 2004-03-03)
packmk2\source\software_noisemaker.h (3860, 2004-01-27)
packmk2\source\surface.cpp (26009, 2004-03-19)
packmk2\source\surface.h (3119, 2004-03-03)
packmk2\source\tessdemo.cpp (35867, 2004-03-19)
packmk2\source\tessdemo.vcproj (5053, 2004-03-18)
packmk2\source\todo.txt (2744, 2004-03-18)
packmk2\source\tools.cpp (2058, 2003-11-11)
packmk2\source\tools.h (584, 2003-11-07)
packmk2\terrain_underwater.fx (1133, 2004-03-18)
packmk2\textures (0, 2004-03-19)
packmk2\textures\cubemap-evul.dds (6291584, 2004-01-18)
packmk2\textures\fresnel_water_linear.bmp (1334, 2003-05-28)
packmk2\textures\fresnel_water_sRGB.bmp (822, 2004-01-08)
packmk2\textures\reflection_underwater.bmp (1334, 2003-10-29)
packmk2\textures\terrain.png (322684, 2004-03-07)
packmk2\textures\XZnoise.png (52041, 2004-01-18)
packmk2\underwater_soft.fx (3447, 2003-11-17)
packmk2\v2_heightmapgen.fx (1645, 2004-03-19)
packmk2\v2_normalmapgen.fx (2482, 2004-01-20)
packmk2\water_R300.fx (3710, 2004-03-19)
packmk2\water_soft.fx (4293, 2004-03-19)
projective grid concept demo
______________________________________________________________________________
Compiling
______________________________________________________________________________
GPU generated normals are only supported on hardware that is capable of using
16-bit rendertargets under DirectX9. Currently this is limited to ATi's DX9-
generation of cards as far as I'm aware..
To compile the demo with CPU generated normals insted (like demo_NV20.exe)
use the CPU_NORMALS pre-processor directive.
You probably want to increase the grid-resolution when using CPU generated
normals. This can be done with home/end and pgup/pgdown controls (see below).
Controls
______________________________________________________________________________
The following controls are available.
movement:
LMB - rotate camera
MMB - zoom camera
RMB - pan camera
a/d - move left/right
s/w - move backwards/forwards
z/q - move down/up
hold left control for slower movement (x0.1)
hold left shift for faster movement (x10)
parameters:
1-6 - load preset
up/down - select parameter
right/left - increase/decrease parameter (relative: by 5%)
+/- - increase/decrease parameter (absolute: by 0.0001)
0 - set parameter to zero
camera selection:
Although the projected grid only uses a single camera (and derives a projector
from it) the demo has two different cameras that can be controlled independently.
The rendering camera is the one which the geometry is tessellated to match. The
only purpose of the observing camera is to observe how the tessellation works
from the outside.
tab - switch which camera that is controlled by the mouse (rendering/observing)
c - switch camera used for rendering (rendering/observing)
grid detail level (does not affect GPU generated normalmap):
home/end - increase/decrase vertical resolution of CPU generated grid
pgup/pgdwn - increase/decrase horisontal resolution of CPU generated grid
other:
e - calculate efficiency (amount of the processed vertices that end up within
the frustum)
t - toggle text display
______________________________________________________________________________
Claes Johanson
claes@vember.net
近期下载者:
相关文件:
收藏者: