Introduction - If you have any usage issues, please Google them yourself
In some cases, you just have to simplify the mesh. However, blindly simplifying means that it is not possible to recover the details of the object, and it is very common to simplify and increase the details of the object. I'm sure you already know the origin of the progressive mesh method.
To show the behavior of the progressiveMesh method, we will write a program that is similar to the previous one. This time, we can not only simplify the mesh, but also add mesh details when the camera is close to the model. Let's start with the fifth chapter.
The Progressivemesh class, like the Mesh class, is inherited from the BaseMesh class. Compared with the SimplificationMesh class, objects can be drawn directly with progressiveMesh objects. In this way, you can replace the Mesh object with the following variables:
Similarly, you should replace all the mesh variables that you had before. After that, update the LoadMesh method because the code can't compile now. Using a similar method; We will create the progressiveMesh object at the end
Packet : 25811223progressivemesh.rar filelist
ProgressiveMesh\ProgressiveMesh.cpp
ProgressiveMesh\ProgressiveMesh.fx
ProgressiveMesh\ProgressiveMesh.jpg
ProgressiveMesh\ProgressiveMesh.manifest
ProgressiveMesh\ProgressiveMesh.rc
ProgressiveMesh\ProgressiveMesh_2003.sln
ProgressiveMesh\ProgressiveMesh_2003.vcproj
ProgressiveMesh\ProgressiveMesh_2005.sln
ProgressiveMesh\ProgressiveMesh_2005.vcproj
ProgressiveMesh\resource.h
ProgressiveMesh