{"id":16396,"date":"2024-11-03T01:30:56","date_gmt":"2024-11-03T05:30:56","guid":{"rendered":"https:\/\/www.sceneri.com\/?post_type=sceneri-pro-docs&p=16396"},"modified":"2024-11-03T01:49:03","modified_gmt":"2024-11-03T05:49:03","slug":"channel-packing","status":"publish","type":"sceneri-pro-docs","link":"https:\/\/www.sceneri.com\/sceneri-pro-docs\/introduction\/content-creation\/channel-packing\/","title":{"rendered":"Channel Packing"},"content":{"rendered":"
\n

Overview<\/h3>\n

Channel packing<\/strong> is a technique used to reduce the number of texture files by combining multiple secondary texture maps into a single image. This approach minimizes memory usage, enhances rendering efficiency, and improves game performance in Sceneri.<\/p>\n

Channel packing typically involves placing different grayscale maps, such as roughness, metallic, or ambient occlusion (AO), into the RGB and alpha channels of one texture file. This article will guide you through the benefits of channel packing and a step-by-step workflow for implementing it in Sceneri.<\/p>\n<\/div>\n<\/div>

\n

Benefits of Channel Packing in Sceneri<\/h3>\n
    \n
  • Memory Optimization<\/strong>: Channel packing reduces the number of textures loaded into memory, freeing up resources for other elements of the game.<\/li>\n
  • Reduced Draw Calls<\/strong>: By consolidating multiple maps into one, channel packing helps decrease draw calls, enhancing rendering speed.<\/li>\n
  • Improved Performance<\/strong>: Fewer textures mean faster asset loading times and more efficient texture streaming, contributing to better frame rates.<\/li>\n<\/ul>\n<\/div>\n<\/div>
    \n

    Workflow for Channel Packing in Sceneri<\/h3>\n

    To implement channel packing, you\u2019ll need an image editing software that allows manipulation of individual RGB and alpha channels, such as Adobe Photoshop or GIMP. Below is a step-by-step guide on packing various secondary maps into one texture file.<\/p>\n

    Example Channel Assignments<\/h3>\n

    For a standard setup, you can assign different grayscale maps to each channel as follows:<\/p>\n

      \n
    • Red Channel<\/strong>: Ambient Occlusion (AO)<\/li>\n
    • Green Channel<\/strong>: Roughness<\/li>\n
    • Blue Channel<\/strong>: Metallic<\/li>\n
    • Alpha Channel<\/strong>: Emissive or Transparency (optional)<\/li>\n<\/ul>\n

      Step-by-Step Workflow<\/h3>\n
        \n
      1. Prepare Each Map as a Grayscale Image<\/strong>:\n
          \n
        • Start with the grayscale maps you plan to use (e.g., AO, roughness, metallic).<\/li>\n
        • Each map should be a separate grayscale image with values between 0 (black) and 255 (white), where the intensity indicates the map effect.<\/li>\n<\/ul>\n<\/li>\n
        • Open a New Document<\/strong>:\n
            \n
          • Create a new document in your image editor with the dimensions matching your texture requirements (e.g., 1024×1024).<\/li>\n
          • Ensure the document has an RGB + Alpha<\/strong> color mode if you plan to use the alpha channel.<\/li>\n<\/ul>\n<\/li>\n
          • Copy Maps into Individual Channels<\/strong>:\n
              \n
            • Select your Ambient Occlusion<\/strong> map and copy it into the Red<\/strong> channel of the new document.<\/li>\n
            • Copy the Roughness<\/strong> map into the Green<\/strong> channel.<\/li>\n
            • Copy the Metallic<\/strong> map into the Blue<\/strong> channel.<\/li>\n
            • (Optional) If you have an Emissive<\/strong> or Transparency<\/strong> map, paste it into the Alpha<\/strong> channel.<\/li>\n<\/ul>\n<\/li>\n
            • Check Each Channel<\/strong>:\n
                \n
              • Go to the channels panel and check each channel individually to confirm that each map has been properly assigned.<\/li>\n
              • Make any necessary adjustments to ensure each map is visible only in its designated channel.<\/li>\n<\/ul>\n<\/li>\n
              • Optimize Map Levels (Optional)<\/strong>:\n
                  \n
                • If any of the maps need tweaking, adjust the levels or contrast within that specific channel to improve detail and effect when rendered in Sceneri.<\/li>\n<\/ul>\n<\/li>\n
                • Save the Packed Texture<\/strong>:\n
                    \n
                  • Save the packed texture in a format that supports all channels, such as TGA<\/strong> or PNG<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>
                    \n

                    Conclusion<\/h3>\n

                    Channel packing is a powerful optimization technique that helps reduce memory load and improves performance in the Sceneri game engine. By combining multiple maps into a single texture using the RGB and alpha channels, developers can achieve efficient memory usage without compromising visual quality. As you continue to build projects in Sceneri, channel packing will be an invaluable approach to balancing quality and performance, especially for large or resource-intensive environments.<\/p>\n<\/div>\n<\/div><\/div><\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":251212454,"featured_media":0,"parent":16356,"menu_order":0,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"sceneri-docs-tag":[],"class_list":["post-16396","sceneri-pro-docs","type-sceneri-pro-docs","status-publish","format-standard","hentry"],"acf":[],"yoast_head":"\nChannel Packing - 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-pro-docs\/introduction\/content-creation\/channel-packing\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Channel Packing\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sceneri.com\/sceneri-pro-docs\/introduction\/content-creation\/channel-packing\/\" \/>\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-03T05:49:03+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-pro-docs\/introduction\/content-creation\/channel-packing\/\",\"url\":\"https:\/\/www.sceneri.com\/sceneri-pro-docs\/introduction\/content-creation\/channel-packing\/\",\"name\":\"Channel Packing - Sceneri\",\"isPartOf\":{\"@id\":\"https:\/\/www.sceneri.com\/#website\"},\"datePublished\":\"2024-11-03T05:30:56+00:00\",\"dateModified\":\"2024-11-03T05:49:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.sceneri.com\/sceneri-pro-docs\/introduction\/content-creation\/channel-packing\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sceneri.com\/sceneri-pro-docs\/introduction\/content-creation\/channel-packing\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sceneri.com\/sceneri-pro-docs\/introduction\/content-creation\/channel-packing\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sceneri.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Introduction\",\"item\":\"https:\/\/www.sceneri.com\/sceneri-pro-docs\/introduction\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Content Creation\",\"item\":\"https:\/\/www.sceneri.com\/sceneri-pro-docs\/introduction\/content-creation\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Channel Packing\"}]},{\"@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":"Channel Packing - 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-pro-docs\/introduction\/content-creation\/channel-packing\/","og_locale":"en_US","og_type":"article","og_title":"Channel Packing","og_url":"https:\/\/www.sceneri.com\/sceneri-pro-docs\/introduction\/content-creation\/channel-packing\/","og_site_name":"Sceneri","article_publisher":"https:\/\/www.facebook.com\/sceneriapp","article_modified_time":"2024-11-03T05:49:03+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-pro-docs\/introduction\/content-creation\/channel-packing\/","url":"https:\/\/www.sceneri.com\/sceneri-pro-docs\/introduction\/content-creation\/channel-packing\/","name":"Channel Packing - Sceneri","isPartOf":{"@id":"https:\/\/www.sceneri.com\/#website"},"datePublished":"2024-11-03T05:30:56+00:00","dateModified":"2024-11-03T05:49:03+00:00","breadcrumb":{"@id":"https:\/\/www.sceneri.com\/sceneri-pro-docs\/introduction\/content-creation\/channel-packing\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sceneri.com\/sceneri-pro-docs\/introduction\/content-creation\/channel-packing\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sceneri.com\/sceneri-pro-docs\/introduction\/content-creation\/channel-packing\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sceneri.com\/"},{"@type":"ListItem","position":2,"name":"Introduction","item":"https:\/\/www.sceneri.com\/sceneri-pro-docs\/introduction\/"},{"@type":"ListItem","position":3,"name":"Content Creation","item":"https:\/\/www.sceneri.com\/sceneri-pro-docs\/introduction\/content-creation\/"},{"@type":"ListItem","position":4,"name":"Channel Packing"}]},{"@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-pro-docs\/16396"}],"collection":[{"href":"https:\/\/www.sceneri.com\/wp-json\/wp\/v2\/sceneri-pro-docs"}],"about":[{"href":"https:\/\/www.sceneri.com\/wp-json\/wp\/v2\/types\/sceneri-pro-docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.sceneri.com\/wp-json\/wp\/v2\/users\/251212454"}],"version-history":[{"count":0,"href":"https:\/\/www.sceneri.com\/wp-json\/wp\/v2\/sceneri-pro-docs\/16396\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.sceneri.com\/wp-json\/wp\/v2\/sceneri-pro-docs\/16356"}],"wp:attachment":[{"href":"https:\/\/www.sceneri.com\/wp-json\/wp\/v2\/media?parent=16396"}],"wp:term":[{"taxonomy":"sceneri-docs-tag","embeddable":true,"href":"https:\/\/www.sceneri.com\/wp-json\/wp\/v2\/sceneri-docs-tag?post=16396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}