<p>Iman already prepared a complete answer but I wish to add something to it</p>

<p>LOD can be done in two different way</p>

<ol>
<li>Continous which is called CLOD and is a polygon mesh optimization</li>
<li>Discrete which almost every other algorithm than polygon mesh optimization, considered to be in this group.</li>
</ol>

<p>For example mipmaping is a good,fast but heavy one that belongs to secound group at the above </p>

<p>here you may find a good explanation to mipmaping and implementation code with OpenGl.</p>

<ul>
<li><a href="http://people.cs.clemson.edu/~dhouse/courses/405/notes/OpenGL-mipmaps.pdf" rel="nofollow noreferrer">Multiple Levels of Detail</a></li>
</ul>

CC BY-SA 3.0
2015-09-06T13:21:32.750Z
2018-03-05T21:23:07.313Z
2018-03-05T21:23:07.313Z
Imzich
<p>LOD (Level of Detail) means managing objects in different display scales, which could be devided by two parts. However, you may use one of them and that would be enough for most cases.</p>
<ol>
<li><p>Show/hide layers ( group of objects of same type) depending on magnitude (display scale).</p>
</li>
<li><p>Algebraic Geomery based method, called Generalization (which is an algorithm to simplify polygons). look at the following picture</p>
<p><img src="https://i.sstatic.net/lYP5y.jpg" alt="generalization" /></p>
</li>
</ol>
<p>The most famous and efficient method to generalize (simplify) a polygon mesh is known as <a href="https://books.google.com/books?isbn=0080477267" rel="nofollow noreferrer">Descartes-Euler polyhedron theorem</a> (Equation 4.5 sorry if I am refering to a book, that was best I can do) and is used by most of the spatial databases for example PostGIS modules in PostgreSQL. It simply removes smaller sides of a polygon and makes a very rounded one.(above picture)</p>
<p>To implement LOD in a game you need to save and manage the scale of your map (scene) during th zoom in/out operations. The scale changes from zero to infinity and you have to divide this into a particular number of ranges for example something like this:</p>
<ol>
<li>1/zero = infinity to 1/50</li>
<li>1/50 to 1/100</li>
<li>1/100 to 1/1000</li>
<li>1/1000 to 1/infinity = 0</li>
</ol>
<p>Then you need to define which types of your objects (layers) should be visible or invisible in each of the above ranges. For example a small type of object like a hydrant valve should not be visible when the user is in the fourth range because it will be very small at that scale and can not be discriminated so it doesn't matter if you skip drawing it on the screen.</p>
<p>So when a user uses zoom in and zoom out to change the magnification he moves through the above limits from one to the other range, and your game uses these display scales to manage level of details by showing or hiding objects on the scene. This makes a discrete solution that objects suddenly fade during your zoom out operation, however having the display scales and magnification ranges defined carefully, the user woudn't feel anything.</p>
<p>The above group of 4 ranges are just an example and you need to find the best for your own case by trial and error. There is no rule for that.</p>
<p>Sometimes the games use their own LOD methods, Subway Surfer for instant, shows a small, without texture rectangle to show a building at far, and by getting close suddenly it gets texture,  gamer feels it. You didnt talk about your projection system which is very important also didn't talk about what kind of game you are creating.</p>
<p>However suppose you are implementing a full 3D game with openGl and you wish to filter some mesh before transfering them to graphic hardware, I am sure this will help you to reduce binding/unbinding operations with buffer objects and vertex arrays (VBO,VAO) while dealing with OpenGl.</p>
<blockquote>
<p>Using only a layer managment or just implement Euler's Generalization</p>
</blockquote>
<p>In most cases it is not necessary to implement a generalization algorithm, and filtering objects just works and gets you to the efficiency(refresh rate) you need, however it totally depends, case by case. Although it is an easy algorithm that just removes the small sides of a polygon, you need to define a threshold which is the product of magnitude and a constant number, so bigger sides get filtered in a much farther point of view.</p>
<p>Forgeting the layer manamgment and only implementing Eulers generalization algorithm, provides a very neat and continuous method in which you just check each sides and lines against a pre-defined threshold and show them only in case they are big enough to be discriminated on the screen.</p>
<p>P.S : magnification is a float number &gt; 0 which is equal to 1/scale and the scale is usually &lt; 1 since a 1:1 scale means you have real world lengths in your game.</p>

CC BY-SA 3.0
2015-09-06T13:00:25.020Z
Down voter, please consider you vote again, if it is still a -1, Consider leaving a comment for me.Thanks
Iman Rosstin
CC BY-SA 3.0
2015-09-06T15:59:03.380Z
I didnt downvote but part of me wonders what is the sate of the art here? So i cant up vote either.
joojaa
CC BY-SA 3.0
2015-09-06T18:02:06.800Z
I've downvoted because it was hard to read and IMHO it's not relevant to LODs in games. After reconsidering I decided to cancel my donwvote by upwoting and simply add my own answer.
Krzysztof Narkowicz
CC BY-SA 3.0
2015-09-06T18:04:05.847Z
State of the art suppose to mean a very outstanding job but different methods result differently on various cases, for example Call of duty has Layer management and mipmaping, however Dear haunting(DH 2014) uses background with parallax and a mipmaping which has pre rendered generalized textures. Subway surfer is completely a diffrent story, and I say state of the art to all of them, even though Subway Surfer discretely draws buildings and other urban objects or Call of duty is a bit sluggish while zooming or panning. I think they are all best in their case.
Iman Rosstin
CC BY-SA 3.0
2015-09-06T06:44:25.300Z
2015-09-06T13:03:40.150Z
2020-06-18T08:32:12.800Z
Iman Rosstin
<p>For the geometry LOD most games simply switch between a number of predefined LOD meshes. For example "Infamous: Second Son" uses 3 LOD meshes (<a href="http://suckerpunch.playstation.com/images/stories/GDC14_infamous_second_son_engine_postmortem.pdf">Adrian Bentley - "inFAMOUS: Second Son engine postmortem", GDC 2014</a>) and "Killzone: Shadow Fall" uses 7 LOD meshes per character (<a href="http://www.guerrilla-games.com/presentations/Valient_Killzone_Shadow_Fall_Demo_Postmortem.pdf">Michal Valient - "Killzone: Shadow fall demo postmortem", Devstation2013</a>). Most of them are generated, but more important ones (like main character) can be hand made. Meshes are often generated using a popular Simplygon middleware, but sometimes they are simply generated by graphics artists in their favorite 3D package.</p>

<p>Games with a large draw distance additionally use imposters for foliage, trees and high buildings (<a href="http://suckerpunch.playstation.com/images/stories/GDC14_infamous_second_son_engine_postmortem.pdf">Adrian Bentley - "inFAMOUS: Second Son engine postmortem", GDC 2014</a>). They also employ hierarchical LODs, which replace a set of objects with one. For example in "Just Cause 2" trees are first rendered individually as normal LOD meshes, then individually as imposters and finally as a single merged forest mesh (<a href="http://www.humus.name/Articles/PopulatingAMassiveGameWorld.pptx">Emil Persson, Joel de Vahl - "Populating a Massive Game World", Siggraph2013</a>) and in "Sunset Overdrive" distant parts of the world are replaced by single automatically offline generated mesh (<a href="http://s3.crashworks.org/gdc15/ElanRuskin_SunsetOverdrive_Streaming_notes.pdf">Elan Ruskin - "Streaming Sunset Overdrive's Open World", GDC2015</a>).</p>

<p>Another component of a LOD system is simplification of materials and shaders. For example "Killzone: Shadow Fall" disables tangent space and normal mapping for the distant LODs (<a href="http://www.guerrilla-games.com/presentations/Valient_Killzone_Shadow_Fall_Demo_Postmortem.pdf">Michal Valient - "Killzone: Shadow fall demo postmortem", Devstation2013</a>). This usually is implemented by disabling globally a set of shader features per LOD, but for engines with shader graphs, where artists can create custom shaders, this needs to be done manually.</p>

<p>For the LOD transitions some games simply switch meshes and some use dithering for smooth LOD transitions - at the LOD switch two meshes are rendered: first gradually fades out and second fades in (<a href="http://simonschreibt.de/gat/assassins-creed-3-lod-blending/">Simon schreibt Blog - "Assassins Creed 3 – LoD Blending"</a>). Classic CPU progressive mesh techniques aren't used as they require a costly mesh update and upload to GPU. Hardware Tessellation is used in a few titles, but only for the refinement of a most detailed LOD, as it's slow and in general case it can't replace predefined geometry LODs.</p>

<p>Terrain LODs are handled separately in order to exploit it's specific properties. Terrain geometry LOD is usually implemented using clipmaps (<a href="http://gdcvault.com/play/1020197/Landscape-Creation-and-Rendering-in">Marcin Gollent - "Landscape creation and rendering in REDengine 3"</a>). Terrain material LODs either are handled similarly to mesh LODs or using some kind of a virtual texture <a href="http://twvideo01.ubm-us.net/o1/vault/gdc2015/presentations/Chen_Ka_AdaptiveVirtualTexture.pdf">Ka Chen - "Adaptive Virtual Texture Rendering In Far Cry 4</a>.</p>

<p>Finally if you are interested to see real game LOD pipelines then just browse through documentation of any of the modern games engines: <a href="https://docs.unrealengine.com/latest/INT/Engine/Content/Types/StaticMeshes/HowTo/LODs/index.html">Unreal Engine 4 - "Creating and Using LODs"</a>, <a href="http://docs.cryengine.com/pages/viewpage.action?pageId=15012200">CryEgnine - Static LOD</a> and <a href="http://docs.unity3d.com/Manual/LevelOfDetail.html">Unity - LOD</a>.</p>

CC BY-SA 3.0
2015-09-06T18:19:19.567Z
game engines usually have a set of pre defined methods and you can not get in to the core to actually changing the LOD algorithm. am I right? I was talking about the case you are writing a game yourself with OpenGL or SpriteKit framework, I dont know if one is able to customize LOD's algorithm in Unity or Unreal, is it possible?
Iman Rosstin
CC BY-SA 3.0
2015-09-06T17:57:59.280Z
2015-09-06T17:57:59.280Z
Krzysztof Narkowicz
<p>How do modern games do geometry level-of-detail for object meshes like characters, terrain, and foliage? There are two parts to my question:</p>

<ol>
<li>What does the asset pipeline look like? Do artists make a high-poly model which is later decimated? If so, what decimation algorithms are most popular? Are LOD meshes sometimes done by hand?</li>
<li>How do engines transition between different object LODs at run time? Are there any smooth or progressive transitions?</li>
</ol>

<p>The answer might be "different studios use different techniques." If so, please identify some of the most common practices. It would also be great if you could point me to whitepapers/slides that cover specific examples.</p>

CC BY-SA 3.0
2015-09-05T03:09:18.943Z
SIGGRAPH 2014 advances in real time rendering has a really interesting talk on call of duty's subdivision surfaces.  You should check it out.  Instead of having a high poly mesh that is made lower poly, they defined shapes analytically and added more triangles as needed
Alan Wolfe
CC BY-SA 3.0
2015-09-05T06:02:37.420Z
We can talk about the state of the art in LOD algorithms and data structures here, but if the question is about how modern games do it specifically, you might have more luck asking in gamedev.se: http://gamedev.stackexchange.com
Pseudonym
CC BY-SA 3.0
2015-09-05T16:52:26.470Z
I doubt that. Game dev is very graphics light. It's mostly unity and java questions with some path finding and fixed frame rate questions thrown in :p
Alan Wolfe
CC BY-SA 3.0
2015-09-06T06:58:27.263Z
@Alan, Activision used a lot of state of the arts algorithm to create a real 3D strategic game not sn isometric Sprite base one which I am ok with that, but they did a great job in COD however it is still a bit sluggish and lazy even at the early levels with small number of assets (I am talking about their mobile game on an Iphone 5s). I think you need to learn OpenGLES expert features and underlying layers to succeed writing such a game.
Iman Rosstin
CC BY-SA 3.0
2015-09-06T13:53:12.393Z
I'm talking about their console version of call of duty in case that clears it up.
Alan Wolfe
<geometry>
What is the state of art in geometric LOD in games?
ap_
# What is the state of art in geometric LOD in games?

(Asked by: username_0 on 2015-09-05)

How do modern games do geometry level-of-detail for object meshes like characters, terrain, and foliage? There are two parts to my question:

1. What does the asset pipeline look like? Do artists make a high-poly model which is later decimated? If so, what decimation algorithms are most popular? Are LOD meshes sometimes done by hand?
2. How do engines transition between different object LODs at run time? Are there any smooth or progressive transitions?

The answer might be "different studios use different techniques." If so, please identify some of the most common practices. It would also be great if you could point me to whitepapers/slides that cover specific examples.

**Tags:** geometry

> **Comments:**
> **username_1**: SIGGRAPH 2014 advances in real time rendering has a really interesting talk on call of duty's subdivision surfaces.  You should check it out.  Instead of having a high poly mesh that is made lower poly, they defined shapes analytically and added more triangles as needed  
> **username_2**: We can talk about the state of the art in LOD algorithms and data structures here, but if the question is about how modern games do it specifically, you might have more luck asking in gamedev.se: http://gamedev.stackexchange.com  
> **username_1**: I doubt that. Game dev is very graphics light. It's mostly unity and java questions with some path finding and fixed frame rate questions thrown in :p  
> **username_3**: @username_1, Activision used a lot of state of the arts algorithm to create a real 3D strategic game not sn isometric Sprite base one which I am ok with that, but they did a great job in COD however it is still a bit sluggish and lazy even at the early levels with small number of assets (I am talking about their mobile game on an Iphone 5s). I think you need to learn OpenGLES expert features and underlying layers to succeed writing such a game.  
> **username_1**: I'm talking about their console version of call of duty in case that clears it up.  

---

## 3 answers

### Answer by username_6 on 2015-09-06. Score: 23 | Accepted answer

For the geometry LOD most games simply switch between a number of predefined LOD meshes. For example "Infamous: Second Son" uses 3 LOD meshes ([Adrian Bentley - "inFAMOUS: Second Son engine postmortem", GDC 2014](http://suckerpunch.playstation.com/images/stories/GDC14_infamous_second_son_engine_postmortem.pdf)) and "Killzone: Shadow Fall" uses 7 LOD meshes per character ([Michal Valient - "Killzone: Shadow fall demo postmortem", Devstation2013](http://www.guerrilla-games.com/presentations/Valient_Killzone_Shadow_Fall_Demo_Postmortem.pdf)). Most of them are generated, but more important ones (like main character) can be hand made. Meshes are often generated using a popular Simplygon middleware, but sometimes they are simply generated by graphics artists in their favorite 3D package.

Games with a large draw distance additionally use imposters for foliage, trees and high buildings ([Adrian Bentley - "inFAMOUS: Second Son engine postmortem", GDC 2014](http://suckerpunch.playstation.com/images/stories/GDC14_infamous_second_son_engine_postmortem.pdf)). They also employ hierarchical LODs, which replace a set of objects with one. For example in "Just Cause 2" trees are first rendered individually as normal LOD meshes, then individually as imposters and finally as a single merged forest mesh ([Emil Persson, Joel de Vahl - "Populating a Massive Game World", Siggraph2013](http://www.humus.name/Articles/PopulatingAMassiveGameWorld.pptx)) and in "Sunset Overdrive" distant parts of the world are replaced by single automatically offline generated mesh ([Elan Ruskin - "Streaming Sunset Overdrive's Open World", GDC2015](http://s3.crashworks.org/gdc15/ElanRuskin_SunsetOverdrive_Streaming_notes.pdf)).

Another component of a LOD system is simplification of materials and shaders. For example "Killzone: Shadow Fall" disables tangent space and normal mapping for the distant LODs ([Michal Valient - "Killzone: Shadow fall demo postmortem", Devstation2013](http://www.guerrilla-games.com/presentations/Valient_Killzone_Shadow_Fall_Demo_Postmortem.pdf)). This usually is implemented by disabling globally a set of shader features per LOD, but for engines with shader graphs, where artists can create custom shaders, this needs to be done manually.

For the LOD transitions some games simply switch meshes and some use dithering for smooth LOD transitions - at the LOD switch two meshes are rendered: first gradually fades out and second fades in ([Simon schreibt Blog - "Assassins Creed 3 – LoD Blending"](http://simonschreibt.de/gat/assassins-creed-3-lod-blending/)). Classic CPU progressive mesh techniques aren't used as they require a costly mesh update and upload to GPU. Hardware Tessellation is used in a few titles, but only for the refinement of a most detailed LOD, as it's slow and in general case it can't replace predefined geometry LODs.

Terrain LODs are handled separately in order to exploit it's specific properties. Terrain geometry LOD is usually implemented using clipmaps ([Marcin Gollent - "Landscape creation and rendering in REDengine 3"](http://gdcvault.com/play/1020197/Landscape-Creation-and-Rendering-in)). Terrain material LODs either are handled similarly to mesh LODs or using some kind of a virtual texture [Ka Chen - "Adaptive Virtual Texture Rendering In Far Cry 4](http://twvideo01.ubm-us.net/o1/vault/gdc2015/presentations/Chen_Ka_AdaptiveVirtualTexture.pdf).

Finally if you are interested to see real game LOD pipelines then just browse through documentation of any of the modern games engines: [Unreal Engine 4 - "Creating and Using LODs"](https://docs.unrealengine.com/latest/INT/Engine/Content/Types/StaticMeshes/HowTo/LODs/index.html), [CryEgnine - Static LOD](http://docs.cryengine.com/pages/viewpage.action?pageId=15012200) and [Unity - LOD](http://docs.unity3d.com/Manual/LevelOfDetail.html).

> **Comments:**
> **username_3**: game engines usually have a set of pre defined methods and you can not get in to the core to actually changing the LOD algorithm. am I right? I was talking about the case you are writing a game yourself with OpenGL or SpriteKit framework, I dont know if one is able to customize LOD's algorithm in Unity or Unreal, is it possible?  

---

### Answer by username_4 on 2015-09-06. Score: 3

username_3 already prepared a complete answer but I wish to add something to it

LOD can be done in two different way

1. Continous which is called CLOD and is a polygon mesh optimization
2. Discrete which almost every other algorithm than polygon mesh optimization, considered to be in this group.

For example mipmaping is a good,fast but heavy one that belongs to secound group at the above

here you may find a good explanation to mipmaping and implementation code with OpenGl.

* [Multiple Levels of Detail](http://people.cs.clemson.edu/~dhouse/courses/405/notes/OpenGL-mipmaps.pdf)


---

### Answer by username_3 on 2015-09-06. Score: 3

LOD (Level of Detail) means managing objects in different display scales, which could be devided by two parts. However, you may use one of them and that would be enough for most cases.

1. Show/hide layers ( group of objects of same type) depending on magnitude (display scale).
2. Algebraic Geomery based method, called Generalization (which is an algorithm to simplify polygons). look at the following picture

   ![generalization](https://i.sstatic.net/lYP5y.jpg)

The most famous and efficient method to generalize (simplify) a polygon mesh is known as [Descartes-Euler polyhedron theorem](https://books.google.com/books?isbn=0080477267) (Equation 4.5 sorry if I am refering to a book, that was best I can do) and is used by most of the spatial databases for example PostGIS modules in PostgreSQL. It simply removes smaller sides of a polygon and makes a very rounded one.(above picture)

To implement LOD in a game you need to save and manage the scale of your map (scene) during th zoom in/out operations. The scale changes from zero to infinity and you have to divide this into a particular number of ranges for example something like this:

1. 1/zero = infinity to 1/50
2. 1/50 to 1/100
3. 1/100 to 1/1000
4. 1/1000 to 1/infinity = 0

Then you need to define which types of your objects (layers) should be visible or invisible in each of the above ranges. For example a small type of object like a hydrant valve should not be visible when the user is in the fourth range because it will be very small at that scale and can not be discriminated so it doesn't matter if you skip drawing it on the screen.

So when a user uses zoom in and zoom out to change the magnification he moves through the above limits from one to the other range, and your game uses these display scales to manage level of details by showing or hiding objects on the scene. This makes a discrete solution that objects suddenly fade during your zoom out operation, however having the display scales and magnification ranges defined carefully, the user woudn't feel anything.

The above group of 4 ranges are just an example and you need to find the best for your own case by trial and error. There is no rule for that.

Sometimes the games use their own LOD methods, Subway Surfer for instant, shows a small, without texture rectangle to show a building at far, and by getting close suddenly it gets texture, gamer feels it. You didnt talk about your projection system which is very important also didn't talk about what kind of game you are creating.

However suppose you are implementing a full 3D game with openGl and you wish to filter some mesh before transfering them to graphic hardware, I am sure this will help you to reduce binding/unbinding operations with buffer objects and vertex arrays (VBO,VAO) while dealing with OpenGl.

> Using only a layer managment or just implement Euler's Generalization

In most cases it is not necessary to implement a generalization algorithm, and filtering objects just works and gets you to the efficiency(refresh rate) you need, however it totally depends, case by case. Although it is an easy algorithm that just removes the small sides of a polygon, you need to define a threshold which is the product of magnitude and a constant number, so bigger sides get filtered in a much farther point of view.

Forgeting the layer manamgment and only implementing Eulers generalization algorithm, provides a very neat and continuous method in which you just check each sides and lines against a pre-defined threshold and show them only in case they are big enough to be discriminated on the screen.

P.S : magnification is a float number > 0 which is equal to 1/scale and the scale is usually < 1 since a 1:1 scale means you have real world lengths in your game.

> **Comments:**
> **username_3**: Down voter, please consider you vote again, if it is still a -1, Consider leaving a comment for me.Thanks  
> **username_5**: I didnt downvote but part of me wonders what is the sate of the art here? So i cant up vote either.  
> **username_6**: I've downvoted because it was hard to read and IMHO it's not relevant to LODs in games. After reconsidering I decided to cancel my donwvote by upwoting and simply add my own answer.  
> **username_3**: State of the art suppose to mean a very outstanding job but different methods result differently on various cases, for example Call of duty has Layer management and mipmaping, however Dear haunting(DH 2014) uses background with parallax and a mipmaping which has pre rendered generalized textures. Subway surfer is completely a diffrent story, and I say state of the art to all of them, even though Subway Surfer discretely draws buildings and other urban objects or Call of duty is a bit sluggish while zooming or panning. I think they are all best in their case.  

---

