//-----------------------------------------------------------------------------
// Name: ProgressiveMesh Direct3D Sample
//
// Copyright (c) 1998-2000 Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
Description
===========
The ProgressiveMesh sample illustrates how to load and optimize a file-based
mesh using the D3DX mesh utility functions. A progressive mesh is one in
which the vertex information is stored internally in a special tree which
can be accessed to render the mesh with any given number of vertices. This
procedure is fast, so progressive meshes are ideal for level-of-detail
scenarios, where objects in the distance are render with fewer polygons.
For more info on D3DX, refer to the DirectX SDK documentation.
Path
====
Source: MSSDK\Samples\Multimedia\D3D\ProgressiveMesh
Executable: MSSDK\Samples\Multimedia\D3D\Bin
User's Guide
============
The following keys are implemented. The dropdown menus can be used for the
same controls.
<Enter> Starts and stops the scene
<Space> Advances the scene by a small increment
<F1> Shows help or available commands.
<F2> Prompts user to select a new rendering device or display mode
<Alt+Enter> Toggles between fullscreen and windowed modes
<Esc> Exits the app.
<Up> Adds one vertex to the progressive mesh
<Down> Subtracts one vertex to the progressive mesh
<Page Up> Adds 100 vertices to the progressive mesh
<Page Dn> Subtracts 100 vertices to the progressive mesh
<Home> Displays all available vertices for the progressive mesh
<End> Displays the minimum vertices for the progressive mesh
Programming Notes
=================
Many Direct3D samples on the DirectX SDK use file-based meshes. This sample
is a good sample to look to see the bare bones code necessary for loading a
mesh. Note that the D3DX mesh loading functionality collapses the frame
hierarchy of a .x file into one mesh.
The main difference for using progressive meshes is the call to
SetNumVertices() for the mesh.
For other samples, the bare bones D3DX mesh functionality is wrapped in a
common class class CD3DMesh. If it is desired to keep the frame hierarchy,
the common class CD3DFile can be used.
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:
Mssdk\Samples\Multimedia\Common
没有合适的资源?快使用搜索试试~ 我知道了~
Direct3D游戏编程入门教程源代码
共231个文件
cpp:32个
h:22个
opt:18个
5星 · 超过95%的资源 需积分: 12 24 下载量 121 浏览量
2008-09-06
22:37:19
上传
评论 1
收藏 3.6MB ZIP 举报
温馨提示
Direct3D游戏编程入门教程源代码 Direct3D游戏编程入门教程源代码 那本黑色书
资源推荐
资源详情
资源评论
收起资源包目录
Direct3D游戏编程入门教程源代码 (231个子文件)
WinMain.aps 39KB
WinMain.aps 39KB
WinMain.aps 38KB
WinMain.aps 38KB
winskel.aps 19KB
winskel.aps 19KB
Fake.asp 249B
env0.bmp 192KB
lake.bmp 192KB
wall.bmp 192KB
wall.bmp 192KB
detail.bmp 17KB
sprite.bmp 3KB
sprite.bmp 3KB
tritri.c 10KB
COPYING 26KB
multitexture.cpp 32KB
Copy of 1steps.cpp 26KB
1steps.cpp 22KB
1steps.cpp 21KB
md3.cpp 18KB
xfiles.cpp 17KB
md3viewer.cpp 12KB
coldet.cpp 10KB
basic.cpp 10KB
basic.cpp 9KB
basic.cpp 8KB
box.cpp 7KB
grid.cpp 6KB
main.cpp 6KB
box_bld.cpp 5KB
App.cpp 5KB
main.cpp 5KB
winskel.cpp 4KB
winskel.cpp 4KB
ps.cpp 3KB
bounds.cpp 3KB
winskel.cpp 3KB
math3d.cpp 3KB
colmesh.cpp 3KB
mytritri.cpp 3KB
Fake.cpp 2KB
coldet_bld.cpp 2KB
colmesh.cpp 2KB
axissort.cpp 2KB
sysdep.cpp 1KB
main.cpp 1KB
main.cpp 1KB
cursor1.cur 326B
cursor1.cur 326B
coldet.dll 308KB
coldet.dll 68KB
coldet.dll 68KB
coldet.dll 68KB
Xfiles.dsp 5KB
react.dsp 5KB
col3d.dsp 5KB
MD3 VIEWER.dsp 5KB
coldet.dsp 5KB
basic2.dsp 5KB
1STEPS2.dsp 5KB
MULTITEXTURE.dsp 5KB
basic3.dsp 5KB
1steps.dsp 5KB
BASIC.dsp 4KB
2dbitarray.dsp 4KB
2dbounds.dsp 4KB
win skeleton.dsp 4KB
axissort.dsp 4KB
grid.dsp 4KB
win skeleton.dsp 4KB
win skeleton.dsp 4KB
win skeleton.dsw 577B
Multitexture.dsw 575B
MD3 VIEWER.dsw 573B
1STEPS2.dsw 565B
1steps.dsw 563B
basic2.dsw 563B
basic3.dsw 563B
Xfiles.dsw 563B
BASIC.dsw 561B
win skeleton.dsw 549B
win skeleton.dsw 549B
2dbitarray.dsw 543B
2dbounds.dsw 539B
axissort.dsw 539B
coldet.dsw 535B
react.dsw 533B
col3d.dsw 533B
grid.dsw 531B
Xfiles.exe 860KB
Xfiles.exe 860KB
react.exe 832KB
col3d.exe 832KB
MD3 VIEWER.exe 636KB
1STEPS2.exe 608KB
1steps.exe 608KB
MULTITEXTURE.exe 596KB
basic2.exe 596KB
basic3.exe 596KB
共 231 条
- 1
- 2
- 3
资源评论
- ylioi2013-05-28时间有点久,应该不错
- xhyxtky2013-05-10提出很多思路,不错
zyb_debug
- 粉丝: 7
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功