{"id":80,"date":"2024-09-25T12:00:00","date_gmt":"2024-09-25T12:00:00","guid":{"rendered":"https:\/\/unity3dperformance.com\/?p=80"},"modified":"2024-09-29T18:36:00","modified_gmt":"2024-09-29T18:36:00","slug":"add-lod-unity3d","status":"publish","type":"post","link":"https:\/\/unity3dperformance.com\/index.php\/2024\/09\/25\/add-lod-unity3d\/","title":{"rendered":"How to Automatically Add LOD with UnityMeshSimplifier?"},"content":{"rendered":"\n<p class=\"has-medium-font-size wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Introduction to LOD in Unity3D<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/docs.unity3d.com\/Manual\/LevelOfDetail.html\" target=\"_blank\" rel=\"noreferrer noopener\">LOD <\/a>(Level of Detail) is a key technique in computer graphics that involves reducing the detail of 3D models based on their distance from the camera. With LOD, objects close to the camera are rendered in full quality, while those further away have simplified meshes. This approach significantly increases game performance in <strong><a href=\"https:\/\/unity.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Unity3D<\/a><\/strong>, minimizing losses in visual quality.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Why is it important to use LOD in games developed with Unity3D?<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Many models, including those downloaded from the<a href=\"https:\/\/assetstore.unity.com\/\" target=\"_blank\" rel=\"noreferrer noopener\"> Asset Store<\/a><a href=\"https:\/\/assetstore.unity.com\/\">,<\/a> often lack LOD versions. Using models without LOD in Unity projects can lead to excessive strain on the graphics processor, negatively impacting game performance. Adding LOD to these models, especially when they are used multiple times in a scene, can significantly improve rendering efficiency and speed up the game\u2019s performance. However, it is worth noting that implementing LOD increases memory usage, as each simplified version of the model occupies additional space.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Automatically Add LOD Using UnityMeshSimplifier?<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you have a 3D model without LOD, you can easily add this functionality using the <a href=\"https:\/\/github.com\/Whinarn\/UnityMeshSimplifier\"><strong>UnityMeshSimplifier<\/strong> <\/a>tool, which is available <strong>for free under the MIT License<\/strong>. This tool automatically generates simplified versions of models, making it easier to integrate them into your project.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>Step-by-Step Guide to Adding LOD to Models in Unity3D<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Download the tool<br>Install <strong>UnityMeshSimplifier<\/strong> from <a href=\"https:\/\/github.com\/Whinarn\/UnityMeshSimplifier\/wiki\/Installing-through-package-manager\">GitHub<\/a>, where you can find documentation and details specifically related to this plugin.<\/li>\n\n\n\n<li>Add the component to the model<br>After installation, add the <strong><a href=\"https:\/\/github.com\/Whinarn\/UnityMeshSimplifier\/wiki\/LOD-Generator-Helper-component\">LOD Generator Helper<\/a><\/strong> component to the prefab. The tool will automatically generate simplified versions of the models based on their distance from the camera.<\/li>\n\n\n\n<li>Configure LOD levels<br>In the component settings, you can adjust the detail levels and distances at which different versions of the models will be used. This allows for even better optimization of performance in your project.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Comparison of Scenes Before and After Optimization<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Scene Before Optimization<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this scene, several instances of the same model are rendered with the full number of triangles. This puts a strain on the graphics processor and can negatively impact game performance.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img decoding=\"async\" src=\"https:\/\/unity3dperformance.com\/wp-content\/uploads\/2024\/09\/obraz-10.png\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Scene before optimization \u2013 multiple instances of a 3D model without LOD applied, leading to decreased performance in Unity3D.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Scene After Optimization<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After applying LOD, instances of the model that are further from the camera use fewer triangles. This significantly enhances the performance of the scene while maintaining visual quality.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/unity3dperformance.com\/wp-content\/uploads\/2024\/09\/obraz-11.png\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Scene after optimization \u2013 simplified instances of a 3D model with LOD applied, resulting in improved performance and quality in Unity.<\/figcaption><\/figure>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\"><strong>Conclusion<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ImplementingLOD in <strong>games<\/strong> developed with Unity3D is crucial for achieving optimal performance. Thanks to <strong>UnityMeshSimplifier<\/strong>, which is <strong>free under the MIT License<\/strong>, you can quickly and efficiently add LOD to models, even if they come from the Asset Store. Introducing this technique allows you to enjoy better game quality without overloading the hardware, which is extremely important for application performance in <strong>Unity<\/strong>!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction to LOD in Unity3D LOD (Level of Detail) is a key technique in computer graphics that involves reducing the detail of 3D models based on their distance from the camera. With LOD, objects close to the camera are rendered in full quality, while those further away have simplified meshes. This approach significantly increases game [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[19,12,17,14],"class_list":["post-80","post","type-post","status-publish","format-standard","hentry","category-unity-optimization","tag-game-performance","tag-gpuperformance","tag-level-of-detail","tag-renderingperformance"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Automatically Add LOD with UnityMeshSimplifier? - Unity3D Performance Blog<\/title>\n<meta name=\"description\" content=\"Discover how to optimize your Unity3D projects by adding Level of Detail (LOD) to your 3D models using UnityMeshSimplifier. Improve performance and maintain visual quality effortlessly.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/unity3dperformance.com\/index.php\/2024\/09\/25\/add-lod-unity3d\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Automatically Add LOD with UnityMeshSimplifier? - Unity3D Performance Blog\" \/>\n<meta property=\"og:description\" content=\"Discover how to optimize your Unity3D projects by adding Level of Detail (LOD) to your 3D models using UnityMeshSimplifier. Improve performance and maintain visual quality effortlessly.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/unity3dperformance.com\/index.php\/2024\/09\/25\/add-lod-unity3d\/\" \/>\n<meta property=\"og:site_name\" content=\"Unity3D Performance Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-09-25T12:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-29T18:36:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/unity3dperformance.com\/wp-content\/uploads\/2024\/09\/obraz-10.png\" \/>\n<meta name=\"author\" content=\"Rufi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rufi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/unity3dperformance.com\/index.php\/2024\/09\/25\/add-lod-unity3d\/\",\"url\":\"https:\/\/unity3dperformance.com\/index.php\/2024\/09\/25\/add-lod-unity3d\/\",\"name\":\"How to Automatically Add LOD with UnityMeshSimplifier? - Unity3D Performance Blog\",\"isPartOf\":{\"@id\":\"https:\/\/unity3dperformance.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/unity3dperformance.com\/index.php\/2024\/09\/25\/add-lod-unity3d\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/unity3dperformance.com\/index.php\/2024\/09\/25\/add-lod-unity3d\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/unity3dperformance.com\/wp-content\/uploads\/2024\/09\/obraz-10.png\",\"datePublished\":\"2024-09-25T12:00:00+00:00\",\"dateModified\":\"2024-09-29T18:36:00+00:00\",\"author\":{\"@id\":\"https:\/\/unity3dperformance.com\/#\/schema\/person\/1296fd7575f681c85a3afc18bf973b0c\"},\"description\":\"Discover how to optimize your Unity3D projects by adding Level of Detail (LOD) to your 3D models using UnityMeshSimplifier. Improve performance and maintain visual quality effortlessly.\",\"breadcrumb\":{\"@id\":\"https:\/\/unity3dperformance.com\/index.php\/2024\/09\/25\/add-lod-unity3d\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/unity3dperformance.com\/index.php\/2024\/09\/25\/add-lod-unity3d\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/unity3dperformance.com\/index.php\/2024\/09\/25\/add-lod-unity3d\/#primaryimage\",\"url\":\"https:\/\/unity3dperformance.com\/wp-content\/uploads\/2024\/09\/obraz-10.png\",\"contentUrl\":\"https:\/\/unity3dperformance.com\/wp-content\/uploads\/2024\/09\/obraz-10.png\",\"width\":1243,\"height\":758},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/unity3dperformance.com\/index.php\/2024\/09\/25\/add-lod-unity3d\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/unity3dperformance.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Adding LOD in Unity3D\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/unity3dperformance.com\/#website\",\"url\":\"https:\/\/unity3dperformance.com\/\",\"name\":\"Unity3D Performance Blog\",\"description\":\"Discover tips and techniques to optimize your Unity3D projects for better performance and efficiency.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/unity3dperformance.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/unity3dperformance.com\/#\/schema\/person\/1296fd7575f681c85a3afc18bf973b0c\",\"name\":\"Rufi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/unity3dperformance.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3f1f6db23df2ef8fe5ff6875fbab10a67f1fcfef48afa45d5c00ed04d0ccf792?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3f1f6db23df2ef8fe5ff6875fbab10a67f1fcfef48afa45d5c00ed04d0ccf792?s=96&d=mm&r=g\",\"caption\":\"Rufi\"},\"sameAs\":[\"http:\/\/unity3dperformance.com\"],\"url\":\"https:\/\/unity3dperformance.com\/index.php\/author\/admin2826\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Automatically Add LOD with UnityMeshSimplifier? - Unity3D Performance Blog","description":"Discover how to optimize your Unity3D projects by adding Level of Detail (LOD) to your 3D models using UnityMeshSimplifier. Improve performance and maintain visual quality effortlessly.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/unity3dperformance.com\/index.php\/2024\/09\/25\/add-lod-unity3d\/","og_locale":"en_US","og_type":"article","og_title":"How to Automatically Add LOD with UnityMeshSimplifier? - Unity3D Performance Blog","og_description":"Discover how to optimize your Unity3D projects by adding Level of Detail (LOD) to your 3D models using UnityMeshSimplifier. Improve performance and maintain visual quality effortlessly.","og_url":"https:\/\/unity3dperformance.com\/index.php\/2024\/09\/25\/add-lod-unity3d\/","og_site_name":"Unity3D Performance Blog","article_published_time":"2024-09-25T12:00:00+00:00","article_modified_time":"2024-09-29T18:36:00+00:00","og_image":[{"url":"https:\/\/unity3dperformance.com\/wp-content\/uploads\/2024\/09\/obraz-10.png"}],"author":"Rufi","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Rufi","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/unity3dperformance.com\/index.php\/2024\/09\/25\/add-lod-unity3d\/","url":"https:\/\/unity3dperformance.com\/index.php\/2024\/09\/25\/add-lod-unity3d\/","name":"How to Automatically Add LOD with UnityMeshSimplifier? - Unity3D Performance Blog","isPartOf":{"@id":"https:\/\/unity3dperformance.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/unity3dperformance.com\/index.php\/2024\/09\/25\/add-lod-unity3d\/#primaryimage"},"image":{"@id":"https:\/\/unity3dperformance.com\/index.php\/2024\/09\/25\/add-lod-unity3d\/#primaryimage"},"thumbnailUrl":"https:\/\/unity3dperformance.com\/wp-content\/uploads\/2024\/09\/obraz-10.png","datePublished":"2024-09-25T12:00:00+00:00","dateModified":"2024-09-29T18:36:00+00:00","author":{"@id":"https:\/\/unity3dperformance.com\/#\/schema\/person\/1296fd7575f681c85a3afc18bf973b0c"},"description":"Discover how to optimize your Unity3D projects by adding Level of Detail (LOD) to your 3D models using UnityMeshSimplifier. Improve performance and maintain visual quality effortlessly.","breadcrumb":{"@id":"https:\/\/unity3dperformance.com\/index.php\/2024\/09\/25\/add-lod-unity3d\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/unity3dperformance.com\/index.php\/2024\/09\/25\/add-lod-unity3d\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/unity3dperformance.com\/index.php\/2024\/09\/25\/add-lod-unity3d\/#primaryimage","url":"https:\/\/unity3dperformance.com\/wp-content\/uploads\/2024\/09\/obraz-10.png","contentUrl":"https:\/\/unity3dperformance.com\/wp-content\/uploads\/2024\/09\/obraz-10.png","width":1243,"height":758},{"@type":"BreadcrumbList","@id":"https:\/\/unity3dperformance.com\/index.php\/2024\/09\/25\/add-lod-unity3d\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/unity3dperformance.com\/"},{"@type":"ListItem","position":2,"name":"Adding LOD in Unity3D"}]},{"@type":"WebSite","@id":"https:\/\/unity3dperformance.com\/#website","url":"https:\/\/unity3dperformance.com\/","name":"Unity3D Performance Blog","description":"Discover tips and techniques to optimize your Unity3D projects for better performance and efficiency.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/unity3dperformance.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/unity3dperformance.com\/#\/schema\/person\/1296fd7575f681c85a3afc18bf973b0c","name":"Rufi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/unity3dperformance.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3f1f6db23df2ef8fe5ff6875fbab10a67f1fcfef48afa45d5c00ed04d0ccf792?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3f1f6db23df2ef8fe5ff6875fbab10a67f1fcfef48afa45d5c00ed04d0ccf792?s=96&d=mm&r=g","caption":"Rufi"},"sameAs":["http:\/\/unity3dperformance.com"],"url":"https:\/\/unity3dperformance.com\/index.php\/author\/admin2826\/"}]}},"_links":{"self":[{"href":"https:\/\/unity3dperformance.com\/index.php\/wp-json\/wp\/v2\/posts\/80","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unity3dperformance.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unity3dperformance.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unity3dperformance.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unity3dperformance.com\/index.php\/wp-json\/wp\/v2\/comments?post=80"}],"version-history":[{"count":7,"href":"https:\/\/unity3dperformance.com\/index.php\/wp-json\/wp\/v2\/posts\/80\/revisions"}],"predecessor-version":[{"id":208,"href":"https:\/\/unity3dperformance.com\/index.php\/wp-json\/wp\/v2\/posts\/80\/revisions\/208"}],"wp:attachment":[{"href":"https:\/\/unity3dperformance.com\/index.php\/wp-json\/wp\/v2\/media?parent=80"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unity3dperformance.com\/index.php\/wp-json\/wp\/v2\/categories?post=80"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unity3dperformance.com\/index.php\/wp-json\/wp\/v2\/tags?post=80"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}