Detailed explanation of unityLOD optimization technology

I believe that when many people hear that they want to optimize a project, the word LOD will pop up in their minds. So, what exactly is LOD technology? How to use it?

Next, Xiaosheng will give you a wave of operations, and after reading it, I promise to make it.

First of all, to know the meaning of LOD technology:

LOD is the abbreviation of Levels of Detail, that is, multi-level of detail technology. It means to determine the resource allocation of object rendering according to the position and location of the nodes of the object model in the display environment, and reduce the number of faces and details of non-important objects, so as to obtain high-efficiency rendering operations.

Then our U3D friends will ask at this time, what is the number of faces and details of an object. At this time, I will tell you that this has nothing to do with you. You just need to open your mouth and ask for several models with different details from the artist, and then use the model with the highest detail in the close range to match the camera. The farther the object is from the camera, the less detail it will have. , and finally even a point. Are you understand?

Next, I will operate a wave (take Cube as an example)

first

I have prepared three precision models of the Cube, and I use three simple and crude textures to represent the detail of the model

Because in the game, they are all the same model. Therefore, the positions must be consistent, that is, to unify their positions

Then

Create an empty object in the scene. The name is CubeLod. As for the process, I don’t need to take screenshots to demonstrate it.

After creation, add the LODGroup component on this empty object

Select Lod0—>Add—>Select High Quality Model –> Click YesReparent

Select Lod1—>Add—>select the medium quality model–>click YesReparent

Select Lod2—>Add—>select the low-quality model–>click YesReparent

Then do the following (drag the camera icon with the mouse)

Then the following effect will appear

Guess you like

Origin blog.csdn.net/rrmod/article/details/129139214