CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - loadmesh
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - loadmesh - List
[
DirextX
]
ProgressiveMesh
DL : 1
有些情况下,你只需要简化mesh。但是,一味的简化,意味着无法再恢复对象的细节,而同时需要简化和增加对象细节的情况确是很常见的。我相信看到这里,你已经知道progressive mesh方法名字的来历了吧。 为了显示progressiveMesh方法的行为,我们将写一个和上一部分很类似的程序。这一次,我们不但可以简化mesh,还可以在摄像机靠近模型时,添加mesh的细节。还是从第五章的文件开始。 Progressivemesh类于Mesh类一样,都继承于BaseMesh类。与SimplificationMesh类相比,可以直接用progressiveMesh对象来绘制物体。这样,就可以用以下变量来代替Mesh对象了: 同样,你应该把原来所有的mesh变量都替换为这个变量。之后,更新LoadMesh方法,因为代码现在不能通过编译了。使用一个类似的方法;我们将在最后创建progressiveMesh对象
Date
: 2008-10-13
Size
: 18.11kb
User
:
林庆富
[
DirextX
]
ProgressiveMesh
DL : 0
有些情况下,你只需要简化mesh。但是,一味的简化,意味着无法再恢复对象的细节,而同时需要简化和增加对象细节的情况确是很常见的。我相信看到这里,你已经知道progressive mesh方法名字的来历了吧。 为了显示progressiveMesh方法的行为,我们将写一个和上一部分很类似的程序。这一次,我们不但可以简化mesh,还可以在摄像机靠近模型时,添加mesh的细节。还是从第五章的文件开始。 Progressivemesh类于Mesh类一样,都继承于BaseMesh类。与SimplificationMesh类相比,可以直接用progressiveMesh对象来绘制物体。这样,就可以用以下变量来代替Mesh对象了: 同样,你应该把原来所有的mesh变量都替换为这个变量。之后,更新LoadMesh方法,因为代码现在不能通过编译了。使用一个类似的方法;我们将在最后创建progressiveMesh对象
Date
: 2025-12-25
Size
: 18kb
User
:
林庆富
[
DirextX
]
LoadMesh
DL : 0
使用Direct3D实现了.X文件的加载并且显示。-Use Direct3D to achieve a load .X file and displays.
Date
: 2025-12-25
Size
: 145kb
User
:
ls
[
DirextX
]
LoadMesh
DL : 0
主要使用Direct的点精灵实现了下雪的功能。-The main point of using Direct elves realized the snow function.
Date
: 2025-12-25
Size
: 191kb
User
:
ls
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.