{"id":13840,"date":"2024-10-19T14:13:36","date_gmt":"2024-10-19T18:13:36","guid":{"rendered":"https:\/\/www.sceneri.com\/?post_type=sceneri-docs-glossar&p=13840"},"modified":"2024-11-12T04:16:05","modified_gmt":"2024-11-12T09:16:05","slug":"texture-compression","status":"publish","type":"sceneri-docs-glossar","link":"https:\/\/www.sceneri.com\/sceneri-docs-glossar\/texture-compression\/","title":{"rendered":"Texture Compression"},"content":{"rendered":"
\n

Overview<\/h3>\n

Texture compression is a technique used to reduce the size of texture maps without significantly affecting their quality. This can be done to improve loading times and reduce memory usage.<\/span><\/p>\n<\/div>\n

\n

There are two main types of texture compression: <\/span>lossy<\/strong><\/span> and <\/span>lossless<\/strong><\/span>.<\/span><\/p>\n<\/div>\n

\n
    \n
  • \n
    Lossy <\/strong><\/span>compression algorithms reduce the size of a texture map by discarding some of the data. This can result in a slight loss of quality, but it can also result in a significant reduction in file size.<\/span><\/div>\n<\/li>\n
  • \n
    Lossless <\/strong><\/span>compression algorithms reduce the size of a texture map without discarding any data. This means that the quality of the texture map is not affected, but the file size is not reduced as much as it could be with a lossy compression algorithm.<\/span><\/div>\n<\/li>\n<\/ul>\n<\/div>\n
    \n

    There are many different texture compression algorithms available. Some of the most common ones include:<\/span><\/p>\n<\/div>\n

    \n
      \n
    • \n
      DXT1: <\/strong><\/span>This is a lossy compression algorithm that is used by the DirectX graphics API. It is a very efficient algorithm that can reduce the size of a texture map by up to 50%.<\/span><\/div>\n<\/li>\n
    • \n
      DXT5: <\/strong><\/span>This is another lossy compression algorithm that is used by the DirectX graphics API. It is a more efficient algorithm than DXT1, but it can also result in a slightly lower quality texture map.<\/span><\/div>\n<\/li>\n
    • \n
      BC1: <\/strong><\/span>This is a lossy compression algorithm that is used by the OpenGL graphics API. It is similar to DXT1 in terms of efficiency and quality.<\/span><\/div>\n<\/li>\n
    • \n
      BC3: <\/strong><\/span>This is a lossy compression algorithm that is used by the OpenGL graphics API. It is similar to DXT5 in terms of efficiency and quality.<\/span><\/div>\n<\/li>\n
    • \n
      Crunch: <\/strong><\/span>This is a lossless compression algorithm that is developed by Unity Technologies. It is a very efficient algorithm that can reduce the size of a texture map by up to 40% without affecting its quality.<\/span><\/div>\n<\/li>\n<\/ul>\n<\/div>\n
      \n

      The best texture compression algorithm to use depends on the specific needs of the application. For example, if a game needs to load textures quickly, then a lossy compression algorithm may be a good choice. If a game needs to maintain high-quality textures, then a lossless compression algorithm may be a better choice.<\/span><\/p>\n<\/div>\n

      \n

      Here are some of the benefits of using texture compression in computer graphics:<\/span><\/p>\n<\/div>\n

      \n
        \n
      • \n
        Reduced file size: <\/strong><\/span>Texture compression can significantly reduce the file size of a game by storing textures in a compressed format. This can improve loading times and reduce memory usage.<\/span><\/div>\n<\/li>\n
      • \n
        Increased draw call efficiency: <\/strong><\/span>Texture compression can also improve the efficiency of draw calls by allowing multiple objects to be drawn with a single draw call. This can improve performance by reducing the number of times the GPU needs to access memory.<\/span><\/div>\n<\/li>\n
      • \n
        Improved visual quality: <\/strong><\/span>Texture compression can help to improve the visual quality of a game by allowing more complex textures to be used. This can make the game look more realistic and polished.<\/span><\/div>\n<\/li>\n<\/ul>\n<\/div>\n
        \n

        However, there are also some drawbacks to texture compression.<\/span><\/p>\n<\/div>\n

        \n
          \n
        • \n
          Loss of quality: <\/strong><\/span>Lossy compression algorithms can result in a loss of quality in the texture map. This may be noticeable in some cases, but it is often not a problem.<\/span><\/div>\n<\/li>\n
        • \n
          Increased complexity: <\/strong><\/span>Creating and maintaining compressed textures can be more complex than using uncompressed textures. This is because the textures need to be compressed and decompressed correctly.<\/span><\/div>\n<\/li>\n<\/ul>\n<\/div>\n
          \n

          Overall, texture compression can be a powerful tool for improving the performance and visual quality of a game. However, it is important to weigh the benefits and drawbacks of texture compression before deciding whether to use it.<\/span><\/p>\n<\/div>\n<\/div><\/div><\/div><\/div><\/div>\n","protected":false},"featured_media":0,"parent":0,"template":"","meta":{"_acf_changed":false},"sceneri-docs-tag":[],"class_list":["post-13840","sceneri-docs-glossar","type-sceneri-docs-glossar","status-publish","hentry"],"acf":[],"yoast_head":"\nTexture Compression - Sceneri<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sceneri.com\/sceneri-docs-glossar\/texture-compression\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Texture Compression\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sceneri.com\/sceneri-docs-glossar\/texture-compression\/\" \/>\n<meta property=\"og:site_name\" content=\"Sceneri\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sceneriapp\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-12T09:16:05+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@sceneriapp\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sceneri.com\/sceneri-docs-glossar\/texture-compression\/\",\"url\":\"https:\/\/www.sceneri.com\/sceneri-docs-glossar\/texture-compression\/\",\"name\":\"Texture Compression - Sceneri\",\"isPartOf\":{\"@id\":\"https:\/\/www.sceneri.com\/#website\"},\"datePublished\":\"2024-10-19T18:13:36+00:00\",\"dateModified\":\"2024-11-12T09:16:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.sceneri.com\/sceneri-docs-glossar\/texture-compression\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sceneri.com\/sceneri-docs-glossar\/texture-compression\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sceneri.com\/sceneri-docs-glossar\/texture-compression\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sceneri.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Texture Compression\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sceneri.com\/#website\",\"url\":\"https:\/\/www.sceneri.com\/\",\"name\":\"Sceneri\",\"description\":\"Collaborate in 3D.\",\"publisher\":{\"@id\":\"https:\/\/www.sceneri.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sceneri.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.sceneri.com\/#organization\",\"name\":\"Sceneri\",\"url\":\"https:\/\/www.sceneri.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sceneri.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.sceneri.com\/wp-content\/uploads\/2024\/06\/sceneri-logo-inverted.png\",\"contentUrl\":\"https:\/\/www.sceneri.com\/wp-content\/uploads\/2024\/06\/sceneri-logo-inverted.png\",\"width\":1630,\"height\":512,\"caption\":\"Sceneri\"},\"image\":{\"@id\":\"https:\/\/www.sceneri.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/sceneriapp\",\"https:\/\/x.com\/sceneriapp\",\"https:\/\/www.reddit.com\/r\/sceneriapp\/\",\"https:\/\/www.twitch.tv\/sceneriapp\",\"https:\/\/www.youtube.com\/@sceneriapp\",\"https:\/\/www.linkedin.com\/company\/sceneri\/\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Texture Compression - Sceneri","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:\/\/www.sceneri.com\/sceneri-docs-glossar\/texture-compression\/","og_locale":"en_US","og_type":"article","og_title":"Texture Compression","og_url":"https:\/\/www.sceneri.com\/sceneri-docs-glossar\/texture-compression\/","og_site_name":"Sceneri","article_publisher":"https:\/\/www.facebook.com\/sceneriapp","article_modified_time":"2024-11-12T09:16:05+00:00","twitter_card":"summary_large_image","twitter_site":"@sceneriapp","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sceneri.com\/sceneri-docs-glossar\/texture-compression\/","url":"https:\/\/www.sceneri.com\/sceneri-docs-glossar\/texture-compression\/","name":"Texture Compression - Sceneri","isPartOf":{"@id":"https:\/\/www.sceneri.com\/#website"},"datePublished":"2024-10-19T18:13:36+00:00","dateModified":"2024-11-12T09:16:05+00:00","breadcrumb":{"@id":"https:\/\/www.sceneri.com\/sceneri-docs-glossar\/texture-compression\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sceneri.com\/sceneri-docs-glossar\/texture-compression\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sceneri.com\/sceneri-docs-glossar\/texture-compression\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sceneri.com\/"},{"@type":"ListItem","position":2,"name":"Texture Compression"}]},{"@type":"WebSite","@id":"https:\/\/www.sceneri.com\/#website","url":"https:\/\/www.sceneri.com\/","name":"Sceneri","description":"Collaborate in 3D.","publisher":{"@id":"https:\/\/www.sceneri.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sceneri.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.sceneri.com\/#organization","name":"Sceneri","url":"https:\/\/www.sceneri.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sceneri.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.sceneri.com\/wp-content\/uploads\/2024\/06\/sceneri-logo-inverted.png","contentUrl":"https:\/\/www.sceneri.com\/wp-content\/uploads\/2024\/06\/sceneri-logo-inverted.png","width":1630,"height":512,"caption":"Sceneri"},"image":{"@id":"https:\/\/www.sceneri.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sceneriapp","https:\/\/x.com\/sceneriapp","https:\/\/www.reddit.com\/r\/sceneriapp\/","https:\/\/www.twitch.tv\/sceneriapp","https:\/\/www.youtube.com\/@sceneriapp","https:\/\/www.linkedin.com\/company\/sceneri\/"]}]}},"_links":{"self":[{"href":"https:\/\/www.sceneri.com\/wp-json\/wp\/v2\/sceneri-docs-glossar\/13840"}],"collection":[{"href":"https:\/\/www.sceneri.com\/wp-json\/wp\/v2\/sceneri-docs-glossar"}],"about":[{"href":"https:\/\/www.sceneri.com\/wp-json\/wp\/v2\/types\/sceneri-docs-glossar"}],"wp:attachment":[{"href":"https:\/\/www.sceneri.com\/wp-json\/wp\/v2\/media?parent=13840"}],"wp:term":[{"taxonomy":"sceneri-docs-tag","embeddable":true,"href":"https:\/\/www.sceneri.com\/wp-json\/wp\/v2\/sceneri-docs-tag?post=13840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}